Bam
Bam

Reputation: 23

"C compiler cannot create executables" Error while configuring gcc

I'm on manjaro linux attempting to set up a crosscompiler using this tutorial and I have binutils set up, but when I go to do ../gcc-10.2.0/configure (etc.) I get this:

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

config.log

Seeming Error: Fatal error: no compiled in support for x86_64

Upvotes: 1

Views: 901

Answers (1)

Bam
Bam

Reputation: 23

The problem was that due to the tutorial I was following the assembler was attempting to assemble for i686 while the compiler was attempting to compile for x86_64, I just had to remove the binutils meant for the cross compiler from my path before running ./configure

Upvotes: 1

Related Questions