1
/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
4

4 回答 4

2

如果工具链路径正确导出,那么您的问题与 32 位和 64 位不匹配有关。也许您正在尝试运行32 bit executable on 64 bit PC

你应该安装包“ia32-libs”

于 2013-06-27T09:15:47.243 回答
2

我遇到过同样的问题。我跟着这个链接,我改变了这个:

make CROSS_COMPILE=arm-linux-gnueabihf- TARGET 

至:

export CROSS_COMPILE=/full path/arm-linux-eabi- TARGET 
make

它对我有用。

于 2014-01-24T20:47:29.630 回答
0

也许工具链设置不正确。编辑 /etc/profile 后,你应该执行 commond:source /etc/profile。或者,安装工具链后,在做make之前,执行: export ARCH=arm export CROSS_COMPILE=arm-eabi- 之后,做make

于 2013-08-21T03:09:01.267 回答
-1

如果你在安装arm-eabi-gcc、arm-eabi-g++等工具链的时候碰巧遇到这个错误,可以这样设置toochain的全路径。

export CROSS_COMPILE=/完整路径/arm-linux-eabi-

完整路径取决于您上面的环境。

于 2014-12-25T08:40:10.377 回答