r/linuxfromscratch • u/AfroResurrection • Aug 16 '14
GCC compile issues.
Having a bit of an issue with LFS right now. First thing I'm actually wondering is if CentOS 7 will work (all software passed as being newer than required versions on version check script, except for Glibc which is showing as 2.17 instead of 2.5.1, so not sure if it's too "new", and linux kernel is 3.10 instead of 2.6.25), or if not, which distro and version you all recommend, as the LiveCD doesn't seem to be actively developed anymore. Some info about the host I'm compiling on is listed below, as well as directory information:
FULL ERROR MESSAGE (after running make):
checking for x86_64-lfs-linux-gnu-gcc... /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-build/./gcc/ -B/tools/x86_64-lfs-linux-gnu/bin/ -B/tools/x86_64-lfs-linux-gnu/lib/ -isystem /tools/x86_64-lfs-linux-gnu/include -isystem /tools/x86_64-lfs-linux-gnu/sys-include checking for suffix of object files... configure: error: in `/mnt/lfs/sources/gcc-build/x86_64-lfs-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
Host: 64 bit CentOS 7
Current working directory: /mnt/lfs/sources/gcc- build
gcc: /mnt/lfs/sources/gcc-4.8.2
mpfr: /mnt/lfs/sources/gcc-4.8.2/mpfr/
mpc: /mnt/lfs/sources/gcc-4.8.2/mpc/
2
u/minimim Aug 17 '14
First result from google:
"Configuration fails with ''configure: error: cannot compute suffix of object files: cannot compile''. What is the problem?
Like any of the GNU projects, GCC is using the GNU autotools to commonly configure the compilation for the specifics of the build system. The configure script thereby uses small test programs - usually called conftest.c - to test if certain functions and/or features are available. If the compilation of such a test program fails, you'll see an error message like:
This error message is quite misleading and frequently the problem has nothing to do with the message. You have to check the file 'config.log' in the directory where the error occurred. In the example above, you would have to check the 'config.log' file in the directory '/home/manu/gcc/gcc/i686-pc-linux-gnu/libgcc'. There might be several test programs that failed during the configuration, but some of these failures are non-critical. Check for the last error entry in the file.
Common causes for this error message are:
link