LinuxQuestions.org
Register a domain and help support LQ
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 12-08-2007, 09:41 AM   #1
deadhorus
LQ Newbie
 
Registered: Jun 2007
Posts: 6

Rep: Reputation: 0
gcc compiling error


Hello,

I can't compile gcc4.1.2 (chapter 6.12) because of some errors:

Code:
In file included from ../../gcc-4.1.2/gcc/crtstuff.c:68:
../../gcc-4.1.2/gcc/tsystem.h:90:19: error: stdio.h: No such file or directory
../../gcc-4.1.2/gcc/tsystem.h:93:23: error: sys/types.h: No such file or directory
../../gcc-4.1.2/gcc/tsystem.h:96:19: error: errno.h: No such file or directory
../../gcc-4.1.2/gcc/tsystem.h:103:20: error: string.h: No such file or directory
../../gcc-4.1.2/gcc/tsystem.h:104:20: error: stdlib.h: No such file or directory
../../gcc-4.1.2/gcc/tsystem.h:105:20: error: unistd.h: No such file or directory
In file included from /sources/gcc-build/./gcc/include/syslimits.h:7,
                 from /sources/gcc-build/./gcc/include/limits.h:11,
                 from ../../gcc-4.1.2/gcc/tsystem.h:108,
                 from ../../gcc-4.1.2/gcc/crtstuff.c:68:
/sources/gcc-build/./gcc/include/limits.h:122:61: error: limits.h: No such file or directory
In file included from ../../gcc-4.1.2/gcc/crtstuff.c:68:
../../gcc-4.1.2/gcc/tsystem.h:111:18: error: time.h: No such file or directory
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/sources/gcc-build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/sources/gcc-build'
make: *** [all] Error 2
This is the 3rd time i'm trying to build lfs-6.3 and I got the same errors.
Why do you think it's givin' me those errors?
Please Help me. Thank you in advance.
 
Old 12-08-2007, 10:33 AM   #2
Acron_0248
Member
 
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 453

Rep: Reputation: 33
Hi,


On what phase are you in?

Phase 1 of gcc? Phase 2?


What host are you're using to build the lfs?

Did you check the pre-requisites or use the version-check script? (Yeah, it's a silly question but there are those who doesn't pay attention to this and that's when they post xD)

The only thing I can see (and I'm not an expert of course) is that the system is unable to find the headers of gcc, are you sure that you're adding the right path during ./configure?

For what I can tell, that's your problem, either this is the phase 1 and your system doesn't have the proper to build programs (unlikely if you already build binutils) or you have misspelled the path during ./configure



Regards
 
Old 12-08-2007, 11:10 AM   #3
deadhorus
LQ Newbie
 
Registered: Jun 2007
Posts: 6

Original Poster
Rep: Reputation: 0
I'm using the LFS livecd. This is the phase 3 gcc building (I also think is the last one). I've successfully finished building the temporary system.

The path given to ./configure is perfect I checked it twice. The files (stdio.h, etc...) are under /usr/include.

I also mention that make raises this error after approx 10 mins of compilation.
 
Old 12-08-2007, 11:16 AM   #4
deadhorus
LQ Newbie
 
Registered: Jun 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Finally it works!
I think the mistake was to configure and compile the same sources that I configured and compiled in phase 1 and 2, changing only the gcc-build directory.

Now I tried with some fresh sources and it works.

PS: Sorry for my poor english.
 
Old 12-08-2007, 11:24 AM   #5
Acron_0248
Member
 
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 453

Rep: Reputation: 33
W00t!


I remember that I've similar problem during phase 2 of gcc or glibc because the same mistake he he

But anyway, have fun with lfs



Regards

Last edited by Acron_0248; 12-08-2007 at 11:27 AM.
 
Old 12-08-2007, 12:34 PM   #6
deadhorus
LQ Newbie
 
Registered: Jun 2007
Posts: 6

Original Poster
Rep: Reputation: 0
@Acron_248: I think I'll finish the lfs installation in less than 12 hours, but what about blfs? How long does it takes?
 
Old 12-08-2007, 10:01 PM   #7
Acron_0248
Member
 
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 453

Rep: Reputation: 33
Quote:
Originally Posted by deadhorus View Post
@Acron_248: I think I'll finish the lfs installation in less than 12 hours, but what about blfs? How long does it takes?
That depends in what you want to do with your lfs....


For instance, the amount of time needed to build an AMP (read Apache + MySQL + PHP) only, won't be the same to build an entire desktop ready system with kde or gnome.

The good thing is, since your working directly with the source you can tweak the packages during compile & install, you can deactivate options that you're sure that you won't need just to speed up the work.


BLFS is pretty generic, and I mean that it tries to cover anything you need to know to have just a linux firewall distro without X, or to build a complete X ready system.

So, is up to you, it isn't gonna be quick of course, but you can learn a ton from your effort



Regards

Last edited by Acron_0248; 12-08-2007 at 10:02 PM.
 
Old 12-09-2007, 09:56 AM   #8
deadhorus
LQ Newbie
 
Registered: Jun 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you very much for your time. I've just started building my blfs system.
 
Old 12-09-2007, 10:58 AM   #9
Acron_0248
Member
 
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 453

Rep: Reputation: 33
Quote:
Originally Posted by deadhorus View Post
Thank you very much for your time. I've just started building my blfs system.
May the Tux be with you



Regards
 
  


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
Error When Compiling GCC fatsheep Linux From Scratch 3 10-14-2006 04:09 PM
Error compiling gcc 3.3.6 with 64bit gcc 4.0.3 cs-cam Linux - Software 0 04-22-2006 05:20 AM
error compiling kernel 2.6.2 (GCC too old??) Dancingsalad Linux - Newbie 5 02-07-2004 04:05 PM
GCC error when compiling it for LFS safrout Linux From Scratch 1 06-14-2003 06:16 AM
gcc error while compiling gawk iceman47 Linux From Scratch 2 03-04-2003 12:12 PM


All times are GMT -5. The time now is 02:33 PM.

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