OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 7:48 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: make all-target-libgcc error
PostPosted: Tue Dec 28, 2021 2:02 am 
Offline

Joined: Tue Dec 28, 2021 1:50 am
Posts: 2
I try to make gcc, from this tutorial: https://wiki.osdev.org/GCC_Cross-Compiler
p.s in "GCC" stage

But when I run 'make all-target-libgcc' it's failed with this error:

Code:
conftest.c:9:10: fatal error: stdio.h: No such file or directory
    9 | #include <stdio.h>
      |          ^~~~~~~~~


Top
 Profile  
 
 Post subject: Re: make all-target-libgcc error
PostPosted: Wed Dec 29, 2021 7:17 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
What OS are you using? How did you set up your build environment? What are the exact commands you ran leading up to this point?


Top
 Profile  
 
 Post subject: Re: make all-target-libgcc error
PostPosted: Mon Jan 17, 2022 1:24 pm 
Offline
Member
Member
User avatar

Joined: Tue Nov 24, 2020 10:17 am
Posts: 38
Maybe you target triplet is different from i686-elf? Autotools may consider this as a sign of hosted environment. I met similar error because of invalid target triplet, however during compilation of my project, not the cross-compiler itself. Don't you compile your cross-compiler with other cross-compiler for freestanding environment?


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 66 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