make all-target-libgcc error

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
buridan
Posts: 2
Joined: Tue Dec 28, 2021 1:50 am

make all-target-libgcc error

Post by buridan »

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: Select all

conftest.c:9:10: fatal error: stdio.h: No such file or directory
    9 | #include <stdio.h>
      |          ^~~~~~~~~
Octocontrabass
Member
Member
Posts: 5563
Joined: Mon Mar 25, 2013 7:01 pm

Re: make all-target-libgcc error

Post by Octocontrabass »

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?
User avatar
kotovalexarian
Member
Member
Posts: 38
Joined: Tue Nov 24, 2020 10:17 am
Contact:

Re: make all-target-libgcc error

Post by kotovalexarian »

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?
Post Reply