【问题标题】:gcc: error trying to exec 'cc1' when cross-compilinggcc:交叉编译时尝试执行“cc1”时出错
【发布时间】:2018-03-31 12:32:38
【问题描述】:

我从 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

【问题讨论】:

  • CROSS_COMPILE=/opt/arm-2012.03/bin/arm-none-linux-gnueabi- 怎么样?
  • 工作感谢。大拇指论坛你

标签: linux compiler-errors linux-kernel arm


【解决方案1】:

您应该改用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/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-01-22
    • 1970-01-01
    • 2012-08-08
    • 1970-01-01
    • 1970-01-01
    • 2016-12-24
    • 2012-02-11
    • 2022-12-20
    相关资源
    最近更新 更多