LinuxQuestions.org
Visit Jeremy's Blog.
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 07-07-2005, 03: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, 10: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 10:47 PM.
 
Old 07-08-2005, 06: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, 06: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, 12: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, 10: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, 12: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



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 01:45 AM
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
I ersased my GCC specs file shanenin Linux From Scratch 2 01-30-2004 10:36 AM
gcc: No such file or directory babysealclubber Linux - Software 2 01-22-2004 03:03 PM

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

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