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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
8,175件の閲覧回数
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 解決策
3,972件の閲覧回数
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 返答(返信)
3,972件の閲覧回数
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.

3,972件の閲覧回数
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

3,973件の閲覧回数
mdc
Contributor V

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

0 件の賞賛
返信
3,972件の閲覧回数
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 件の賞賛
返信
3,972件の閲覧回数
marcinmiklas
Contributor III

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

0 件の賞賛
返信