大佬教程收集整理的这篇文章主要介绍了配置 gcc 时出现“C 编译器无法创建可执行文件”错误,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我在 manjaro linux 上尝试使用 this tutorial 设置交叉编译器,并且设置了 binutils,但是当我执行 ../gcc-10.2.0/configure (etc.)@H_874_4@ 时,我得到了这个:
checking host system type... x86_64-pc-linux-gnu
checking target system type... i686-pc-elf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... gawk
checking for libatomic support... no
checking for libitm support... no
checking for libsanitizer support... no
checking for libvtv support... no
checking for libhsail-rt support... no
checking for libphobos support... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/morticia/src/build-gcc':
configure: error: C compiler cAnnot create executables
See `config.log' for more details
@H_874_4@
config.log
看似错误:Fatal error: no compiled in support for x86_64@H_874_4@
解决方法
问题是,由于我遵循的教程,我在编译器尝试为 x86_64 编译时,我正在遵循汇编器尝试为 i686 进行汇编,我只需要在运行 . /配置
大佬总结
以上是大佬教程为你收集整理的配置 gcc 时出现“C 编译器无法创建可执行文件”错误全部内容,希望文章能够帮你解决配置 gcc 时出现“C 编译器无法创建可执行文件”错误所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。