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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
6,665 次查看
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

标签 (1)
标记 (2)
1 解答
2,465 次查看
mdc
Contributor V

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

在原帖中查看解决方案

0 项奖励
回复
5 回复数
2,465 次查看
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.

2,465 次查看
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

2,466 次查看
mdc
Contributor V

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

0 项奖励
回复
2,465 次查看
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 项奖励
回复
2,465 次查看
marcinmiklas
Contributor III

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

0 项奖励
回复