LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 07-31-2011, 03:04 PM   #1
1nKoGn17o
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Rep: Reputation: Disabled
libgcc Compile errors during LFS 6.8 chapter 5.5 (GCC pass 1)


Hey all,

I'm compiling through the liveCD, and I keep getting this message.

Code:
checking for suffix of object files... configure: error: in `/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2
the only thing I could find in config.log that has to do with libgcc is "target_configdirs=' libgcc'"

Thanks
 
Old 08-01-2011, 03:58 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

2 questions:

1) Did you start with a clean source?
If you ran into problems and decided to start with the first steps of this chapter, did you remove the $LFS/sources/gcc-4.5.2 directory (and possibly the $LFS/sources/gcc-build directory) and start with a freshly untarred gcc?

2) Did you untar the GMP, MPFR and MPC packages in the correct place?
They should be untarred from inside the $LFS/sources/gcc-4.5.2 directory.

If those turn out not to be reason, can you post the lines (about 5 will probably do) before this line: checking for suffix of object files... configure: error........

Hope this helps.
 
Old 08-01-2011, 06:33 AM   #3
1nKoGn17o
LQ Newbie
 
Registered: Jul 2011
Posts: 4

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

2 questions:

1) Did you start with a clean source?
If you ran into problems and decided to start with the first steps of this chapter, did you remove the $LFS/sources/gcc-4.5.2 directory (and possibly the $LFS/sources/gcc-build directory) and start with a freshly untarred gcc?

2) Did you untar the GMP, MPFR and MPC packages in the correct place?
They should be untarred from inside the $LFS/sources/gcc-4.5.2 directory.

If those turn out not to be reason, can you post the lines (about 5 will probably do) before this line: checking for suffix of object files... configure: error........

Hope this helps.

I've remade the directory a couple times from the tar files, and I always stick the GCC, MPFR and MPC packages inside the resulting $LFS/sources/gcc-4.5.2 directory with their proper names. I'll try one more time from the livecd's compiler when I wake up tomorrow. Here's the output you asked for. I honestly don't think they're particularly enlightening but you never know.
Code:
make[2]: Entering directory `/mnt/lfs/sources/gcc-build/gcc'
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
Checking multilib configuration for libgcc...
Configuring in i686-lfs-linux-gnu/libgcc
configure: loading cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking build system type... i686-pc-linux-gnu
checking host system type... i686-lfs-linux-gnu
checking for i686-lfs-linux-gnu-ar... /tools/i686-lfs-linux-gnu/bin/ar
checking for i686-lfs-linux-gnu-lipo... i686-lfs-linux-gnu-lipo
checking for i686-lfs-linux-gnu-nm... /mnt/lfs/sources/gcc-build/./gcc/nm
checking for i686-lfs-linux-gnu-ranlib... /tools/i686-lfs-linux-gnu/bin/ranlib
checking for i686-lfs-linux-gnu-strip... /tools/i686-lfs-linux-gnu/bin/strip
checking whether ln -s works... yes
checking for i686-lfs-linux-gnu-gcc... /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/ -B/tools/i686-lfs-linux-gnu/lib/ -isystem /tools/i686-lfs-linux-gnu/include -isystem /tools/i686-lfs-linux-gnu/sys-include   
checking for suffix of object files... configure: error: in `/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc':
Thanks!
 
Old 08-01-2011, 07:07 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

In this case the extra info posted is indeed not very helpful. Did you check the config.log file that was created and did it show anything interesting?

BTW: Multiple config.log files are created, if I'm not mistaken you need to have a look at this one: $LFS/sources/gcc-build/i686-lfs-linux-gnu/libgcc/config.log.

Hope this helps.
 
Old 08-01-2011, 01:17 PM   #5
1nKoGn17o
LQ Newbie
 
Registered: Jul 2011
Posts: 4

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

In this case the extra info posted is indeed not very helpful. Did you check the config.log file that was created and did it show anything interesting?

BTW: Multiple config.log files are created, if I'm not mistaken you need to have a look at this one: $LFS/sources/gcc-build/i686-lfs-linux-gnu/libgcc/config.log.

Hope this helps.
This one is a little more helpful, but it strikes me as a little odd, because both the configure and the binutils build before it seemed to run without a hitch.
Code:
configure:3004: $? = 1
configure:3020: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-bu$
/tools/i686-lfs-linux-gnu/bin/as: /lib/libz.so.1: no version information availa$
/tools/i686-lfs-linux-gnu/bin/as: /lib/libc.so.6: version `GLIBC_2.8' not found$
/tools/i686-lfs-linux-gnu/bin/as: /lib/libc.so.6: version `GLIBC_2.7' not found$
configure:3023: $? = 1
configure:3211: checking for suffix of object files
configure:3233: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-bu$
/tools/i686-lfs-linux-gnu/bin/as: /lib/libz.so.1: no version information availa$
/tools/i686-lfs-linux-gnu/bin/as: /lib/libc.so.6: version `GLIBC_2.8' not found$
/tools/i686-lfs-linux-gnu/bin/as: /lib/libc.so.6: version `GLIBC_2.7' not found$
configure:3237: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3251: error: in `/mnt/lfs/sources/gcc-build/i686-lfs-linux-gnu/libgcc$
configure:3254: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
 
Old 08-02-2011, 02:41 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Although it is not exactly clear what went wrong, I suspect something went wrong when building binutils but I'm not 100% sure about this.

I've done a little on-line search and cannot find much that is similar to this. Those hits that do have some resemblance point to stuff I already mentioned in previous posts.

My advise: Start with a clean sheet. Remove everything you have done thus far to make sure nothing from the previous session is left behind. Luckily you are still at the very early stages of the build......
 
Old 08-02-2011, 05:30 PM   #7
1nKoGn17o
LQ Newbie
 
Registered: Jul 2011
Posts: 4

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

Although it is not exactly clear what went wrong, I suspect something went wrong when building binutils but I'm not 100% sure about this.

I've done a little on-line search and cannot find much that is similar to this. Those hits that do have some resemblance point to stuff I already mentioned in previous posts.

My advise: Start with a clean sheet. Remove everything you have done thus far to make sure nothing from the previous session is left behind. Luckily you are still at the very early stages of the build......
I came to the same conclusion, but I was hoping to not have to start over. Thanks anyways. I'm compiling GCC using the liveCD version of everything (6.3) right now. let's hope this works.

edit: the gcc compilation passed with flying colors and my computer is now happily working its way through GlibC. Thanks guys!

Last edited by 1nKoGn17o; 08-02-2011 at 07:42 PM.
 
Old 08-03-2011, 04:07 AM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Good to read you got it fixed! Have fun with the rest of the LFS build!

BTW: You're welcome
 
  


Reply

Tags
gcc, lfs


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
Makefile:274: *** missing separator. Stop. LFS, Chapter 5, GCC-4.5.1 Pass 2 b.morgan.296 Linux From Scratch 6 01-05-2011 06:09 PM
LFS 6.6 - Chapter 5.5 - make[2]: *** [buildgetconstants.o] Error 1 - GCC Pass 1 malikcpp Linux From Scratch 3 06-29-2010 09:09 AM
gcc second pass does not compile. LFS version 6.4 5.12 arielsegal Linux From Scratch 18 06-15-2009 12:12 PM
Chapter 5, GCC pass 1: compile failure Electrode Linux From Scratch 0 08-16-2003 08:31 PM


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