lsfnuiauwar 发表于 2020-4-3 19:42:00

按手册对uboot执行make后报错,可能是路径问题

# make
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make: 进入目录“/forlinx/uboot1.1.6/tools”
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
make: *** 没有规则可制作目标“.depend”,由“_depend” 需求。 停止。
make: 离开目录“/forlinx/uboot1.1.6/tools”
make: 进入目录“/forlinx/uboot1.1.6/examples”
make: 对“_depend”无需做任何事。
make: 离开目录“/forlinx/uboot1.1.6/examples”
make: 进入目录“/forlinx/uboot1.1.6/post”
make: 对“_depend”无需做任何事。
make: 离开目录“/forlinx/uboot1.1.6/post”
make: 进入目录“/forlinx/uboot1.1.6/post/cpu”
make: 对“_depend”无需做任何事。
make: 离开目录“/forlinx/uboot1.1.6/post/cpu”
make -C tools all
make: 进入目录“/forlinx/uboot1.1.6/tools”
gcc -Wall -pedantic -idirafter /forlinx/uboot1.1.6/include -idirafter /forlinx/uboot1.1.6/include2 -idirafter /forlinx/uboot1.1.6/include -DTEXT_BASE=0xCFE00000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
make: gcc: Command not found
/forlinx/uboot1.1.6/config.mk:234: recipe for target 'img2srec.o' failed
make: *** Error 127
make: 离开目录“/forlinx/uboot1.1.6/tools”
Makefile:281: recipe for target 'tools' failed
make: *** Error 2
我使用的编译器不是手册里面那种,出错可能是因为手册内提供的uboot有一些路径设置和我的不一样。请问,我该怎么修改,改哪些文件,depend又是哪个?

lsfnuiauwar 发表于 2020-4-4 17:03:55

# make
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make: 进入目录“/forlinx/uboot1.1.6/tools”
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
make: *** 没有规则可制作目标“.depend”,由“_depend” 需求。 停止。
make: 离开目录“/forlinx/uboot1.1.6/tools”
make: 进入目录“/forlinx/uboot1.1.6/examples”
make: 对“_depend”无需做任何事。
make: 离开目录“/forlinx/uboot1.1.6/examples”
make: 进入目录“/forlinx/uboot1.1.6/post”
make: 对“_depend”无需做任何事。
make: 离开目录“/forlinx/uboot1.1.6/post”
make: 进入目录“/forlinx/uboot1.1.6/post/cpu”
make: 对“_depend”无需做任何事。
make: 离开目录“/forlinx/uboot1.1.6/post/cpu”
make -C tools all
make: 进入目录“/forlinx/uboot1.1.6/tools”
gcc -Wall -pedantic -idirafter /forlinx/uboot1.1.6/include -idirafter /forlinx/uboot1.1.6/include2 -idirafter /forlinx/uboot1.1.6/include -DTEXT_BASE=0xCFE00000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
make: gcc: Command not found
/forlinx/uboot1.1.6/config.mk:234: recipe for target 'img2srec.o' failed
make: *** Error 127
make: 离开目录“/forlinx/uboot1.1.6/tools”
Makefile:280: recipe for target 'tools' failed
make: *** Error 2
换用手册提供的交叉编译器后结果一样。

zhichao 发表于 2020-4-7 09:18:39

您用的是哪块开发板

lsfnuiauwar 发表于 2020-4-8 19:07:35

zhichao 发表于 2020-4-7 09:18
您用的是哪块开发板

是OK6410-A

zhichao 发表于 2020-4-9 08:50:18

您用的开发环境是按照手册上提供的方法搭建的吗,编译之前是否配置config

lsfnuiauwar 发表于 2020-4-9 09:09:13

zhichao 发表于 2020-4-9 08:50
您用的开发环境是按照手册上提供的方法搭建的吗,编译之前是否配置config

是的。先执行#make forlinx_nand_ram256_config,然后#make clean,最后#make。不成功后我尝试了输入#make distclean,然后再重复上述步骤,还是报错。

zhichao 发表于 2020-4-9 13:27:57

是按照安装交叉编译器的吗,编译器解压到/usr/local/arm了吗

lsfnuiauwar 发表于 2020-4-27 19:09:12

zhichao 发表于 2020-4-9 13:27
是按照安装交叉编译器的吗,编译器解压到/usr/local/arm了吗

是的。我已经解决了,谢谢您的帮助。

wang1 发表于 2021-2-1 23:17:50

lsfnuiauwar 发表于 2020-4-27 19:09
是的。我已经解决了,谢谢您的帮助。

怎么解决的啊

123asd 发表于 2021-6-17 17:09:12

你好,我想问你的问题怎么解决的呀
页: [1]
查看完整版本: 按手册对uboot执行make后报错,可能是路径问题