This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld issue during cross compilation
- From: Hello World <xenoneus at yahoo dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sourceware dot org
- Date: Mon, 21 Jul 2008 19:17:35 -0700 (PDT)
- Subject: Re: ld issue during cross compilation
Rich DAddio helped me narrow the problem down in a private email exchange.
I had incorrectly set the following settings in uClibc config to absolute paths equivalent to my --prefix option without knowing how the shared libraries worked.
SHARED_LIB_LOADER_PREFIX="/lib"
RUNTIME_PREFIX="/"
DEVEL_PREFIX="/usr/"
Once I fixed this I was able to generate the final gcc.
Thanks.
----- Original Message ----
From: Nick Clifton <nickc@redhat.com>
To: Hello World <xenoneus@yahoo.com>
Cc: binutils@sourceware.org
Sent: Monday, July 21, 2008 12:08:41 PM
Subject: Re: ld issue during cross compilation
Hi,
> When I create the final gcc, I get this error from 'ld'. It complains that it cannot find libc.so.0 but the file exists. I have built ld using the correct sysroot..
> /home/builder/tools/arm-tools/armeb-softfloat-linux-uclibceabi/bin/ld: cannot find /home/builder/tools/arm-tools/lib/libc.so.0 inside /home/builder/tools/arm-tools
Try adding --verbose to the linker command line (or -Wl,--verbose to the
gcc command line). Then the linker will show you where it is searching
for the library and also mention if its finds it but thinks that it is
incompatible for some reason. This may help you track down where the
problem is occurring.
Cheers
Nick