免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3338 | 回复: 0
打印 上一主题 下一主题

[开发环境] buildroot 出现 libc.so.0 => not found [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-04-27 10:57 |只看该作者 |倒序浏览
用buildroot-2011.2 和 buildroot-2009.11
编译完之后
交叉工具链不能使用(编译成静态的可用,态动不可用)提示找不到LIBC,但是在工具链下面有这个东西

$ mipsel-linux-gcc --version
mipsel-linux-gcc (GCC) 4.4.2
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ mipsel-linux-gcc -v
Using built-in specs.
Target: mipsel-linux-uclibc
Configured with: /home/loongson/buildroot/buildroot-2009.11/output/toolchain/gcc-4.4.2/configure --prefix=/usr --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=mipsel-linux-uclibc --enable-languages=c --with-sysroot=/opt/gcc-cross-loongson --with-build-time-tools=/opt/gcc-cross-loongson/usr/mipsel-linux-uclibc/bin --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-libssp --disable-tls --disable-shared --with-gmp=/home/loongson/buildroot/buildroot-2009.11/output/toolchain/gmp --with-mpfr=/home/loongson/buildroot/buildroot-2009.11/output/toolchain/mpfr --disable-nls --enable-threads --disable-multilib --disable-decimal-float --with-float=soft --with-abi=32 --with-tune=mips1
Thread model: posix
gcc version 4.4.2 (GCC)


$ file ./a.out
./a.out: ELF 32-bit LSB executable, MIPS, MIPS-I version 1 (SYSV), dynamically linked (uses shared libs), with unknown capability 0xf41 = 0x756e6700, not stripped

$ mipsel-linux-ldd ./a.out
        libc.so.0 => not found (0x00000000)
        /lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x00000000)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP