3661|3

77

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

请大家来帮手看看编译u-boot时出现的错误? [复制链接]

前提是我拿别人的交叉编译工具.
root@localhost u-boot-1.1.6]# export PATH=/ning/2.95.3/bin:$PATH
[root@localhost u-boot-1.1.6]# make B2_config
Configuring for B2 board...
[root@localhost u-boot-1.1.6]# make
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: Entering directory `/ning/u-boot-1.1.6/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/ning/u-boot-1.1.6/tools'
make[1]: Entering directory `/ning/u-boot-1.1.6/examples'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/ning/u-boot-1.1.6/examples'
make[1]: Entering directory `/ning/u-boot-1.1.6/post'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/ning/u-boot-1.1.6/post'
make[1]: Entering directory `/ning/u-boot-1.1.6/post/cpu'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/ning/u-boot-1.1.6/post/cpu'
make -C tools all
make[1]: Entering directory `/ning/u-boot-1.1.6/tools'
gcc -Wall -pedantic -idirafter /ning/u-boot-1.1.6/include -idirafter /ning/u-boot-1.1.6/include2 -idirafter /ning/u-boot-1.1.6/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
gcc -Wall -pedantic -idirafter /ning/u-boot-1.1.6/include -idirafter /ning/u-boot-1.1.6/include2 -idirafter /ning/u-boot-1.1.6/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O  -o img2srec img2srec.o
strip img2srec
gcc -g -Wall -pedantic -idirafter /ning/u-boot-1.1.6/include -idirafter /ning/u-boot-1.1.6/include2 -idirafter /ning/u-boot-1.1.6/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -c -o mkimage.o mkimage.c
gcc -g -Wall -pedantic -idirafter /ning/u-boot-1.1.6/include -idirafter /ning/u-boot-1.1.6/include2 -idirafter /ning/u-boot-1.1.6/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -c -o crc32.o crc32.c
gcc -Wall -pedantic -idirafter /ning/u-boot-1.1.6/include -idirafter /ning/u-boot-1.1.6/include2 -idirafter /ning/u-boot-1.1.6/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O  -o mkimage mkimage.o crc32.o
strip mkimage
gcc -g -Wall -pedantic -idirafter /ning/u-boot-1.1.6/include -idirafter /ning/u-boot-1.1.6/include2 -idirafter /ning/u-boot-1.1.6/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -c -o envcrc.o envcrc.c
gcc -g  -idirafter /ning/u-boot-1.1.6/include -idirafter /ning/u-boot-1.1.6/include2 -idirafter /ning/u-boot-1.1.6/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -c -o environment.o environment.c
gcc -Wall -pedantic -idirafter /ning/u-boot-1.1.6/include -idirafter /ning/u-boot-1.1.6/include2 -idirafter /ning/u-boot-1.1.6/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -o envcrc envcrc.o crc32.o environment.o
gcc -g -Wall -pedantic -idirafter /ning/u-boot-1.1.6/include -idirafter /ning/u-boot-1.1.6/include2 -idirafter /ning/u-boot-1.1.6/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -c -o gen_eth_addr.o gen_eth_addr.c
gcc -Wall -pedantic -idirafter /ning/u-boot-1.1.6/include -idirafter /ning/u-boot-1.1.6/include2 -idirafter /ning/u-boot-1.1.6/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O  -o gen_eth_addr gen_eth_addr.o
strip gen_eth_addr
gcc -Wall -pedantic -idirafter /ning/u-boot-1.1.6/include -idirafter /ning/u-boot-1.1.6/include2 -idirafter /ning/u-boot-1.1.6/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O -c -o bmp_logo.o bmp_logo.c
gcc -Wall -pedantic -idirafter /ning/u-boot-1.1.6/include -idirafter /ning/u-boot-1.1.6/include2 -idirafter /ning/u-boot-1.1.6/include -DTEXT_BASE=0x0C100000 -DUSE_HOSTCC -O  -o bmp_logo bmp_logo.o
strip bmp_logo
./bmp_logo logos/denx.bmp >/ning/u-boot-1.1.6/include/bmp_logo.h
make[1]: Leaving directory `/ning/u-boot-1.1.6/tools'
make -C examples all
make[1]: Entering directory `/ning/u-boot-1.1.6/examples'
arm-linux-gcc -g  -Os  -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x0C100000  -I/ning/u-boot-1.1.6/include -fno-builtin -ffreestanding -nostdinc -isystem include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv4 -mtune=arm7tdmi -msoft-float -mabi=apcs-gnu -Uarm -Wall -Wstrict-prototypes -c -o hello_world.o hello_world.c
arm-linux-gcc: installation problem, cannot exec `cpp0': ?????????
arm-linux-gcc: installation problem, cannot exec `cc1': ?????????
as:无法识别的选项“-marmv4”
make[1]: *** [hello_world.o] Error 1
make[1]: Leaving directory `/ning/u-boot-1.1.6/examples'
make: *** [examples] Error 2

最新回复

我的也有问题,我是用arm-elf-gcc编译的,错误是 make[1]: Leaving directory `/u-boot/uboot/cpu/s3c44b0' make -C lib_arm/ make[1]: Entering directory `/u-boot/uboot/lib_arm' arm-elf-gcc: _ashldi3.o: ????????? arm-elf-gcc: unrecognized option `-MQ' arm-elf-gcc: _ashrdi3.o: ????????? arm-elf-gcc: unrecognized option `-MQ' arm-elf-gcc: _divsi3.o: ????????? arm-elf-gcc: unrecognized option `-MQ' arm-elf-gcc: _modsi3.o: ????????? arm-elf-gcc: unrecognized option `-MQ' arm-elf-gcc: _udivsi3.o: ????????? arm-elf-gcc: unrecognized option `-MQ' arm-elf-gcc: _umodsi3.o: ????????? arm-elf-gcc: unrecognized option `-MQ' arm-elf-gcc: armlinux.o: ????????? arm-elf-gcc: unrecognized option `-MQ' arm-elf-gcc: board.o: ????????? arm-elf-gcc: unrecognized option `-MQ' arm-elf-gcc: cache.o: ????????? arm-elf-gcc: unrecognized option `-MQ' arm-elf-gcc: div0.o: ????????? arm-elf-gcc: unrecognized option `-MQ' make[1]: *** 没有规则可以创建“libarm.a”需要的目标“.depend”。 停止。 make[1]: Leaving directory `/u-boot/uboot/li"  详情 回复 发表于 2010-3-5 16:23
点赞 关注

回复
举报

76

帖子

0

TA的资源

一粒金砂(初级)

沙发
 
这个东西,。。。。不太了解!同     学!
 
 

回复

65

帖子

0

TA的资源

一粒金砂(初级)

板凳
 
可能是交叉编译工具问题,建议使用高版本的GCC试试看。
 
 
 

回复

56

帖子

0

TA的资源

一粒金砂(初级)

4
 
我的也有问题,我是用arm-elf-gcc编译的,错误是
make[1]: Leaving directory `/u-boot/uboot/cpu/s3c44b0'
make -C lib_arm/
make[1]: Entering directory `/u-boot/uboot/lib_arm'
arm-elf-gcc: _ashldi3.o: ?????????
arm-elf-gcc: unrecognized option `-MQ'
arm-elf-gcc: _ashrdi3.o: ?????????
arm-elf-gcc: unrecognized option `-MQ'
arm-elf-gcc: _divsi3.o: ?????????
arm-elf-gcc: unrecognized option `-MQ'
arm-elf-gcc: _modsi3.o: ?????????
arm-elf-gcc: unrecognized option `-MQ'
arm-elf-gcc: _udivsi3.o: ?????????
arm-elf-gcc: unrecognized option `-MQ'
arm-elf-gcc: _umodsi3.o: ?????????
arm-elf-gcc: unrecognized option `-MQ'
arm-elf-gcc: armlinux.o: ?????????
arm-elf-gcc: unrecognized option `-MQ'
arm-elf-gcc: board.o: ?????????
arm-elf-gcc: unrecognized option `-MQ'
arm-elf-gcc: cache.o: ?????????
arm-elf-gcc: unrecognized option `-MQ'
arm-elf-gcc: div0.o: ?????????
arm-elf-gcc: unrecognized option `-MQ'
make[1]: *** 没有规则可以创建“libarm.a”需要的目标“.depend”。 停止。
make[1]: Leaving directory `/u-boot/uboot/li"
 
 
 

回复
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/9 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表