我从parrot Github下载了工具链,已安装,现在我正在尝试使用以下命令行进行交叉编译:
hp@hp-desktop:~/swing-opensource-master/sources/linux-2.6.36/linux-2.6.36$ make ARCH=arm zImage CROSS_COMPILE=/opt/arm-2012.03/arm-none-linux-gnueabi/bin/
这是错误日志:
hp@hp-desktop:~/swing-opensource-master/sources/linux-2.6.36/linux-2.6.36$ make ARCH=arm zImage CROSS_COMPILE=/opt/arm-2012.03/arm-none-linux-gnueabi/bin/
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: "include/generated/mach-types.h" è aggiornato.
CC kernel/bounds.s
gcc: error trying to exec 'cc1': execvp: No such file or directory
/home/hp/swing-opensource-master/sources/linux-2.6.36/linux-2.6.36/./Kbuild:35: set di istruzioni per l'obiettivo "kernel/bounds.s" non riuscito
make[1]: *** [kernel/bounds.s] Errore 1
Makefile:934: set di istruzioni per l'obiettivo "prepare0" non riuscito
make: *** [prepare0] Errore 2
答案 0 :(得分:0)
您应该使用arm-none-linux-gnueabi-
中的bin
- 前缀工具链代替。 e.g。
CROSS_COMPILE=/opt/arm-2012.03/bin/arm-none-linux-gnueabi-
而不是
CROSS_COMPILE= CROSS_COMPILE=/opt/arm-2012.03/arm-none-linux-gnueabi/bin/