OSDev.org

The Place to Start for Operating System Developers
It is currently Sun May 22, 2022 2:15 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Error building i686-elf-gcc
PostPosted: Fri Dec 10, 2021 4:30 am 
Offline

Joined: Fri Dec 10, 2021 4:26 am
Posts: 1
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:13430: 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?


Top
 Profile  
 
 Post subject: Re: Error building i686-elf-gcc
PostPosted: Fri Dec 10, 2021 9:24 pm 
Online
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 3830
solarmist wrote:
binutils-2.3.7

You're using binutils-2.37, right? There's no way 2.3.7 will work.

solarmist wrote:
See `config.log' for more details

What does config.log say?


Top
 Profile  
 
 Post subject: Re: Error building i686-elf-gcc
PostPosted: Sat Dec 11, 2021 2:54 pm 
Online
Member
Member

Joined: Tue Apr 03, 2018 2:44 am
Posts: 279
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:13430: 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 had this exact problem, and it infuriated me for months, because the config.log didn't really indicate what was wrong.

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.


Top
 Profile  
 
 Post subject: Re: Error building i686-elf-gcc
PostPosted: Sat Jan 22, 2022 9:30 am 
Offline
Member
Member

Joined: Tue Feb 18, 2020 3:29 pm
Posts: 908
Not to bump this thread, but I wanted to mention that I had the same issue when running configure like this:
Code:
$PWD/configure

In other word, use relative paths, not absolute ones


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: DotBot [Bot], Google [Bot], Neevabot [Bot], Octocontrabass and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group