2013-06-27 173 views
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 

回答

2

如果正確導出工具鏈路徑,那麼您的問題與32位和64位不匹配有關。也許您試圖運行32 bit executable on 64 bit PC

你應該安裝包「IA32-庫」

+0

ia32-libs在最新的Ubuntu 16.04中已棄用。它適用於我的等價庫「lib32z1」,「lib32ncurses5」的apt-get。 – Hemant

0

也許工具鏈是不正確的設置。在編輯/ etc/profile之後,你應該執行commond:source/etc/profile。 或者,後安裝工具鏈,做讓前,執行: 出口ARCH =手臂 出口CROSS_COMPILE =臂eabi- 之後,做讓

2

我有同樣的問題。我跟着這個link,我改變了這一點:

make CROSS_COMPILE=arm-linux-gnueabihf- TARGET 

到:

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

而且它爲我工作。

+1

這對我很好!謝謝! – Adam

-1

如果您碰巧遇到了這個錯誤,當您安裝瞭如arm-eabi-gcc,arm-eabi-g ++等工具鏈時,可以像這樣設置toochain的完整路徑。

出口CROSS_COMPILE = /全路徑/ ARM-Linux的eabi-

的完整路徑取決於你enviornment以上。

+2

這個答案增加了前面答案中沒有說明的內容。 –