LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-15-2009, 02:40 AM   #1
juancv
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
Help| chp 6.12 (installation of Gcc)


Hi,

mkdir -v ../gcc-build
cd ../gcc-build

../gcc-4.1.2/configure --prefix=/usr \
--libexecdir=/usr/lib --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \
--enable-clocale=gnu --enable-languages=c,c++


make
Error:

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

I have looked similar mistakes but I have not found the solution..

Thank's for your help

Last edited by juancv; 02-15-2009 at 02:45 AM.
 
Old 02-15-2009, 10:51 AM   #2
gerald_M2B
Member
 
Registered: Oct 2007
Posts: 34

Rep: Reputation: 15
In 6.10 you should have made an adjustment to the toolchain.
In 6.11 you should have completed binutils.
In 6.12 there should be no question about the toolchain finding the headers and the make program. Check the PATH environment variable.
It should be the same as was set up in 6.10, and used in 6.11.

Could you have exited the endeavor, and then re-entered into 6.12 without setting up a proper PATH ?
 
Old 02-15-2009, 01:46 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

All the missing headers are from glibc ... //tools//include ? ?
Quote:
error: stdio.h: No such file or directory
error: sys/types.h: No such file or directory
error: errno.h: No such file or directory
error: string.h: No such file or directory
error: stdlib.h: No such file or directory
error: unistd.h: No such file or directory
As gerald_M2B says, remember to set 'PATH'.
.....
 
Old 02-15-2009, 03:56 PM   #4
juancv
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Hi, thanks

I solved my problem :

First was delete the folders gcc.4.1.2 and gcc-build again. I went back to excecute the comand make, and the previous problem is solved, but i have a new error, something like this:

/usr/include/linux/errno.h:143
:23: error: asm/errno.h: No such file or directory
make [1]: *** [crtbegin.o] Error 1
make [1]: Leaving directory '/sources/gcc-build/gcc'
make: *** [all-gcc] Error 2

I knew then that I had no folder /include/linux (for any reason)

I went back to the chapter 6.7.1 (linux headers), and repeat the process.. now everything is fine.

sorry for my English :P

Last edited by juancv; 02-16-2009 at 12:12 AM.
 
  


Reply



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
Initial gcc installation-How to compile gcc itself pgb205 Linux - Software 4 02-26-2008 10:24 PM
Chp. 8.3 Compiling Linux Kernel g3neration Linux From Scratch 1 09-20-2007 10:07 PM
LFS 6.2-3 chp. 5.4 GCC-4.0.3 compile error threekgtvr4 Linux From Scratch 1 12-29-2006 04:45 PM
Something terribly went wrong with install of lfs.. near chp.5 Zero-0-Effect Linux From Scratch 2 03-12-2004 06:45 AM
super chp in Mplayer subservant Linux - Software 8 02-20-2003 02:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:06 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration