2013-06-27 4 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 bit executable on 64 bit PC를 실행하려고 32 비트 및 64 비트 mismatch.Perhaps 관련이 수출됩니다.

패키지 "IA32 - libs와"

+0

ia32-libs는 최신 Ubuntu 16.04에서 더 이상 사용되지 않습니다. 그것은 동등한 라이브러리 "lib32z1", "lib32ncurses5"의 apt-get과 함께 작동합니다. – Hemant

0

를 설치해야합니다 아마 툴 체인은 잘 설정되어 있지 않습니다./etc/profile을 편집 한 후에는/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 ++와 같은 툴체인을 설치했을 때이 오류가 발생하는 경우 이와 같이 너무 긴 경로를 설정할 수 있습니다.

수출 CROSS_COMPILE =/전체 경로/팔 - 리눅스 - eabi-

전체 경로는 위에 enviornment에 따라 달라집니다.

+2

이 답변은 이전 답변에 아직 언급되지 않은 사항을 추가합니다. –