简体   繁体   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

If tool chain path is properly exported then your problem is related to 32 and 64 bit mismatch.Perhaps you are trying to run 32 bit executable on 64 bit PC . 如果正确导出工具链路径,那么您的问题与32位和64位不匹配有关。也许您尝试32 bit executable on 64 bit PC运行32 bit executable on 64 bit PC

you should install the package "ia32-libs" 你应该安装包“ia32-libs”

I had the same issue. 我遇到过同样的问题。 I followed this link and I changed this: 我按照这个链接改变了这个:

make CROSS_COMPILE=arm-linux-gnueabihf- TARGET 

to: 至:

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

And it worked for me. 它对我有用。

Maybe tool-chain is not right set. 也许工具链不正确。 After edit /etc/profile, you should execute the commond:source /etc/profile. 编辑/ etc / profile后,您应该执行commond:source / etc / profile。 Or, after install the tool-chain, before doing make, execute: export ARCH=arm export CROSS_COMPILE=arm-eabi- After that, doing make 或者,在安装工具链之后,在执行make之前,执行:export ARCH = arm export CROSS_COMPILE = arm-eabi-之后,make make

If you happen to meet this error when you did install the toolchain such as arm-eabi-gcc, arm-eabi-g++, you can set the full path of toochain like this. 如果您在安装工具链时碰巧遇到此错误,例如arm-eabi-gcc,arm-eabi-g ++,您可以像这样设置toochain的完整路径。

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

The full path depends on your enviornment on above. 完整的路径取决于你上面的环境。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM