/bin/bash: arm-eabi-gcc: command not found
/bin/bash: arm-eabi-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
/bin/bash: arm-eabi-gcc: command not found
/bin/bash: arm-eabi-ld: command not found
/bin/bash: arm-eabi-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
/bin/bash: arm-eabi-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
arm-eabi-gcc -DDO_DEPS_ONLY \
-g -Os -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -I/home/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem -pipe -DCONFIG_ARM -D__ARM__ -march=armv5 -Wall -Wstrict-prototypes \
-o lib/asm-offsets.s lib/asm-offsets.c -c -S
/bin/bash: arm-eabi-gcc: command not found
make: *** [lib/asm-offsets.s] Error 127
答案 0 :(得分:2)
如果正确导出工具链路径,那么您的问题与32位和64位不匹配有关。您可能正在尝试运行32 bit executable on 64 bit PC
。
你应该安装包“ia32-libs”
答案 1 :(得分:2)
我有同样的问题。我跟着这个link,我改变了这个:
make CROSS_COMPILE=arm-linux-gnueabihf- TARGET
为:
export CROSS_COMPILE=/full path/arm-linux-eabi- TARGET
make
它对我有用。
答案 2 :(得分:0)
也许工具链没有正确设定。编辑/ etc / profile后,您应该执行commond:source / etc / profile。 或者,在安装工具链之后,在执行make之前,执行: export ARCH = arm export CROSS_COMPILE = arm-eabi- 之后,做make
答案 3 :(得分:-1)
如果您在安装了arm-eabi-gcc,arm-eabi-g ++等工具链时碰巧遇到了这个错误,可以像这样设置toochain的完整路径。
导出CROSS_COMPILE = / full path / arm-linux-eabi-
完整的路径取决于你上面的环境。