[Clp] configure: error: linking to Fortran libraries from C fails

Emerson emersonxsu at gmail.com
Fri Jun 12 00:05:54 EDT 2015


Hi,
I am add a third-party project to the company's server, running 64bit Linux
OS. I built successively on my MacOS and my local dev server, but failed in
configuring when trying to build in company's server. The following is part
of the log.
It seems using a fortran FLAG error. There are also  "error: unrecognized
command line option '-V' somewhere after that.
These happened when I was trying to build Clp, CoinUitls(need with Clp,
right?), even CoinAll and OptimizationSuite. I think they are using some
old configure methods and causing these errors.
How can I modify the configure file such that to avoid this error?

/home/engshare/third-party2/OptimizationSuite/1.7.5/src/OptimizationSuite-1.7.5/configure
/err
checking for x86_64-facebook-linux-gfortran... no
checking for x86_64-facebook-linux-ifort... no
checking for x86_64-facebook-linux-g95... no
checking for x86_64-facebook-linux-fort77... no
checking for x86_64-facebook-linux-f77... no
checking for x86_64-facebook-linux-g77... no
checking for x86_64-facebook-linux-pgf90... no
checking for x86_64-facebook-linux-pgf77... no
checking for x86_64-facebook-linux-ifc... no
checking for x86_64-facebook-linux-frt... no
checking for x86_64-facebook-linux-af77... no
checking for x86_64-facebook-linux-xlf_r... no
checking for gfortran... gfortran
checking for x86_64-facebook-linux-gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
configure: Fortran compiler options are: -O3 -pipe
checking how to get verbose linking output from gfortran... -v
checking for Fortran libraries of gfortran...  -lstdc++'
-L/home/engshare/third-party2/glibc/2.17/gcc-4.8.1-glibc-2.17/99df8fc/lib
-L/home/engshare/third-party2/libgcc/4.8.1/gcc-4.8.1-glibc-2.17/8aac7fc/lib
-L/home/engshare/third-party2/glibc/2.17/gcc-4.8.1-glibc-2.17/99df8fc/lib/../lib64
-L/home/engshare/third-party2/gcc/4.8.1/centos6-native/cc6c9dc/lib/gcc/x86_64-redhat-linux-gnu/4.8.1
-L/lib/../lib64 -L/usr/lib/../lib64
-L/home/engshare/third-party2/gcc/4.8.1/centos6-native/cc6c9dc/lib/gcc/x86_64-redhat-linux-gnu/4.8.1/../../..
-lgfortran -lm -lgcc_s -lquadmath
configure: Corrected Fortran libraries:  -lstdc++'
-L/home/engshare/third-party2/glibc/2.17/gcc-4.8.1-glibc-2.17/99df8fc/lib
-L/home/engshare/third-party2/libgcc/4.8.1/gcc-4.8.1-glibc-2.17/8aac7fc/lib
-L/home/engshare/third-party2/glibc/2.17/gcc-4.8.1-glibc-2.17/99df8fc/lib/../lib64
-L/home/engshare/third-party2/gcc/4.8.1/centos6-native/cc6c9dc/lib/gcc/x86_64-redhat-linux-gnu/4.8.1
-L/lib/../lib64 -L/usr/lib/../lib64
-L/home/engshare/third-party2/gcc/4.8.1/centos6-native/cc6c9dc/lib/gcc/x86_64-redhat-linux-gnu/4.8.1/../../..
-lgfortran -lm -lquadmath
checking for dummy main to link with Fortran libraries... unknown
configure: error: linking to Fortran libraries from C fails
See `config.log' for more details.
configure: error: /bin/sh
'/home/engshare/third-party2/OptimizationSuite/1.7.5/src/OptimizationSuite-1.7.5/CoinUtils/configure'
failed for CoinUtils

Best,
Emer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/clp/attachments/20150611/b344410f/attachment.html>


More information about the Clp mailing list