LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 11-23-2011, 08:34 PM   #1
derstephen
Member
 
Registered: Sep 2011
Location: Northern Colorado
Distribution: Slackware64
Posts: 79

Rep: Reputation: Disabled
LFS 7.0 - 6.10 Re-adjusting the toolchain - No specs file


As in the thread title, I am currently working through LFS chapter 6.10. This is the output for the second command, which points the GCC "specs" file to the new dynamic linker:

Code:
root:/sources/glibc-build# gcc -dumpspecs | sed -e 's@/tools@@g' \
> -e '/\*startfile_prefix_spec:/{n;s@.*@/usr/lib/ @}' \
> -e '/\*cpp:/{n;s@$@ -isystem /usr/include@}' \
> `dirname $(gcc --print-libgcc-file-name)`/specs
sed: can't read /tools/lib/gcc/i686-pc-linux-gnu/4.6.1/specs: No such file or directory
So of course I decided to see what would happen if I just created a new one:
Code:
root:/sources/glibc-build# touch /tools/lib/gcc/i686-pc-linux-gnu/4.6.1/specs
root:/sources/glibc-build# gcc -dumpspecs | sed -e 's@/tools@@g' -e '/\*startfile_prefix_spec:/{n;s@.*@/usr/lib/ @}' -e '/\*cpp:/{n;s@$@ -isystem /usr/include@}' `dirname $(gcc --print-libgcc-file-name)`/specs
gcc: error: unrecognized option '-mtune=generic'
gcc: error: unrecognized option '-march=pentiumpro'
I realize I'm still in the glibc-build directory, but it seems like we're using absolute file names so I'd be surprised if that were the issue. The only thing I can think of is that it didn't get made because of some make error. This is the second time I've installed Glibc for this section (the first failed because of a stupid error I made and corrected) but there's always the possibility that I made a another error. I'd rather not have to rebuild it again since I'm working on a single-core processor and can't really spread it over multiple threads to much effect but ultimately I'll do what I have to do...

Thanks.
 
Old 11-25-2011, 04:55 AM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 207Reputation: 207Reputation: 207
Quote:
Originally Posted by derstephen View Post
As in the thread title, I am currently working through LFS chapter 6.10. This is the output for the second command, which points the GCC "specs" file to the new dynamic linker:

Code:
> -e '/\*cpp:/{n;s@$@ -isystem /usr/include@}' \
You are missing a > redirection operator at the end of this line, before the \. As a result, you never write the specs file. If you carefully reinspect the (large) command on the LFS site, and you'll see what I'm talking about.


Quote:
I realize I'm still in the glibc-build directory, but it seems like we're using absolute file names so I'd be surprised if that were the issue.
A suggestion - never assume anything about directories or paths while you're following LFS, at least for the first time! cd can be a very important command.

Last edited by jhwilliams; 11-25-2011 at 04:57 AM.
 
1 members found this post helpful.
Old 12-01-2011, 05:20 PM   #3
derstephen
Member
 
Registered: Sep 2011
Location: Northern Colorado
Distribution: Slackware64
Posts: 79

Original Poster
Rep: Reputation: Disabled
Thank you jhwilliams, I was hoping it would be something stupid I did. I promised myself I would be extra careful with typing in the commands, but it looks like I'll have to be even more careful than that...
 
  


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
adjusting the toolchain LFS 6.3 Section 5.7 poisoning Linux From Scratch 4 03-07-2011 08:16 AM
[SOLVED] LFS SVN-20091020 Adjusting the Toolchain Halloween_Devil Linux From Scratch 1 10-31-2009 02:26 PM
LFS- Adjusting the Toolchain problem LinuxNewman Linux From Scratch 27 06-09-2009 02:04 AM
5.7. Adjusting the Toolchain LFS.6.3 need help foi Linux From Scratch 3 07-05-2008 07:30 PM
Adjusting the Toolchain in lfs 6.3 saritha Linux From Scratch 3 02-15-2008 01:31 AM


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