主题 : u-bootb编译错误,请有经验的赐教啊 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 91893
精华: 0
发帖: 12
金钱: 65 两
威望: 13 点
贡献值: 0 点
综合积分: 24 分
注册时间: 2013-05-18
最后登录: 2014-04-04
楼主  发表于: 2013-06-23 16:47

 u-bootb编译错误,请有经验的赐教啊

用的是arm-linux-gcc-4.3.2,只是看着网络上改了改u-boot,编译错误一大堆,编译器应该没问题,我设置好了路径查了下可以显示版本信息,那应该安装好了,下面一大堆哪有问题,新手求教
[root@CentOS u-boot-201003]# make ARCH=arm CORSS_COMPILE=/usr/local/arm/4.3.2/bin/arm-linux- all
make: arm-linux-gcc-4.3.2gcc:命令未找到
/bin/sh: arm-linux-gcc-4.3.2gcc: command not found
dirname: 缺少操作数
请尝试执行"dirname --help"来获取更多信息。
Generating include/autoconf.mk
/bin/sh: line 3: arm-linux-gcc-4.3.2gcc: command not found
/bin/sh: arm-linux-gcc-4.3.2gcc: command not found
dirname: 缺少操作数
请尝试执行"dirname --help"来获取更多信息。
Generating include/autoconf.mk.dep
/bin/sh: line 3: arm-linux-gcc-4.3.2gcc: command not found
make: arm-linux-gcc-4.3.2gcc:命令未找到
/bin/sh: arm-linux-gcc-4.3.2gcc: command not found
dirname: 缺少操作数
请尝试执行"dirname --help"来获取更多信息。
/bin/sh: arm-linux-gcc-4.3.2gcc: command not found
dirname: 缺少操作数
请尝试执行"dirname --help"来获取更多信息。
for dir in tools examples/standalone examples/api cpu/arm920t /usr/u-boot-201003/cpu/arm920t/ ; do \
            make -C $dir _depend ; done
/bin/sh: arm-linux-gcc-4.3.2gcc: command not found
dirname: 缺少操作数
请尝试执行"dirname --help"来获取更多信息。
make[1]: arm-linux-gcc-4.3.2gcc:命令未找到
make[1]: Entering directory `/usr/u-boot-201003/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/usr/u-boot-201003/tools'
make[1]: arm-linux-gcc-4.3.2gcc:命令未找到
make[1]: Entering directory `/usr/u-boot-201003/examples/standalone'
/bin/sh: arm-linux-gcc-4.3.2gcc: command not found
dirname: 缺少操作数
请尝试执行"dirname --help"来获取更多信息。
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/usr/u-boot-201003/examples/standalone'
make[1]: arm-linux-gcc-4.3.2gcc:命令未找到
make[1]: Entering directory `/usr/u-boot-201003/examples/api'
/bin/sh: arm-linux-gcc-4.3.2gcc: command not found
dirname: 缺少操作数
请尝试执行"dirname --help"来获取更多信息。
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/usr/u-boot-201003/examples/api'
make[1]: arm-linux-gcc-4.3.2gcc:命令未找到
make[1]: Entering directory `/usr/u-boot-201003/cpu/arm920t'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/usr/u-boot-201003/cpu/arm920t'
make[1]: arm-linux-gcc-4.3.2gcc:命令未找到
make[1]: Entering directory `/usr/u-boot-201003/cpu/arm920t'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/usr/u-boot-201003/cpu/arm920t'
make -C tools all
/bin/sh: arm-linux-gcc-4.3.2gcc: command not found
dirname: 缺少操作数
请尝试执行"dirname --help"来获取更多信息。
make[1]: arm-linux-gcc-4.3.2gcc:命令未找到
make[1]: Entering directory `/usr/u-boot-201003/tools'
make[1]: Leaving directory `/usr/u-boot-201003/tools'
make -C examples/standalone all
/bin/sh: arm-linux-gcc-4.3.2gcc: command not found
dirname: 缺少操作数
请尝试执行"dirname --help"来获取更多信息。
make[1]: arm-linux-gcc-4.3.2gcc:命令未找到
make[1]: Entering directory `/usr/u-boot-201003/examples/standalone'
/bin/sh: arm-linux-gcc-4.3.2gcc: command not found
dirname: 缺少操作数
请尝试执行"dirname --help"来获取更多信息。
arm-linux-gcc-4.3.2gcc  -g  -Os   -fno-common -ffixed-r8   -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/usr/u-boot-201003/include -fno-builtin -ffreestanding -nostdinc -isystem  -pipe  -DCONFIG_ARM -D__ARM__         -march=armv4 -Wall -Wstrict-prototypes    -o hello_world.o hello_world.c -c
make[1]: arm-linux-gcc-4.3.2gcc:命令未找到
make[1]: *** [hello_world.o] 错误 127
make[1]: Leaving directory `/usr/u-boot-201003/examples/standalone'
make: *** [examples/standalone] 错误 2
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2013-06-23 20:24

 回 楼主(309785731) 的帖子

make ARCH=arm CORSS_COMPILE=/usr/local/arm/4.3.2/bin/arm-linux- all

友善之臂提供的编译器不能用这种方式调用。你可以用"make ARCH=arm CORSS_COMPILE=/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi- all"
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 91893
精华: 0
发帖: 12
金钱: 65 两
威望: 13 点
贡献值: 0 点
综合积分: 24 分
注册时间: 2013-05-18
最后登录: 2014-04-04
2楼  发表于: 2013-06-24 19:00

 Re:回 楼主(309785731) 的帖子

引用第1楼kasim于2013-06-23 20:24发表的 回 楼主(309785731) 的帖子 :

友善之臂提供的编译器不能用这种方式调用。你可以用"make ARCH=arm CORSS_COMPILE=/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi- all"

按你说的还是不行啊,我设置环境变量了,敲arm-linux-gcc -v查看版本也有版本信息,那是不是排除了我没装好编译工具链,u-boot我改的也很少,是u-boot修改的有问题导致的吗?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2013-06-24 20:53

 回 2楼(309785731) 的帖子

我用这样的设置可以编译光盘上的u-boot 1.1.6.
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."