Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 08-26-2008, 01:13 PM   #1
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 When I logged in lfs I and entered this command "gcc -dumpspecs | sed 's@^/lib/' \
> `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, 08:59 AM   #2
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, 06: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/' > `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, 08: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, 09:46 PM   #5
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, 02:37 PM   #6
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, 08:48 AM   #7
LQ Newbie
Registered: Oct 2008
Posts: 7

Rep: Reputation: 0
I have the same problem.
See my thread:

How to solve?

Last edited by nillgump; 10-10-2008 at 08:50 AM.
Old 10-14-2008, 03: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, 08:08 PM   #9
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.


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

All times are GMT -5. The time now is 05:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration