簡體   English   中英

交叉編譯uboot錯誤

[英]Cross compiling uboot error

/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

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

你應該安裝包“ia32-libs”

我遇到過同樣的問題。 我按照這個鏈接改變了這個:

make CROSS_COMPILE=arm-linux-gnueabihf- TARGET 

至:

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

它對我有用。

也許工具鏈不正確。 編輯/ etc / profile后,您應該執行commond:source / etc / profile。 或者,在安裝工具鏈之后,在執行make之前,執行:export ARCH = arm export CROSS_COMPILE = arm-eabi-之后,make make

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

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

完整的路徑取決於你上面的環境。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM