LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 01-17-2011, 04:20 AM   #1
PhoenixzeroX
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Rep: Reputation: 0
LFS 6.2 Ch. 6.12 - Glibc 4.0.3: Stdio.h - No such file or directory


Hello everyone

I hope that you're great now. The reason of this post is because I'm a newbie and i'm trying to install for the third time the LFS 6.2. Everything was great until chapter 6.12. When i try to compile Glibc 4.0.3 for the third time i get the following errors (I attached a print screen showing the errors). Basically the make command cannot found some headers like stdio.h,sys/types.h, errno.h, string.h, and so on.

I'd followed the LFS 6.2 book including the testing part. This is the specs of the host system

Using LFS 6.2 Live CD and ebook
Virtualbox 4.0 VM as the host computer.

Can you tell me what am i doing wrong?...how can i remove this errors in order to finish the GCC compile?

I'm compiling GCC inside a folder called gcc-build3 as recommended in LFS ebook that is recommended to build GCC in a different folder.

If you need more information please don't hesitate in tell me.

Thank you for your help and best regards

Phoenixzero.
Attached Images
File Type: png LFS 6.12 GCC error.png (43.1 KB, 7 views)
 
Old 01-17-2011, 04:38 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

The missing files that gcc complains about are installed in chapter 6.7 (Linux-Libc-Headers-2.6.12.0).

I can only assume that something went wrong in that chapter. You could check to see if they are actually present: While in the chrooted environment cd into /usr/include, the files should be in that directory and its sub-directories.

PS: Make sure you first remove both the gcc-4.0.3 and the gcc-build directory and start with unpacking gcc before you restart (start fresh).

Hope this helps.
 
Old 01-17-2011, 12:33 PM   #3
PhoenixzeroX
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Smile

Hi druuna

First of all thank you for your comments. Let me try it and I'll let you know.

Thank you again and best regards

Phoenixerox
 
Old 01-23-2011, 12:07 AM   #4
PhoenixzeroX
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Smile

Hi again drunna

First of all i apologize for the late response. I was really busy this week. I comment you that i was already build and installed GCC without problems. I made what you say in the PS part:

Quote:
PS: Make sure you first remove both the gcc-4.0.3 and the gcc-build directory and start with unpacking gcc before you restart (start fresh).
i removed the old GCC folder in order to start fresh as you say and, after that, i can compile and build LFS smoothly.

Thank you very much for your comments and best regards

PhoenixzeroX
 
Old 01-23-2011, 05:00 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

Glad I could be of help

Quote:
First of all i apologize for the late response. I was really busy this week.
Don't worry about that! A lot of people never report back and you did, which is much appreciated!

Hope you have a smooth LFS build.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
configure on CentOS 5.2: "stdio.h: No such file or directory" xp_newbie Linux - Software 14 02-08-2011 02:22 PM
cmem.c:38:19: error: stdio.h: No such file or directory skedar Linux - Newbie 1 08-10-2010 02:39 PM
stdio.h: No such file or directory elaa82 Linux - Software 2 12-29-2009 04:31 AM
test.c:1:19: error: stdio.h: No such file or directory Lokathor Debian 2 09-14-2006 12:11 PM
test.c:1:19: Stdio.h: No such file or directory :( wogga Linux - Software 1 06-11-2004 02:57 PM


All times are GMT -5. The time now is 10:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration