【发布时间】:2021-06-28 21:54:30
【问题描述】:
我在 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”。也许你的编译器是 32 位的?
-
gcc -dumpmachine应该显示编译器的目标拱门 -
@Kazz 谢谢我只是在找这样的问题
-
@thatotherguy gcc -dumpmachine 的输出是:x86_64-pc-linux-gnu
标签: linux gcc cross-compiling