zxr1521904712的博客

zxr1521904712的博客

ltib - fails to build Busybox in Ubuntu 12.04

ltib version : L3.0.35_1.1.0_121218_source.tar.gz

error message:

 

==========

/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: 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

 

 

RPM build errors:

Build time for busybox: 5 seconds

 

 

Started: Sat Mar 16 20:00:41 2013

Ended:   Sat Mar 16 20:00:47 2013

Elapsed: 6 seconds

 

These packages failed to build:

busybox


 分析:

 LTIB会从系统目录寻找/lib/libc.so.6 而不是从 LTIB 的tree中寻找.

 解决:

打开 ltib/dist/lfs/base_libs/base_libs.spec 文件并找到一下文本处,

     perl -w -e '

         @ARGV = grep { `file $_` =~ m,ASCII C program text, } @ARGV;

         exit(0) unless @ARGV;

删除分别以 "@ARGV" 和 "exit(0)" 开始的后两行,然后继续./ltib

阅读更多
文章标签: ltib
个人分类: ltib
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭