LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-07-2005, 04:39 PM   #1
rconan
Member
 
Registered: Jun 2005
Distribution: Debian Unstable (Sid)
Posts: 63

Rep: Reputation: 15
gcc 4: no specs file


The first thing to say is that im not actually running LFS, hence GCC 4!

I have compiled and install GCC4 and have reached the equivalent to step 5.7 adjusting the toolchain.
However I cannot edit my specs file as I have read that GCC 4 does not install one.

Any alternative method for GCC 4 or way to make a spec file for GCC 4
 
Old 07-07-2005, 11:42 PM   #2
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Re: gcc 4: no specs file

Quote:
Originally posted by rconan
The first thing to say is that im not actually running LFS, hence GCC 4!

I have compiled and install GCC4 and have reached the equivalent to step 5.7 adjusting the toolchain.
However I cannot edit my specs file as I have read that GCC 4 does not install one.

Any alternative method for GCC 4 or way to make a spec file for GCC 4
You should dump specs into specs file (ex: /tools/lib/gcc/.../specs) first:
Code:
# gcc -dumpspecs > /path/to/file
Cheers,
GH

Last edited by freegianghu; 07-07-2005 at 11:47 PM.
 
Old 07-08-2005, 07:22 AM   #3
rconan
Member
 
Registered: Jun 2005
Distribution: Debian Unstable (Sid)
Posts: 63

Original Poster
Rep: Reputation: 15
will that then cause the compiler to use that file instead of the integrated specs.
 
Old 07-08-2005, 07:31 AM   #4
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Quote:
Originally posted by rconan
will that then cause the compiler to use that file instead of the integrated specs.
You could try it yourself
 
Old 07-08-2005, 01:03 PM   #5
rconan
Member
 
Registered: Jun 2005
Distribution: Debian Unstable (Sid)
Posts: 63

Original Poster
Rep: Reputation: 15
when i do:
gcc --print-file specs
I get:
/mnt/LFS/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.0/specs
so i presume it is now using that file as specs.
 
Old 07-08-2005, 11:45 PM   #6
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Quote:
Originally posted by rconan
when i do:
gcc --print-file specs
I get:
/mnt/LFS/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.0/specs
so i presume it is now using that file as specs.
Yeah, congratulations and dont forget to tell me successful story of your gcc-4 base LFS installation when you done

Cheers,
GH.
 
Old 07-11-2005, 01:21 PM   #7
rconan
Member
 
Registered: Jun 2005
Distribution: Debian Unstable (Sid)
Posts: 63

Original Poster
Rep: Reputation: 15
OK so now im installing GCC for the system instead of the toolchain and need to prevent GCC from installing libiberty cos the binutils one is more recent (therefore i presume the one i want).

Will the same SED script work?
 
  


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
File server specs? Beomoss Linux - Hardware 1 12-04-2005 02:45 AM
gcc: ./remote-@REMOTE@.c: No such file or directory gcc: no input files pracslipkerm Linux - Newbie 3 06-15-2005 07:09 AM
How to use the head file of GCC in VC stiphon Programming 2 06-15-2004 06:54 AM
I ersased my GCC specs file shanenin Linux From Scratch 2 01-30-2004 11:36 AM
gcc: No such file or directory babysealclubber Linux - Software 2 01-22-2004 04:03 PM


All times are GMT -5. The time now is 11:57 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration