LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-26-2009, 01:13 AM   #1
jpeters
Member
 
Registered: Mar 2009
Posts: 30

Rep: Reputation: 16
ln -vs libgcc.a `gcc -print-libgcc-file-name | ......file exists


From 5.5. GCC-4.3.2 -Pass 1

Can't create this link, as the file already exists in the host system:

Code:
ln -vs libgcc.a `gcc -print-libgcc-file-name | \
    sed 's/libgcc/&_eh/'`
Code:
ln: creating symbolic link `/usr/lib/gcc/i486-t2-linux-gnu/4.2.2/libgcc_eh.a': File exists
 
Old 03-26-2009, 03:02 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,494

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
When you are using the correct 'configure' line
with " --prefix=/tools " for install destination,
gcc is installed to //tools and then ...

.. please go to //tools and make the symbolic link
with the just installed gcc result.

LFS should in no way be mixed up with your host system.
.....
 
Old 03-26-2009, 04:15 AM   #3
jpeters
Member
 
Registered: Mar 2009
Posts: 30

Original Poster
Rep: Reputation: 16
Okay...I linked /tools/lib....../4.3.2/libgcc.a --> libgcc_eh.a

Command 'gcc -print-libgcc-file-name' prints from /usr/lib/gcc.
Otherwise, files are correctly installed into /tools.

I also just found I couldn't make Linux API headers (5.6) while in lfs usr (as the book
recommends to keep host separate), because dependencies required compiling from root (which worked fine).

Last edited by jpeters; 03-26-2009 at 04:18 AM.
 
Old 03-26-2009, 10:40 PM   #4
jpeters
Member
 
Registered: Mar 2009
Posts: 30

Original Poster
Rep: Reputation: 16
Found the problem: lfs wasn't reading the local .bashrc file, so path to /tools wasn't in PATH.
(I was using a login user, since puppy didn't have shadow-utils). Now it's working correctly.
 
  


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
libgcc upgrade problem? shibu_sp Linux - Newbie 1 03-04-2009 10:30 AM
Folder $(gcc -print-libgcc-file-name) doesn't exist. 5.7 clonas Linux From Scratch 8 10-24-2008 08:08 PM
RH 8.0 and libgcc 3.3 killroy2000 Red Hat 1 01-12-2007 02:47 PM
Installing GCC, binutils, libgcc, etc. jcai Linux - Newbie 5 09-14-2004 04:57 PM
libgcc syslinks messed up, help please ertmann|CPH Debian 3 05-01-2004 06:43 PM

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

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