1

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

7
  • 1
    "Fatal error: no compiled in support for x86_64". Maybe your compiler is 32bit? Commented Apr 1, 2021 at 22:46
  • gcc -dumpmachine should show you the target arch of the compiler Commented Apr 1, 2021 at 23:07
  • 1
    this could help you: forum.osdev.org/viewtopic.php?f=1&p=220690 Commented Apr 1, 2021 at 23:09
  • @Kazz thank you I was just looking for a question like that Commented Apr 1, 2021 at 23:19
  • @thatotherguy the output of gcc -dumpmachine was: x86_64-pc-linux-gnu Commented Apr 2, 2021 at 3:54

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.