簡體   English   中英

gcc:交叉編譯時嘗試執行cc1錯誤

[英]gcc: error trying to exec 'cc1' when cross-compiling

我從安裝的鸚鵡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

您應該在bin使用arm-none-linux-gnueabi-前綴的工具鏈。 例如

CROSS_COMPILE=/opt/arm-2012.03/bin/arm-none-linux-gnueabi-

代替

CROSS_COMPILE= CROSS_COMPILE=/opt/arm-2012.03/arm-none-linux-gnueabi/bin/

暫無
暫無

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

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