主题 : AODV-UU-0.9.6编译问题,请各位帮忙一下 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 58914
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
综合积分: 10 分
注册时间: 2011-11-16
最后登录: 2012-06-11
楼主  发表于: 2012-04-09 15:30

 AODV-UU-0.9.6编译问题,请各位帮忙一下

管理提醒: 本帖被 qq2440 从 micro2440技术交流专区 移动到本区(2013-11-18)
我在编译aodv-uu-0.9.6出现如下:
/opt/FriendlyARM/toolschain/4.4.3/lib/gcc/arm-none-linux-gnueabi/4.4.3/../../../../arm-none-linux-gnueabi/lib/libgcc_s.so.1: could not read symbols: File in wrong format

不知道这是什么问题,请各位亲帮忙看一下这是为什么
级别: 新手上路
UID: 58914
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
综合积分: 10 分
注册时间: 2011-11-16
最后登录: 2012-06-11
1楼  发表于: 2012-04-10 10:05

 回 楼主(56508820) 的帖子

有知道问题的同学吗,真的很急,能帮忙的都回答一下吗,谢谢
级别: 新手上路
UID: 58914
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
综合积分: 10 分
注册时间: 2011-11-16
最后登录: 2012-06-11
2楼  发表于: 2012-04-10 11:16
问题补充一下,是这行下面这一条语句出现错误的
[root@localhost aodv-uu-0.9.6]# arm-linux-gcc -mbig-endian -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY  -DDEBUG -DARM -o aodvd main-arm.o list-arm.o debug-arm.o timer_queue-arm.o aodv_socket-arm.o aodv_hello-arm.o aodv_neighbor-arm.o aodv_timeout-arm.o routing_table-arm.o seek_list-arm.o aodv_rreq-arm.o aodv_rrep-arm.o aodv_rerr-arm.o nl-arm.o locality-arm.o
错误提示:
/opt/FriendlyARM/toolschain/4.4.3/lib/gcc/arm-none-linux-gnueabi/4.4.3/../../../../arm-none-linux-gnueabi/lib/libgcc_s.so.1: could not read symbols: File in wrong format
级别: 新手上路
UID: 58914
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
综合积分: 10 分
注册时间: 2011-11-16
最后登录: 2012-06-11
3楼  发表于: 2012-04-11 09:16
交叉编译aodv-uu-0.9.5时出现错误,具体如下
[root@localhost aodv-uu-0.9.5]# make arm
arm-linux-gcc -mbig-endian -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -DARM -c -o main-arm.o main.c
arm-linux-gcc -mbig-endian -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -DARM -c -o list-arm.o list.c
arm-linux-gcc -mbig-endian -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -DARM -c -o debug-arm.o debug.c
arm-linux-gcc -mbig-endian -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -DARM -c -o timer_queue-arm.o timer_queue.c
arm-linux-gcc -mbig-endian -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -DARM -c -o aodv_socket-arm.o aodv_socket.c
arm-linux-gcc -mbig-endian -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -DARM -c -o aodv_hello-arm.o aodv_hello.c
arm-linux-gcc -mbig-endian -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -DARM -c -o aodv_neighbor-arm.o aodv_neighbor.c
arm-linux-gcc -mbig-endian -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -DARM -c -o aodv_timeout-arm.o aodv_timeout.c
arm-linux-gcc -mbig-endian -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -DARM -c -o routing_table-arm.o routing_table.c
arm-linux-gcc -mbig-endian -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -DARM -c -o seek_list-arm.o seek_list.c
arm-linux-gcc -mbig-endian -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -DARM -c -o aodv_rreq-arm.o aodv_rreq.c
arm-linux-gcc -mbig-endian -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -DARM -c -o aodv_rrep-arm.o aodv_rrep.c
arm-linux-gcc -mbig-endian -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -DARM -c -o aodv_rerr-arm.o aodv_rerr.c
arm-linux-gcc -mbig-endian -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -DARM -c -o nl-arm.o nl.c
arm-linux-gcc -mbig-endian -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -DARM -c -o locality-arm.o locality.c
arm-linux-gcc -mbig-endian -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -DARM -o aodvd main-arm.o list-arm.o debug-arm.o timer_queue-arm.o aodv_socket-arm.o aodv_hello-arm.o aodv_neighbor-arm.o aodv_timeout-arm.o routing_table-arm.o seek_list-arm.o aodv_rreq-arm.o aodv_rrep-arm.o aodv_rerr-arm.o nl-arm.o loca
lity-arm.o  
/opt/FriendlyARM/toolschain/4.4.3/lib/gcc/arm-none-linux-gnueabi/4.4.3/../../../../arm-none-linux-gnueabi/lib/libgcc.so.1: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [aodvd-arm] Error 1

arm-linux-gcc4.4.3用于linux2.6的toolchain
可以排除是交叉编译工具文件问题,因为我试过几个版本的交叉编译器也有这种问题。
我怀疑是使用了-mbig-endian这个参数的问题,我试过在Makefile中的把这个参数去掉,就可以执行上面出错的语句,但是后面会出现很多错误。不知道是什么问题,请各位亲帮忙看一下
级别: 新手上路
UID: 84060
精华: 0
发帖: 1
金钱: 5 两
威望: 1 点
综合积分: 2 分
注册时间: 2012-12-16
最后登录: 2012-12-17
4楼  发表于: 2012-12-17 09:50
你好,我也遇到这个问题了,请问你解决了么?