Error while re-adjusting toolchain (6.12)

Michael Limiero mike5713 at gmail.com
Thu Jun 22 10:41:20 PDT 2006


On 6/21/06, Dan Nicholson <dbn.lists at gmail.com> wrote:
> OK, so the ld that cc is going to use is looking in /lib, but it's not
> finding ld-linux.so.2.  Could you try compiling the dummy program
> again, but this time turn on the linker verbosity?  Run this command
>
> cc -Wl,--verbose dummy.c &> dummy.log
>
> This just redirects all the messages to dummy.log.  Now look at the
> bottom of this file.  It should show the various places that the
> libraries are being found in.  Could you paste the output here?
root:/sources# cc -WI, --verbose dummy.c &> dummy.log
root:/sources# cat dummy.log
Reading specs from /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --prefix=/tools
--libexecdir=/tools/lib --with-local-prefix=/tools
--enable-clocale=gnu --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch
Thread model: posix
gcc version 3.4.3
 /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/cc1 -quiet -v dummy.c -quiet
-dumpbase dummy.c -mtune=pentiumpro -auxbase dummy -WI, -version -o
/tmp/cc2Kalff.s
ignoring nonexistent directory
"/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /tools/include
 /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/include
End of search list.
GNU C version 3.4.3 (i686-pc-linux-gnu)
        compiled by GNU C version 3.4.3.
GGC heuristics: --param ggc-min-expand=90 --param ggc-min-heapsize=113205
 /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/as
-V -Qy -o /tmp/ccmQBZsn.o /tmp/cc2Kalff.s
GNU assembler version 2.15.94.0.2.2 (i686-pc-linux-gnu) using BFD
version 2.15.94.0.2.2 20041220
 /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/collect2 --eh-frame-hdr -m
elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o
/usr/lib/crti.o /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/crtbegin.o
-L/tools/lib/gcc/i686-pc-linux-gnu/3.4.3
-L/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/lib
/tmp/ccmQBZsn.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc
--as-needed -lgcc_s --no-as-needed
/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/crtend.o /usr/lib/crtn.o
/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld:
warning: ld-linux.so.2, needed by /lib/libc.so.6, not found (try using
-rpath or -rpath-link)
/lib/libc.so.6: undefined reference to `_rtld_global at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `__libc_enable_secure at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `__libc_stack_end at GLIBC_2.1'
/lib/libc.so.6: undefined reference to `_rtld_global_ro at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `_dl_out_of_memory at GLIBC_PRIVATE'
/lib/libc.so.6: undefined reference to `___tls_get_addr at GLIBC_2.3'
/lib/libc.so.6: undefined reference to `_r_debug at GLIBC_2.0'
/lib/libc.so.6: undefined reference to `_dl_argv at GLIBC_PRIVATE'
collect2: ld returned 1 exit status
root:/sources#



More information about the lfs-support mailing list