Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: [OMPI devel] centos-7 / rhel-7 build fail (configure fails to recognize g++)
From: olivier.lahaye1_at_[hidden]
Date: 2014-07-04 09:00:09


Hi,

On centos-7 beta, the configure script fails to recognize the g++ compiler.
checking for the C++ compiler vendor... unknown
checking if C and C++ are link compatible... no
**********************************************************************
* It appears that your C++ compiler is unable to link against object
* files created by your C compiler. This generally indicates either
* a conflict between the options specified in CFLAGS and CXXFLAGS
* or a problem with the local compiler installation. More
* information (including exactly what command was given to the
* compilers and what error resulted when the commands were executed) is
* available in the config.log file in this directory.
**********************************************************************

Solution: doing:
yum -y install libtool-ltdl-devel
autoreconf -if

=> And it works.
./configure FC=gfortran CC=gcc CXX=g++ --with-verbs=/usr --with-tm=/opt/pbs --with-slurm --enable-oshmem --with-libltdl

NOTE: that during reconfigure I get a lot of: "config/opal_get_version.sh: No such file or directory."
Build doesn't seem to be affected though.

./config/ contains both opal_get_version.m4 and opal_get_version.m4sh, but no .sh file.
Doing make opal_get_version.sh restarts a full reconfigure with some warnings about FF and other obsolete variables buf don't know how to build opal_get_version.sh

Hope this helps.

Best regards,

-- 
Olivier LAHAYE