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 08-26-2008, 12:13 PM   #1
clonas
LQ Newbie
 
Registered: Aug 2008
Posts: 11

Rep: Reputation: 0
Folder $(gcc -print-libgcc-file-name) doesn't exist. 5.7


I use LFS LiveCD 6.3 r2145.

I have been creating temporary system with root user. I started lfs user (without entering password) and installed every package again (make install) and installed API headers (kernel 2.6.26.3). When I logged in lfs I and entered this command "gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&@g' \
> `dirname $(gcc -print-libgcc-file-name)`/specs" and got this output :

sed: can't read /1/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/specs: No such file or directory

Specs file (every 4.4 KB) :
$build/gcc-4.1.2/gcc; $build/gcc-4.1.2/gcc/stage1; $build/gcc-4.1.2/gcc/stage2; /usr/lib/gcc/i486-pc-linux-gnu/4.1.2 (copied from $build/gcc-4.1.2/gcc)

Mine PATH is /tools/bin:/bin:/usr/bin.
 
Old 08-27-2008, 07:59 AM   #2
FLLinux
Member
 
Registered: Jul 2004
Location: USA
Distribution: Fedora 9, LFS 6.3, Unbuntu 8.04, Slax 6.0.7
Posts: 145

Rep: Reputation: 15
Have you been running all the make up until 5.7 as root?

If you have then you can still have issues. you need to create the lfs user and log in as that user back in 4.1

I ran into this kind of problem when i tried to build the system as the root user. Even from the Live CD you need to use the lfs user account.
 
Old 09-25-2008, 05:41 AM   #3
miss Bee
LQ Newbie
 
Registered: Sep 2008
Posts: 4

Rep: Reputation: 0
I am kinda having the same problem,

I use LFS LiveCD 6.3 r2160, have been doing everything as lfs as per instructions. everything worked up till now. when i run this command

/mnt/lfs/sources$ gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&@g' > `dirname $(gcc -print-libgcc-file-name)`/specs

i get

bash: dirname $(gcc -print-libgcc-file-name)/specs: no such file or directory

I am not sure what I am doing wrong or not doing. please help.
 
Old 09-25-2008, 07:39 AM   #4
miss Bee
LQ Newbie
 
Registered: Sep 2008
Posts: 4

Rep: Reputation: 0
managed to fix it, was using the wrong punctuation sign
 
Old 09-29-2008, 08:46 PM   #5
bpmarkham
LQ Newbie
 
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
Just letting everyone know i had the same issue and it was a punctuation problem as well. I don't think I've ever used the ` key (on the ~ key) in my life.... ever. Thanks!
 
Old 09-30-2008, 01:37 PM   #6
themcman1
LQ Newbie
 
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
Thumbs down

I get this far, but when running the command, there is no output. I then run gcc -dumpspecs to see the specs file, and the dynamic linker is still set to /lib/linu...

I did the next command in the book, then performed the check, and it didn't output anything.
 
Old 10-10-2008, 07:48 AM   #7
nillgump
LQ Newbie
 
Registered: Oct 2008
Posts: 7

Rep: Reputation: 0
I have the same problem.
See my thread:
http://www.linuxquestions.org/questions/linux-from-scratch-13/cant-go-on-in-lfs.-675477/


How to solve?

Last edited by nillgump; 10-10-2008 at 07:50 AM.
 
Old 10-14-2008, 02:39 AM   #8
miss Bee
LQ Newbie
 
Registered: Sep 2008
Posts: 4

Rep: Reputation: 0
If I am not wrong you are not supposed to get any output. the next output you get will be after typing in the command below
readelf -l a.out | grep ': /tools'
the book does show u the expected output if everything is working well.
 
Old 10-24-2008, 07:08 PM   #9
jonafischer
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
Possible solution but yet incomplete

There is a patch for gcc, the file `gcc-4.1.2-specs-1.patch', but looking inside the file (after getting some rather obscure error) I realized that this file is actually for gcc-4.1.0. I guess we have to report this problem to solve the issue of this thread.
 
  


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
ERROR :: The file or folder smb://<I,P.>/<Filename> does not exist rushadrenaline Linux - Networking 12 02-02-2008 12:18 AM
Samba Can See Share But the File/Folder Doesn't Exist Sloppyunderfoot Linux - Server 2 07-28-2007 11:03 AM
Need help with SPECFILE=` gcc -- print-file specs` status1 Linux From Scratch 46 10-08-2006 07:29 AM
watch a folder and then print if files exist bhar0761 Linux - General 2 07-30-2005 02:05 PM
Installing GCC, binutils, libgcc, etc. jcai Linux - Newbie 5 09-14-2004 03:57 PM


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