When I try to build i686-elf-gcc (gcc-11.2.0, binutils-2.3.7), I get this error:
checking for suffix of object files... configure: error: in `/tmp/src/gcc-build/i686-elf/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details
make: *** [Makefile configure-target-libgcc] Error 1
when I run the "make all-target-libgcc" command
Does anyone know what I have done wrong/how to fix this problem?
Error building i686-elf-gcc
-
- Member
- Posts: 5563
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Error building i686-elf-gcc
You're using binutils-2.37, right? There's no way 2.3.7 will work.solarmist wrote:binutils-2.3.7
What does config.log say?solarmist wrote:See `config.log' for more details
-
- Member
- Posts: 426
- Joined: Tue Apr 03, 2018 2:44 am
Re: Error building i686-elf-gcc
I had this exact problem, and it infuriated me for months, because the config.log didn't really indicate what was wrong.solarmist wrote:When I try to build i686-elf-gcc (gcc-11.2.0, binutils-2.3.7), I get this error:
checking for suffix of object files... configure: error: in `/tmp/src/gcc-build/i686-elf/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details
make: *** [Makefile configure-target-libgcc] Error 1
when I run the "make all-target-libgcc" command
Does anyone know what I have done wrong/how to fix this problem?
I finally resolved the issue by configuring, compiling *and* installing binutils before configuring gcc, whereas before, I was configuring binutils, then configuring gcc, then compiling/installing binutils before finally compiling/installing gcc.
Re: Error building i686-elf-gcc
Not to bump this thread, but I wanted to mention that I had the same issue when running configure like this:
In other word, use relative paths, not absolute ones
Code: Select all
$PWD/configure