LinuxQuestions.org
Visit the LQ Articles and Editorials 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
 
LinkBack Search this Thread
Old 10-26-2009, 04:55 AM   #1
junust
Member
 
Registered: Jul 2008
Location: Israel Ramat Gan
Distribution: CentOs 5.3, SuSe 11.1, Solaris 9, Slackware 13
Posts: 78

Rep: Reputation: 15
creating a simlink after gcc-4.4.1 package has been installed


Hello,
I use LFS 6.5 book ver, my host system Centos 5.2
I did already install binutils and while installing gcc-4.4.1 package, the last thing to do is to create the symlink for libgcc_eh.a :
Code:
Using --disable-shared means that the libgcc_eh.a file isn't created and installed. The Glibc package
depends on this library as it uses -lgcc_eh within its build system. This dependency can be satisfied by creating a
symlink to libgcc.a, since that file will end up containing the objects normally contained in libgcc_eh.a:

ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | \
sed 's/libgcc/&_eh/'`
a little bit confusing me, what is $LFS_TGT-gcc, I got $LFS_TGT variable defind and when I try to create the symlink following the command above it complaing me that:
Code:
ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | \
> sed 's/libgcc/&_eh/'`

bash: i686-lfs-linux-gnu-gcc: command not found
create symbolic link `./libgcc.a' to `libgcc.a'
Just, I guess ,I missed something through reading the book but still could not find the problem, where $LFS_TGT-gcc definition took from
Code:
echo $ $LFS_TGT
i686-lfs-linux-gnu

Last edited by junust; 10-26-2009 at 04:59 AM.
 
Old 10-26-2009, 05:05 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 7,002
Blog Entries: 2

Rep: Reputation: Disabled
Hi,

Which of these commands did you use:

ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | \
> sed 's/libgcc/&_eh/'`

OR

ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | \
sed 's/libgcc/&_eh/'`

The second one being the correct command.

This is actually a oneliner and can also be written as:

ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/&_eh/'`

Hope this helps.
 
Old 10-26-2009, 05:11 AM   #3
junust
Member
 
Registered: Jul 2008
Location: Israel Ramat Gan
Distribution: CentOs 5.3, SuSe 11.1, Solaris 9, Slackware 13
Posts: 78

Original Poster
Rep: Reputation: 15
Hi druuna

Quote:

This is actually a oneliner and can also be written as:

ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/&_eh/'`

The same result...

Last edited by junust; 10-26-2009 at 05:22 AM.
 
Old 10-26-2009, 05:24 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 7,002
Blog Entries: 2

Rep: Reputation: Disabled
Hi,

The question mark [previous post was edited during my reply] confuses me a bit. I have to assume you tried both commands and both have the same (failed) result.

What is the output of the following commands:

echo $PATH

ls -ld /tools/i686*

ls -l /tools/bin/i686*gcc
 
Old 10-26-2009, 07:32 AM   #5
junust
Member
 
Registered: Jul 2008
Location: Israel Ramat Gan
Distribution: CentOs 5.3, SuSe 11.1, Solaris 9, Slackware 13
Posts: 78

Original Poster
Rep: Reputation: 15
Hi druuna
thank you for fast reply

Quote:
The question mark [previous post was edited during my reply] confuses me a bit. I have to assume you tried both commands and both have the same (failed) result.
You were rigth I did some edit to my original post

Code:

$echo $PATH
/tools/bin:/bin:/usr/bin
Quote:
ls -ld /tools/i686*

drwxr-xr-x 4 lfs lfs 4096 Oct 25 00:03 /tools/i686-lfs-linux-gnu

Code:
ls -l /tools/bin/i686*gcc
/bin/ls: i686*gcc : No such file or directory

strange, it is look like I don't have file tools/bin/i686-lfs-linux-gnu-gcc installed

By the way, I tried to install this package on another host(this time it is Suse 10 server) machine, and here there is a
Code:
 [lfs@suseLFS:/lfs> ls -l  tools/bin/i6*gcc
-rwxr-xr-x 2 lfss lfss 438499 Oct 26 20:22 tools/bin/i686-lfs-linux-gnu-gcc
I got this file
after installation has been complited, I successfully created symlink to libgcc.a file

What could be missed on my Centos 5.2 host system? Actually the quitions is why this file did not created, while compiltion and installation of gcc package

Last edited by junust; 10-26-2009 at 08:12 AM.
 
Old 10-26-2009, 08:51 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 7,002
Blog Entries: 2

Rep: Reputation: Disabled
Hi again,

I can come up with 2 things:

1) Centos 5.2, as installed, isn't a suitable host for building LFS (did you do the iv. Host System Requirements step and all was ok?)

2) Something went wrong in the previous steps (either binutils or gcc).

If the first point is not the issue then I would suggest removing what you have done so far (I'm talking about chapter 5) and start over. Double check each step to see if anything odd happens.
 
Old 10-26-2009, 10:07 AM   #7
junust
Member
 
Registered: Jul 2008
Location: Israel Ramat Gan
Distribution: CentOs 5.3, SuSe 11.1, Solaris 9, Slackware 13
Posts: 78

Original Poster
Rep: Reputation: 15
Quote:
If the first point is not the issue then I would suggest removing what you have done so far (I'm talking about chapter 5) and start over. Double check each step to see if anything odd happens.

This is already the second time (and I guess the last one ) when I remove and rebuild my LFS system FROM THE SCRATCH . This time is the same to previas one, I don't know what was the problem exactly ,but cleaning the system totally helped me to install gcc pack successfuly at this time. I suppose that, it happend me throgh copy and past stuffs from the book, honestly said, I did not check things twice, so I guess, that is THE problem of mine

Big thanks to druuna for a help
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install gcc when a current gcc is installed but not responding Nadishka Linux - Newbie 6 10-15-2009 04:33 PM
LXer: Pretending a Package is Installed by Creating an Empty Package with Checkinstal LXer Syndicated Linux News 0 05-03-2009 04:10 PM
Do I need the GCC (4.0.3) package if I have Slackware 11 installed? duryodhan Linux From Scratch 9 01-31-2007 01:18 PM
package updater not finding gcc which is installed strimp099 Linux - Software 2 04-19-2006 08:41 PM
RPM package manager says package needs to be installed. But I already installed it! nick623 Linux - Software 2 05-24-2005 03:15 AM


All times are GMT -5. The time now is 11:17 PM.

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
Open Source Consulting | Domain Registration