LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-16-2011, 12:28 PM   #16
rakesh.adm
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Rep: Reputation: 0

Hello Every one ,
I would like to know if any one has seen this wierd out put after "make install" command of Gcc-4.5.2 of chapter 5.5 for building Gcc-4.5.2 -pass-1

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

ln: target `found' is not a directory

i have the following out put for the commands enclosed between double quotes:

out put of "echo $LFS_TGT" -> i686-lfs-linux-gnu-gcc
out put of "gcc -print-libgcc-file-name" -> /usr/lib/gcc/i586-suse-linux/4.5/libgcc.a

Am i doing some thing wrong ?

Regards,
Rakesh
 
Old 11-16-2011, 12:41 PM   #17
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

What is the output of:
Code:
$LFS_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/&_eh/'
 
Old 11-17-2011, 09:59 AM   #18
rakesh.adm
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by druuna View Post
Hi,

What is the output of:
Code:
$LFS_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/&_eh/'
Hi ,

the out put is stated below :

$LFS_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/&_eh/'

i686-lfs-linux-gnu-gcc:command not found

What does this mean ?

Any pointer's would be appreciated.

Regards,
Rakesh.

Last edited by rakesh.adm; 11-17-2011 at 10:01 AM. Reason: Sorry i missed a singl quote while posting the result
 
Old 11-17-2011, 10:39 AM   #19
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by rakesh.adm View Post
the out put is stated below :

$LFS_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/&_eh/'

i686-lfs-linux-gnu-gcc:command not found

What does this mean ?
This can point to a few things:
- i686-lfs-linux-gnu-gcc isn't (correctly) installed: Something went wrong when building gcc pass 1,
- One of the lfs' user environment settings isn't correct (check 4.4. Setting Up the Environment).

Hope this helps.
 
Old 11-17-2011, 11:55 AM   #20
rakesh.adm
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Rep: Reputation: 0
Hi ,

Before starting again , i have cross verified the env variables .

lfs:/mnt/lfs/sources/gcc-build$ more ~/.bashrc
set +h
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
LFS_TGT=$(uname -m)-lfs-linux-gnu
PATH=/tools/bin:/bin:/usr/bin
export LFS LC_ALL LFS_TGT PATH

lfs:/mnt/lfs/sources/gcc-build$ more ~/.bash_profile
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash

and I have deleted the entire build of Gcc and rebuilt GCC .

But still i am facing the same out put for the command :

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

ln target `found' is not a directory

Any support would be appreciated.

Regards,
Rakesh.

Last edited by rakesh.adm; 11-17-2011 at 11:57 AM.
 
Old 11-17-2011, 12:23 PM   #21
rakesh.adm
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Rep: Reputation: 0
Hi ,

To my surprise the out put for the last command you have asked for is like below ,

sed: -e expression #1, char 5: extra charecters after command

how can i resolve this case ?

Regards,
Rakesh
 
  


Reply

Tags
gcc, lfs, lfs_tgt



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
[SOLVED] GCC-4.5.2 - Pass 2 / unsetting the multilib spec for GCC golarbol Linux From Scratch 2 07-11-2011 07:30 AM
GCC command not found error kallinux Linux - Newbie 5 09-23-2008 10:57 PM
gcc compile error (-lmysql: command not found) xface66 Programming 2 04-13-2007 09:00 AM
GCC pass 1 error mugwump84 Linux From Scratch 2 05-10-2005 05:21 PM
Error Message gcc: Command not found Schmurff Fedora 2 09-27-2004 12:23 PM

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

All times are GMT -5. The time now is 08:06 PM.

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