Setting up LTIB - Fedora 16 - libc.so.6 incompatible and not found

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Setting up LTIB - Fedora 16 - libc.so.6 incompatible and not found

Jump to solution
6,013 Views
DD1z
Contributor II

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

Labels (1)
Tags (2)
1 Solution
1,813 Views
mdc
Contributor V

Running the attached as root solved this problem for me. I'm using an Ubuntu 12.04 64-bit host.

View solution in original post

0 Kudos
5 Replies
1,813 Views
sergiobiasi
Contributor II

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.

1,813 Views
rogerio_silva
NXP Employee
NXP Employee

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

1,814 Views
mdc
Contributor V

Running the attached as root solved this problem for me. I'm using an Ubuntu 12.04 64-bit host.

0 Kudos
1,813 Views
raimundszabo
Contributor II

Hi DD1z,

Have you found solution for this problem? I have got same error message on Ubuntu 12.04 (32 bit).

Cheers,

Raimund

0 Kudos
1,813 Views
marcinmiklas
Contributor III

The same error on ubuntu 12.04 (64bit). Has anybody found a soulution ?

0 Kudos