免费注册 查看新帖 |

Chinaunix

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

搭建交叉编译环境的时候出错,请大家进来看看!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-24 15:59 |只看该作者 |倒序浏览
编译ARM+LINUX交叉编译环境的时候出现错误,请大家帮忙分析一下,谢谢!
具体软件:
binutils-2.14.tar.bz2
gcc-3.3.2.tar.bz
glibc-2.2.5.tar.bz2
glibc-linuxthreads-2.2.5.tar.bz2

编译binutils-2.14.tar.bz2的时候很顺利通过
编译gcc-3.3.2.tar.bz的时候出现一下错误:
make[1]: Entering directory `/opt/cross/gcc-3.3.2/arm-linux/libiberty'
make[2]: Entering directory `/opt/cross/gcc-3.3.2/arm-linux/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/opt/cross/gcc-3.3.2/arm-linux/libiberty/testsuite'
make[1]: Leaving directory `/opt/cross/gcc-3.3.2/arm-linux/libiberty'
make[1]: Entering directory `/opt/cross/gcc-3.3.2/arm-linux/gcc'
gcc -c   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include ../../gcc/read-rtl.c -o read-rtl.o
In file included from ../../gcc/read-rtl.c:24:
../../gcc/rtl.h:132: warning: type of bit-field 鈉ode?is a GCC extension
../../gcc/rtl.h:135: warning: type of bit-field 鈓ode?is a GCC extension
../../gcc/read-rtl.c: In function 鈌atal_with_file_and_line?
../../gcc/read-rtl.c:53: warning: traditional C rejects ISO C style function definitions
../../gcc/read-rtl.c: In function 鈘ead_rtx?
../../gcc/read-rtl.c:653: error: invalid lvalue in increment
make[1]: *** [read-rtl.o] Error 1
make[1]: Leaving directory `/opt/cross/gcc-3.3.2/arm-linux/gcc'
make: *** [all-gcc] Error 2


请问各位这是由于什么引起的,改如何解决,谢谢!!

论坛徽章:
0
2 [报告]
发表于 2007-07-24 20:01 |只看该作者
我是直接下载打包好的ARM-GCC,版本是3.4.1,没编译过,帮顶了。

论坛徽章:
0
3 [报告]
发表于 2007-07-25 12:54 |只看该作者
关键字:CLFS

论坛徽章:
0
4 [报告]
发表于 2007-07-25 20:12 |只看该作者
关键字 crosstools

http://www.kegel.com/crosstool/

论坛徽章:
0
5 [报告]
发表于 2007-07-31 14:05 |只看该作者
有个cross包,直接解压完就可以了

论坛徽章:
0
6 [报告]
发表于 2007-07-31 16:45 |只看该作者
确实,用CROSSTOOLS安装省心很多,

手动搭建老出问题,搞得郁闷

论坛徽章:
0
7 [报告]
发表于 2007-08-01 17:53 |只看该作者
后来还是直接用了CROSSTOOLS

手动搭建没有搞定,郁闷ING!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP