LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-14-2006, 06:49 PM   #1
creznedmick
Member
 
Registered: Jul 2003
Location: Austarlia
Distribution: redhat 7.3 & 9, Mandrake
Posts: 39

Rep: Reputation: 15
Chpt 6.14 GCC no such file


Greetings
I have seen the same problem listed in other posts and can not get my head around why it is happening. Also the other threads seem to end abruptly which isn`t helping me. The problem occurs in Section 6.14/ GCC-3.4.3


In file included from ../../gcc-3.4.3/gcc/crtstuff.c:62:
../../gcc-3.4.3/gcc/tsystem.h:79:19: stdio.h: No such file or directory
../../gcc-3.4.3/gcc/tsystem.h:82:23: sys/types.h: No such file or directory
../../gcc-3.4.3/gcc/tsystem.h:85:19: errno.h: No such file or directory
../../gcc-3.4.3/gcc/tsystem.h:92:20: string.h: No such file or directory
../../gcc-3.4.3/gcc/tsystem.h:93:20: stdlib.h: No such file or directory
../../gcc-3.4.3/gcc/tsystem.h:94:20: 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-3.4.3/gcc/tsystem.h:97,
from ../../gcc-3.4.3/gcc/crtstuff.c:62:
/sources/gcc-build/gcc/include/limits.h:122:61: limits.h: No such file ordirectory
In file included from ../../gcc-3.4.3/gcc/crtstuff.c:62:
../../gcc-3.4.3/gcc/tsystem.h:100:18: time.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

To check the version of gcc used the following checks were suggested

AS CHROOT ON LFS

root:/sources/gcc-build# gcc -v dummy.c
gcc: dummy.c: No such file or directory
Reading specs from /tools/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --prefix=/tools --
libexecdir=/tools/lib --with-local-prefix=/tools --enable-
clocale=gnu --enable-shared --enable-threads=posix --enable-
__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch
Thread model: posix
gcc version 3.4.3

root:/sources/gcc-build# type -p gcc
/tools/bin/gcc
root:/sources/gcc-build# type -p cc
/tools/bin/cc

AS USER ON HOST

[michael@localhost ~]$ gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)

[michael@localhost ~]$ type -p gcc
/usr/bin/gcc

[michael@localhost ~]$ type -p cc
/usr/bin/cc



AS USER lfs ON HOST

[michael at localhost ~]$ su - lfs
Password:
lfs:~$ echo $PATH
/tools/bin:/bin:/usr/bin
lfs:~$ gcc -v
Reading specs from /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-
gnu/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --prefix=/tools --
libexecdir=/tools/lib --with-local-prefix=/tools --enable-
clocale=gnu --enable-shared --enable-threads=posix --enable-
__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch
Thread model: posix
gcc version 3.4.3
lfs:~$ type -p gcc
/tools/bin/gcc
lfs:~$ type -p cc
/tools/bin/cc


The files exist in $LFS/usr/include. I have used new build directories for gcc and binutils at each stage. Can anyone help interpret these results, is gcc looking on the $LFS partition or trying to get back to Fedora? (looks OK to me) Is that anything to do with the problem?
Thanks Michael
 
Old 01-16-2007, 12:25 PM   #2
chayd
LQ Newbie
 
Registered: Jan 2007
Distribution: Mandriva
Posts: 2

Rep: Reputation: 0
Looks as though I'm having the same problem as you.
One difference I noticed on my system is that there is an -isystem
(system includes?) flag on the command line for that particular
file and not one on any of the others. What's more, the directory
referenced by -isystem (/usr/i686-pc-linux-gnu/sys-include)
appears to be missing.

I'll investigate a bit further, and post my findings (if any)
failing that, I'm going to start over and make sure I don't miss
anything!

Chay
 
Old 01-16-2007, 02:55 PM   #3
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian, Linux From Scratch
Posts: 416
Blog Entries: 1

Rep: Reputation: 30
Quote:
../../gcc-3.4.3/gcc/tsystem.h:79:19: stdio.h: No such file or directory
../../gcc-3.4.3/gcc/tsystem.h:82:23: sys/types.h: No such file or directory
../../gcc-3.4.3/gcc/tsystem.h:85:19: errno.h: No such file or directory
../../gcc-3.4.3/gcc/tsystem.h:92:20: string.h: No such file or directory
../../gcc-3.4.3/gcc/tsystem.h:93:20: stdlib.h: No such file or directory
../../gcc-3.4.3/gcc/tsystem.h:94:20: unistd.h: No such file or directory
Correct me if I'm wrong but these are headers provided by glibc. Go to /usr/include (in chroot) and check to see if you can find any of these headers. If not, reinstall glibc, then try to build gcc again. If that doesn't work then come back here.

Hope you get it sorted.
 
Old 01-25-2007, 08:16 AM   #4
chayd
LQ Newbie
 
Registered: Jan 2007
Distribution: Mandriva
Posts: 2

Rep: Reputation: 0
Couldn't find any headers where it was searching, and didn't want to copy
over something that may have been potentially incompatible.

Starting the LFS build from scratch resolved the problem
(so I guess I missed something, somewhere)
 
  


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
gcc 4: no specs file rconan Linux From Scratch 6 07-11-2005 12:21 PM
gcc: ./remote-@REMOTE@.c: No such file or directory gcc: no input files pracslipkerm Linux - Newbie 3 06-15-2005 06:09 AM
How to use the head file of GCC in VC stiphon Programming 2 06-15-2004 05:54 AM
gcc: No such file or directory babysealclubber Linux From Scratch 5 01-31-2004 08:43 AM
gcc: No such file or directory babysealclubber Linux - Software 2 01-22-2004 03:03 PM


All times are GMT -5. The time now is 05:29 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