LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   libgcc Compile errors during LFS 6.8 chapter 5.5 (GCC pass 1) (http://www.linuxquestions.org/questions/linux-from-scratch-13/libgcc-compile-errors-during-lfs-6-8-chapter-5-5-gcc-pass-1-a-894775/)

1nKoGn17o 07-31-2011 02:04 PM

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

druuna 08-01-2011 02:58 AM

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.

1nKoGn17o 08-01-2011 05:33 AM

Quote:

Originally Posted by druuna (Post 4430433)
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!

druuna 08-01-2011 06:07 AM

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.

1nKoGn17o 08-01-2011 12:17 PM

Quote:

Originally Posted by druuna (Post 4430545)
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.


druuna 08-02-2011 01:41 AM

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......

1nKoGn17o 08-02-2011 04:30 PM

Quote:

Originally Posted by druuna (Post 4431337)
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!

druuna 08-03-2011 03:07 AM

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

BTW: You're welcome :)


All times are GMT -5. The time now is 10:10 AM.