如何解决配置 gcc 时出现“C 编译器无法创建可执行文件”错误
我在 manjaro linux 上尝试使用 this tutorial 设置交叉编译器,并且设置了 binutils,但是当我执行 ../gcc-10.2.0/configure (etc.)
时,我得到了这个:
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
看似错误:Fatal error: no compiled in support for x86_64
解决方法
问题是,由于我遵循的教程,我在编译器尝试为 x86_64 编译时,我正在遵循汇编器尝试为 i686 进行汇编,我只需要在运行 . /配置
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。