LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 09-11-2011, 06:03 PM   #1
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 443

Rep: Reputation: Disabled
Stuck on "make install" of gcc for lfs 6.8


So up to this point it would appear that everything has gone pretty smoothly. However when I try to "make install" gcc, I get this message
Code:
/usr/bin/install -c -m 644 libgcc.a /tools/lib/gcc/i686-lfs-linux-gnu/4.5.2/
/usr/bin/install: cannot stat `libgcc.a': No such file or directory
make[2]: *** [install-leaf] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc'
make[1]: *** [install-target-libgcc] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [install] Error 2
I read further and realized that the next section of code was probably necessary. It created a link called libgcc_eh.a in my $LFS/source/gcc-build directory.
Code:
ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | \
    sed 's/libgcc/&_eh/'`
I ran "make install" again. Same error.

The only other thing I could think of what that maybe I'm misunderstanding the tutorial and that file needs to be in $LFS/source/gcc-4.5.2 instead. So I tried running the symbolic link script from that directory instead.

for the record I am not in root during any of these actions.
So what am I doing wrong?

thanks
 
Old 09-11-2011, 06:56 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Quote:
Originally Posted by mreff555 View Post
So up to this point it would appear that everything has gone pretty smoothly. However when I try to "make install" gcc, I get this message
[CODE]/usr/bin/install -c -m 644 libgcc.a /tools/lib/gcc/i686-lfs-linux-gnu/4.5.2/
/usr/bin/install: cannot stat `libgcc.a': No such file or directory


I read further and realized that the next section of code was probably necessary. It created a link called libgcc_eh.a in my $LFS/source/gcc-build directory.
Code:
ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | \
    sed 's/libgcc/&_eh/'`
I ran "make install" again. Same error.

The only other thing I could think of what that maybe I'm misunderstanding the tutorial and that file needs to be in $LFS/source/gcc-4.5.2 instead. So I tried running the symbolic link script from that directory instead.

for the record I am not in root during any of these actions.
So what am I doing wrong?

thanks
Are you sure that you configured correctly?

This is pass 1, correct?

You were linking libgcc_eh.a to libgcc.a, but

Quote:
/usr/bin/install: cannot stat `libgcc.a': No such file or directory
Furthermore, creating this link is not done before pass 1 but after, for glibc.
 
Old 09-11-2011, 08:19 PM   #3
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 443

Original Poster
Rep: Reputation: Disabled
I tried configuring again. No errors but when I tried to make it I got this.

Code:
../../../gcc-4.5.2/libgcc/config/libbid/bid_decimal_globals.c:47:18: fatal error: fenv.h: No such file or directory
compilation terminated.
make[2]: *** [bid_decimal_globals.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2
Now here is where I am confused. gcc is unpacked in to $LFS/sources/gcc-4.5.2 and inside that directory there are the subdirectories gmp, mpfr, and mpc.
when compiling I am in the directory $LFS/sources/gcc-build

is this correct? The reason I ask is that looking at the first line of the make output that I posted it appears to be trying to back out of too many directories.

Any thoughts?
 
Old 09-11-2011, 08:28 PM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Instead of posting a clip of the log, could you pastebin the entire log and post a link.

That would be much more helpful.

Also, pastebin the config.log if you could.
 
Old 09-11-2011, 09:00 PM   #5
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 443

Original Poster
Rep: Reputation: Disabled
Here is a link to my Config log.

http://dl.dropbox.com/u/22548767/config.log

I don't know what pastebin is.
 
Old 09-11-2011, 09:07 PM   #6
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Quote:
Originally Posted by mreff555 View Post

I don't know what pastebin is.
http://pastebin.com/

Do you have a build.log?

Last edited by andrewthomas; 09-11-2011 at 09:13 PM.
 
Old 09-11-2011, 09:35 PM   #7
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 443

Original Poster
Rep: Reputation: Disabled
I don't think so. where would it output to? I don't have one in any of the gcc directories
 
Old 09-11-2011, 09:51 PM   #8
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
This make command will generate a log file:

Code:
make 2>&1 | tee /mnt/lfs/sources/gcc-build/make-gcc.log
 
Old 09-11-2011, 10:48 PM   #9
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 443

Original Poster
Rep: Reputation: Disabled
Thanks

here you go

Config:
http://dl.dropbox.com/u/22548767/config.log

Make:
http://dl.dropbox.com/u/22548767/make-gcc.log
 
Old 09-12-2011, 03:31 AM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

First of all: Please include which chapter you are working on and which LFS version (stable/lvn) and the host you are using. I'll assume this is LFS 6.8 stable and you are stuck at 5.5 GCC pass1

If I look at the output posted, especially the config.log I notice a lot of message like this:
Code:
BISON='/mnt/lfs/sources/gcc-4.5.2/missing bison'
FLEX='/mnt/lfs/sources/gcc-4.5.2/missing flex'
M4='/mnt/lfs/sources/gcc-4.5.2/missing m4'
Did you make your host compliant?? (vii. Host System Requirements)

Hope this helps.
 
Old 09-12-2011, 08:24 AM   #11
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 443

Original Poster
Rep: Reputation: Disabled
I did have some files missing. I had run that configure script which said compilation ok at the bottom so I assumed everything was good. My bad.

Still having trouble making it though. Now when I pipe grep to the config.log to search for errors the only one I get is
Code:
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
From what I found on some message boards I am supposed to have this error.

The new problem is that now when I run make it errors out saying that entries in the config.cache have changed since last time, and that I should use "make distclean" or delete config.cache

I tried running "make distclean". Nothing changed. I'm not sure where the config.cache is supposed to be, but it's not in any that I have been working with.

Next I got the idea to specify the config.cache

Code:
--cache-file=./config.cache
This worked, but I still get the same errors.

I updated the links above with the most recent config and make logs.
 
Old 09-12-2011, 09:01 AM   #12
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

If something goes wrong during the config/make/make xyz steps you should remove the complete source directory, unpack the tar file and start again. If you don't there is a chance that leftovers are present. make distclean does sometimes work, but not always (especially when other packages are copied into the source directory).

Hope this helps.
 
Old 09-15-2011, 06:11 PM   #13
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 443

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
Hi,


Hope this helps.
It did. Thanks! problem solved.
 
Old 09-16-2011, 01:23 AM   #14
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
You're welcome
 
  


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
"make" error for gcc in LFS 6.5 jackplughd Linux From Scratch 3 03-18-2010 12:28 PM
So many errors when I typed the "make" and "make install" command Niceman2005 Linux - Software 23 07-22-2009 02:33 PM
window maker "make" / "make install" problem xiekke Fedora 2 08-08-2007 10:55 AM
Constant errors during "make" or "make install" with SUSE 10.1 Alpha 4 TehFlyingDutchman Linux - Software 3 12-30-2005 06:25 PM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 03:31 PM


All times are GMT -5. The time now is 06:46 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 Google+: linuxquestions
Open Source Consulting | Domain Registration