主题 : make zImage 错误~求救~! 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 4402
精华: 0
发帖: 4
金钱: 20 两
威望: 4 点
综合积分: 8 分
注册时间: 2009-03-13
最后登录: 2011-04-14
楼主  发表于: 2010-12-29 18:07

 make zImage 错误~求救~!

[root@EvanRedhat linux-2.6.32.2]# ls
arch                         COPYING        ipc            README
block                        CREDITS        Kbuild         REPORTING-BUGS
config_mini2440_a70          crypto         kernel         samples
config_mini2440_l80          Documentation  lib            scripts
config_mini2440_n35          drivers        MAINTAINERS    security
config_mini2440_n43          firmware       Makefile       sound
config_mini2440_t35          fs             mm             tools
config_mini2440_vga1024x768  include        modules.order  usr
config_mini2440_x35          init           net            virt
[root@EvanRedhat linux-2.6.32.2]# cp config_mini2440_x35 .config
cp:是否覆盖“.config”? y
[root@EvanRedhat linux-2.6.32.2]# make menuconfig
scripts/kconfig/mconf arch/arm/Kconfig


*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.

[root@EvanRedhat linux-2.6.32.2]# make zImage
scripts/kconfig/conf -s arch/arm/Kconfig
  CHK     include/linux/version.h
make[1]: “include/asm-arm/mach-types.h”是最新的。
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-arm
  CC      kernel/bounds.s
/opt/FriendlyARM/toolschain/4.4.3/libexec/gcc/arm-none-linux-gnueabi/4.4.3/cc1: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /opt/FriendlyARM/toolschain/4.4.3/lib/libppl_c.so.2)
/opt/FriendlyARM/toolschain/4.4.3/libexec/gcc/arm-none-linux-gnueabi/4.4.3/cc1: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /opt/FriendlyARM/toolschain/4.4.3/lib/libppl.so.7)
make[1]: *** [kernel/bounds.s] 错误 1
make: *** [prepare0] 错误 2
[root@EvanRedhat linux-2.6.32.2]#
^很多问题的背后都是简单的原因......
级别: 荣誉会员
UID: 34780
精华: 0
发帖: 1219
金钱: 6230 两
威望: 1246 点
综合积分: 2438 分
注册时间: 2010-12-21
最后登录: 2017-09-18
1楼  发表于: 2010-12-30 09:23
PC的linux是什么版本? 是Fedora 9吗?看提示信息是你的PC环境与交叉编译器不兼容
可先直接运行 arm-linux-gcc -v 验证一下,看是否正常
级别: 新手上路
UID: 4402
精华: 0
发帖: 4
金钱: 20 两
威望: 4 点
综合积分: 8 分
注册时间: 2009-03-13
最后登录: 2011-04-14
2楼  发表于: 2010-12-31 09:08
[root@EvanRedhat logo]# arm-linux-gcc -v
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with: /opt/FriendlyARM/mini2440/build-toolschain/working/src/gcc-4.4.3/configure --build=i386-build_redhat-linux-gnu --host=i386-build_redhat-linux-gnu --target=arm-none-linux-gnueabi --prefix=/opt/FriendlyARM/toolschain/4.4.3 --with-sysroot=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root --enable-languages=c,c++ --disable-multilib --with-arch=armv4t --with-cpu=arm920t --with-tune=arm920t --with-float=soft --with-pkgversion=ctng-1.6.1 --disable-sjlj-exceptions --enable-__cxa_atexit --with-gmp=/opt/FriendlyARM/toolschain/4.4.3 --with-mpfr=/opt/FriendlyARM/toolschain/4.4.3 --with-ppl=/opt/FriendlyARM/toolschain/4.4.3 --with-cloog=/opt/FriendlyARM/toolschain/4.4.3 --with-mpc=/opt/FriendlyARM/toolschain/4.4.3 --with-local-prefix=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-c99 --enable-long-long --enable-target-optspace
Thread model: posix
gcc version 4.4.3 (ctng-1.6.1)
级别: 新手上路
UID: 4402
精华: 0
发帖: 4
金钱: 20 两
威望: 4 点
综合积分: 8 分
注册时间: 2009-03-13
最后登录: 2011-04-14
3楼  发表于: 2010-12-31 09:12
[root@EvanRedhat linux-2.6.32.2]# uname -a
Linux EvanRedhat 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:54 EDT 2009 i686 i686 i386 GNU/Linux
^很多问题的背后都是简单的原因......
级别: 荣誉会员
UID: 34780
精华: 0
发帖: 1219
金钱: 6230 两
威望: 1246 点
综合积分: 2438 分
注册时间: 2010-12-21
最后登录: 2017-09-18
4楼  发表于: 2010-12-31 09:42
可以使用命令
readelf /usr/lib/libstdc++.so.6 -V | grep GLIBCXX_3.4.9
验证一下,你的系统我想是没有这个符号的

这应该是你的PC linux版本太低,与toolchain不兼容,建议查看手册,安装Fedora 9
级别: 新手上路
UID: 15976
精华: 0
发帖: 18
金钱: 90 两
威望: 18 点
综合积分: 36 分
注册时间: 2010-03-12
最后登录: 2012-06-04
5楼  发表于: 2011-01-04 21:18
可尝试如下操作:
1、删除/usr/lib/libstdc++.so.6文件(# rm /usr/lib/libstdc++.so.6)
2、把下载文件libstdc++.so.6.0.10复制到/usr/lib/下(#cplibstdc++.so.6.0.10  /usr/lib/)
3、(#cd /usr/lib/)
4、建立链接(# ln -s /usr/lib/libstdc++.so.6.0.10 /usr/lib/libstdc++.so.6)
5、查看链接是否成功(#strings  /usr/lib/libstdc++.so.6 | grep GLIBCXX)

详情请看:http://hi.baidu.com/%BD%F9%D3%F1%B1%F3168/blog/item/dbba894159ccd32d86947377.html