Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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........
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':
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.
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.
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......
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.