|
linux服务器UBUNTU 14.04.1 32位操作系统
JDK工具:jdk-6u45-linux-i586(光盘里面的是X64的,32位操作系统貌似不能用??)
查看JAVA版本:
$ java -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) Client VM (build 20.45-b01, mixed mode, sharing)
交叉编译环境设置:
$ export PATH=/usr/local/arm-eabi-4.6/bin:$PATH
并且在有“/usr/local/arm-eabi-4.6/”文件夹,应该 表示工具安装成功
$ make ARCH=arm CROSS_COMPILE=arm-eabi-
/bin/bash: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
/bin/bash: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
dirname: 缺少操作数
Try 'dirname --help' for more information.
Generating include/autoconf.mk
/bin/bash: 行 3: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
/bin/bash: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
dirname: 缺少操作数
Try 'dirname --help' for more information.
Generating include/autoconf.mk.dep
/bin/bash: 行 3: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
/bin/bash: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
/bin/bash: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
dirname: 缺少操作数
Try 'dirname --help' for more information.
/bin/bash: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
/bin/bash: /usr/local/arm-eabi-4.6/bin/arm-eabi-ld: cannot execute binary file: 可执行文件格式错误
/bin/bash: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
dirname: 缺少操作数
Try 'dirname --help' for more information.
/bin/bash: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
dirname: 缺少操作数
Try 'dirname --help' for more information.
arm-eabi-gcc -DDO_DEPS_ONLY \
-g -Os -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -I/home/lijunjie806/A8/Android_Source/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: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
make: *** [lib/asm-offsets.s] 错误 126
----------------------------------------------------------------------------------------------------
求解??在线等答复!!谢谢!
|
|