Hi,
I am trying to install LTIB at my laptop with Fedora 16. LTIB was already successfully installed on a Ubuntu 10.04 machine. But on Fedora I am facoing following problem.
LTIB cannot find libc.so.6.
That's the error message of busybox:
/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: skipping incompatible /lib/libc.so.6 when searching for /lib/libc.so.6
/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find /lib/libc.so.6
/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: skipping incompatible /usr/lib/libc_nonshared.a when searching for /usr/lib/libc_nonshared.a
/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find /usr/lib/libc_nonshared.a
/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find /lib/ld-linux.so.3
collect2: ld returned 1 exit status
make: *** [busybox_unstripped] Error 1
Any idea how to setup LTIB correctly with Fedora ?
My machine setup:
-Fedora 16
-Kernel 3.3.7
已解决! 转到解答。
I had the same problem on a host running Slackware 14.0
Googling I found the solution, at least for me, in this thread: [Ltib] skipping incompatible /lib/libc.so.6
If it works for you, I think it's a better fix than relinking the toolchain libraries.
Hi Sergio,
The solution you found really works. I'm using Ubuntu 64bits. We have to change:
@ARGV = grep { `file $_` =~ m,ASCII C program text, } @ARGV;
to
@ARGV = grep { `file $_` =~ m,ASCII\s+.*text, } @ARGV;
on files:
<ltib>/dist/lfs-5.1/base_libs/base_libs.spec
<ltib>/dist/lfs-5.1/glibc/glibc-2.3.2.spec
<ltib>/dist/lfs-5.1/glibc/glibc.spec
Regards,
Rogerio