This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
ld issue during cross compilation
- From: Hello World <xenoneus at yahoo dot com>
- To: binutils at sourceware dot org
- Date: Thu, 17 Jul 2008 06:54:27 -0700 (PDT)
- Subject: ld issue during cross compilation
Hi,
I am trying to build cross compiler for "armeb" target with uClibc. Building a cross compiler is still a pain ;( I have tried buildroot but it has different set of issues ( http://buildroot.uclibc.org/ ) so I settled on doing this myself from the source.
I followed the regular steps and created the pass1 gcc and then built uClibc with pass1 gcc.
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
Is this an issue with ld or uClibc or gcc config issue or have I messed up with sysroot? Google doesn't turn up any useful results so I am guessing I am doing something stupid. Any help is greatly appreciated.
Here is my stage1 gcc configuration
../configure --prefix=/home/builder/tools/arm-tools --target=armeb-softfloat-linux-uclibceabi --disable-threads --disable-shared --disable-nls --with-float=soft --enable-languages=c --enable-cross --disable-checking --enable-multilib --with-numa-policy=no --disable-libssp --with-cpu=arm1176jz-s --with-tune=arm1176jz-s --disable-libmudflap --with-gnu-as --with-gnu-ld --enable-symvers=gnu --with-interwork --with-sysroot=/home/builder/tools/target --disable-__cxa_atexit --enable-target-optspace
make all-gcc install-gcc
Here is my final gcc configuration
../configure --prefix=/home/builder/tools/arm-tools --target=armeb-softfloat-linux-uclibceabi --enable-threads --disable-nls --with-float=soft --enable-languages=c --enable-cross --enable-shared --disable-checking --enable-multilib --with-numa-policy=no --disable-libssp --with-cpu=arm1176jz-s --with-tune=arm1176jz-s --disable-libmudflap --with-gnu-as --with-gnu-ld --enable-symvers=gnu --with-interwork --with-sysroot=/home/builder/tools/arm-tools
make
Here is my 'binutils' configuration
../configure --prefix=/home/builder/tools/arm-tools --target=armeb-softfloat-linux-uclibceabi --with-sysroot=/home/builder/tools/arm-tools --disable-nls --disable-multilib --disable-werror
make
Thanks in advance.