Dan Nicholson <dbn.lists <at> gmail.com> writes:
> First, don't change the build order, especially for the toolchain
> components. If you can't build ld-new following the bug, then that
> needs to be fixed.
Hi again :)
Thanks for the answer. The problem was not that i was unable to build the
linker, but that i was unable to compile anything after swaping the old and the
new linker.
Today i started the whole thing again and made sure that i didn't forget
anything and did it in the right order. I build the binutils and rebuild ld,
after that i compiled the rest, changed the specs file and swapped the old and
new linker.
And now i get the following error(which is pretty much the same as the tlc
building error):
[EMAIL PROTECTED]:/mnt/lfs/sources$ cc dummy.c
/lib/libc.so.6: undefined reference to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status
Here is the gcc -v output, maybe it can help :).
[EMAIL PROTECTED]:/mnt/lfs/sources$ gcc -v dummy.c
Reading specs from
/mnt/lfs/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.3/specsTarget:
x86_64-unknown-linux-gnu
Configured with: ../gcc-4.2.3/configure --prefix=/tools
--with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c
--disable-multilib
Thread model: posix
gcc version 4.2.3
/mnt/lfs/tools/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.2.3/cc1 -quiet -v
-iprefix /mnt/lfs/tools/bin/../lib/gcc/x86_64 -unknown-linux-gnu/4.2.3/ dummy.c
-quiet -dumpbase dummy.c -mtune=generic -auxbase dummy -version -o
/tmp/cc4kYT68.signoring nonexistent directory
"/mnt/lfs/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.3/../../../../
x86_64-unknown-linux-gnu/include"
ignoring duplicate directory
"/tools/lib/gcc/x86_64-unknown-linux-gnu/4.2.3/include"ignoring nonexistent
directory
"/tools/lib/gcc/x86_64-unknown-linux-gnu/4.2.3/../../../../
x86_64-unknown-linux-gnu/include"#include
"..." search starts here:
#include <...> search starts here:
/mnt/lfs/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.3/include
/tools/include
/usr/include
End of search list.
GNU C version 4.2.3 (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.2.3.
GGC heuristics: --param ggc-min-expand=94 --param ggc-min-heapsize=120472
Compiler executable checksum: 0bbcd1671fd2f7b09e385d073aade69c
/mnt/lfs/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.3/../../../../
x86_64-unknown-linux-gnu/bin/as
-V -Qy -o /tmp/cc2nHFWb.o /tmp/cc4kYT68.s
GNU assembler version 2.18 (x86_64-unknown-linux-gnu) using BFD version (GNU
Binutils) 2.18
/mnt/lfs/tools/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.2.3/collect2
--eh-frame-hdr -m elf_x86_64 -dynamic-linker /tools/lib/ld-linux-x86-64.so.2
/usr/lib/../lib64/crt1.o /usr/lib/../lib64/crti.o
/mnt/lfs/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.3/crtbegin.o
-L/mnt/lfs/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.3
-L/mnt/lfs/tools/bin/../lib/gcc -L/tools/lib/gcc/x86_64-unknown-linux-gnu/4.2.3
-L/mnt/lfs/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.3/../../../../lib64
-L/tools/lib/gcc/x86_64-unknown-linux-gnu/4.2.3/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64 -L/mnt/lfs/tools/bin/../l
ib/gcc/x86_64-unknown-linux-gnu/4.2.3/../../../../x86_64-unknown-linux-gnu/lib
-L/tools/lib/gcc/x86_64-unknown-linux-gnu/4.2.3/../../../../
x86_64-unknown-linux-gnu/lib
-L/mnt/lfs/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.3/../../..
-L/tools/lib/gcc/x86_64-unknown-linux-gnu/4.2.3/../../.. /tmp/cc2nHFWb.o -lgcc
--as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed
/mnt/lfs/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.3/crtend.o
/usr/lib/../lib64/crtn.o/lib/libc.so.6: undefined reference to
[EMAIL PROTECTED]'
collect2: ld returned 1 exit status
greetz
Oswin Krause
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page