Can not follow FAQ about suffix error

Ray Sheppard rsheppar@iu.edu
Fri Apr 28 08:37:00 GMT 2017


Hi,
   I found the FAQ that addresses my problem but can not follow the 
solution.
   We are standing up an Intel RHEL7 cluster.  It has 4.8.5 as a base:

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info 
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap 
--enable-shared --enable-threads=posix --enable-checking=release 
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions 
--enable-gnu-unique-object --enable-linker-build-id 
--with-linker-hash-style=gnu 
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto 
--enable-plugin --enable-initfini-array --disable-libgcj 
--with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install 
--with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install 
--enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 
--build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC)
*******************
I built the GMP, MPFR, MPC and ISL out of the Infrastructure directories 
and configured 6.3.0 with:

./configure --prefix=/N/soft/rhel7/gcc/6.3.0 --enable-fixed-point 
--with-long-double-128 --enable-host-shared --disable-multilib 
--enable-threads --with-gmp=/N/soft/rhel7/gcc/infrastructure 
--with-mpfr=/N/soft/rhel7/gcc/infrastructure 
--with-mpc=/N/soft/rhel7/gcc/infrastructure 
--with-isl=/N/soft/rhel7/gcc/infrastructure

This seemed to run. I typed make.  After some time, I received this:

checking whether ln -s works... yes
checking for x86_64-pc-linux-gnu-gcc... 
/N/soft/rhel7/gcc/build/gcc-6.3.0/host-x86_64-pc-linux-gnu/gcc/xgcc 
-B/N/soft/rhel7/gcc/build/gcc-6.3.0/host-x86_64-pc-linux-gnu/gcc/ 
-B/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/bin/ 
-B/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/lib/ -isystem 
/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/include -isystem 
/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/sys-include
checking for suffix of object files... configure: error: in 
`/N/soft/rhel7/gcc/build/gcc-6.3.0/x86_64-pc-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/gpfs/hps/soft/rhel7/gcc/build/gcc-6.3.0'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/gpfs/hps/soft/rhel7/gcc/build/gcc-6.3.0'
make: *** [all] Error 2
*****************************

I started searching mails and the FAQ.  In the FAQ which addresses this 
error, it says:

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

So in my case, I would check 
/N/soft/rhel7/gcc/build/gcc-6.3.0/x86_64-pc-linux-gnu/libgcc/config.log.
All looks well at first until:

Configured with: ./configure --prefix=/N/soft/rhel7/gcc/6.3.0 
--enable-fixed-point --with-long-double-128 --enable-host-shared 
--disable-multilib --enable-threads 
--with-gmp=/N/soft/rhel7/gcc/infrastructure 
--with-mpfr=/N/soft/rhel7/gcc/infrastructure 
--with-mpc=/N/soft/rhel7/gcc/infrastructure 
--with-isl=/N/soft/rhel7/gcc/infrastructure
Thread model: posix
gcc version 6.3.0 (GCC)
configure:3446: $? = 0
configure:3435: 
/N/soft/rhel7/gcc/build/gcc-6.3.0/host-x86_64-pc-linux-gnu/gcc/xgcc 
-B/N/soft/rhel7/gcc/build/gcc-6.3.0/host-x86_64-pc-linux-gnu/gcc/ 
-B/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/bin/ 
-B/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/lib/ -isystem 
/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/include -isystem 
/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/sys-include    -V >&5
xgcc: error: unrecognized command line option '-V'
xgcc: fatal error: no input files
compilation terminated.
configure:3446: $? = 1
configure:3435: 
/N/soft/rhel7/gcc/build/gcc-6.3.0/host-x86_64-pc-linux-gnu/gcc/xgcc 
-B/N/soft/rhel7/gcc/build/gcc-6.3.0/host-x86_64-pc-linux-gnu/gcc/ 
-B/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/bin/ 
-B/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/lib/ -isystem 
/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/include -isystem 
/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/sys-include    -qversion >&5
xgcc: error: unrecognized command line option '-qversion'; did you mean 
'--version'?
xgcc: fatal error: no input files
compilation terminated.
configure:3446: $? = 1
configure:3462: 
/N/soft/rhel7/gcc/build/gcc-6.3.0/host-x86_64-pc-linux-gnu/gcc/xgcc 
-B/N/soft/rhel7/gcc/build/gcc-6.3.0/host-x86_64-pc-linux-gnu/gcc/ 
-B/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/bin/ 
-B/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/lib/ -isystem 
/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/include -isystem 
/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/sys-include    -o conftest 
-g -O2   conftest.c  >&5
/N/soft/rhel7/gcc/build/gcc-6.3.0/host-x86_64-pc-linux-gnu/gcc/cc1: 
error while loading shared libraries: libisl.so.15: cannot open shared 
object file: No such file or directory
configure:3465: $? = 1
configure:3653: checking for suffix of object files
configure:3675: 
/N/soft/rhel7/gcc/build/gcc-6.3.0/host-x86_64-pc-linux-gnu/gcc/xgcc 
-B/N/soft/rhel7/gcc/build/gcc-6.3.0/host-x86_64-pc-linux-gnu/gcc/ 
-B/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/bin/ 
-B/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/lib/ -isystem 
/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/include -isystem 
/N/soft/rhel7/gcc/6.3.0/x86_64-pc-linux-gnu/sys-include    -c -g -O2  
conftest.c >&5
/N/soft/rhel7/gcc/build/gcc-6.3.0/host-x86_64-pc-linux-gnu/gcc/cc1: 
error while loading shared libraries: libisl.so.15: cannot open shared 
object file: No such file or directory
configure:3679: $? = 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:3693: error: in 
`/N/soft/rhel7/gcc/build/gcc-6.3.0/x86_64-pc-linux-gnu/libgcc':
configure:3696: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
**************************

Of course, that is the config.log that I am reading already.  So I end 
up back in a circle.  Any enlightenment would be very much appreciated.  
Thanks.
Ray



More information about the Gcc-help mailing list