LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
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
 
LinkBack Search this Thread
Old 07-11-2008, 02:03 AM   #1
Subfix
LQ Newbie
 
Registered: May 2006
Posts: 3

Rep: Reputation: 0
6.12 GCC Installation - missing headers?


Solved: Use a fresh source every time to configure! Dummy.

I never realized I should use a new source (I realize this one was patched though), I hope it doesn't bring up any problems later.

----- I'll leave this in case it helps someone -----

Hi, I've not had any problems getting through this installation of LFS until I got to installing GCC after chroot.

glibc and binutils installed fine without any troubles, but gcc errors during the make with a bunch of missing header files.

I went back and ran the commands to make sure the compiler was searching in the correct place for the header files and it is (/usr/include). I checked in that directory and sure enough all of the missing header files are there... so why is it when I try to make gcc it cannot find them?


I would post the errors but I can't copy and paste to here from the livecd installation. I saw someone else had a similar problem, but was solved by using a new build directory. I've already tried changing the build directory... so :\

EDIT

I found the post similar to mine that I described, these are what errors I am getting:

Code:
 HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \
        /bin/sh ../../gcc-4.1.2/gcc/mkconfig.sh tconfig.h
/sources/gcc-build/./gcc/xgcc -B/sources/gcc-build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -O2 -O2 -g -O2   -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include   -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time  -fno-omit-frame-pointer \
          -c ../../gcc-4.1.2/gcc/crtstuff.c -DCRT_BEGIN \
          -o crtbegin.o
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
Also, I did

sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in

so that fixincludes wouldn't run and mess with the current headers.

Last edited by Subfix; 07-11-2008 at 03:40 AM. Reason: solved
 
Old 07-11-2008, 05:49 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware, Cross Linux from Scratch, Gentoo
Posts: 2,544
Blog Entries: 1

Rep: Reputation: 144Reputation: 144
Just to point out the obvious, had you read section 5.1 you would have seen this great big yellow box with the following
Quote:
Originally Posted by LFS-6.3
After installing each package, delete its source and build directories, unless specifically instructed otherwise. Deleting the sources prevents mis-configuration when the same package is reinstalled later.
Just one of many good example why reading the LFS book is a good idea .
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
missing prerequisite headers? shadowsnipes Slackware 9 11-04-2007 09:24 PM
missing kde headers..... tidiman07 Ubuntu 1 10-11-2006 06:13 AM
Fedora 5 is missing headers????? chargerone Linux - Software 6 06-17-2006 05:50 PM
Missing Kernel Headers utku Debian 16 02-09-2005 03:20 AM
Gcc/Headers trouby Linux - General 6 10-14-2003 10:47 PM


All times are GMT -5. The time now is 06:50 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
Open Source Consulting | Domain Registration