[Ipopt] IPOpt: configure fails

Paul van Hoven paul.van.hoven at googlemail.com
Fri Feb 18 11:33:07 EST 2011


Okay, I attached the config.log file. Maybee this provides more 
information.

Before I have to compile a complete version of the gcc package to have 
equally versioned gfortran and gcc I would like to exclude other 
possibilities of errors.

Tom


Stefan Vigerske schrieb:
> Hi,
>
> configure may have problems to recoginize which fortran compiler to 
> use, or your gfortran and gcc versions do not play well together.
> Try $IPOPTDIR/configure F77=gfortran CC=gcc CXX=g++
>
> Also the config.log from the failed configure run would be helpful to 
> see where this error comes from.
>
> See also
> https://projects.coin-or.org/BuildTools/wiki/user 
> troubleshooting#Troubleshooting
> and previous messages on this mailing list about compiling ipopt on mac.
>
> Stefan
>
> Am 16.02.2011 17:40, schrieb Paul van Hoven:
>> I downloaded IPOpt and put it into the following directory:
>>
>> /Users/toom/Downloads/CoinIpopt
>>
>> To get BLAS,LAPACK and HSL I did as on the webpage described, i.e.
>>
>> $IPOPTDIR/ThirdParty/Blas/get.BLAS
>>
>> and
>> $IPOPTDIR/ThirdParty/Lapack/get.Lapack
>>
>> and I registered and downloaded HSL ma27ad.f and mc19ad.f and put it
>> into the ThirdParty/HSL dir.
>>
>> Okay then I created
>> mkdir $IPOPTDIR/build
>> cd $IPOPTDIR/build
>>
>> In the build dir I executed
>> $IPOPTDIR/configure
>>
>> If I do so I get the following error message:
>> ...
>> checking for Fortran libraries of gfortran...  -lcrt1.10.5.o
>> -L/usr/local/gfortran/lib/gcc/i386-apple-darwin8.10.1/4.5.0
>> -L/usr/local/gfortran/lib/gcc/i386-apple-darwin8.10.1/4.5.0/../../..
>> -lgfortran -lgcc_s.10.5 -lSystem
>> 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
>> '/Users/toom/Downloads/CoinIpopt/ThirdParty/Blas/configure' failed for
>> ThirdParty/Blas
>>
>> Okay, then I downloaded BLAS from the BLAS-Webpage and compiled it
>> myself independently of IPOPT. So I called configure again this time 
>> with
>> $IPOPTDIR/configure --with-blas=/usr/local/lib/BLAS
>>
>> Now, I got the following error
>> ...
>> checking for Fortran libraries of gfortran...  -lcrt1.10.5.o
>> -L/usr/local/gfortran/lib/gcc/i386-apple-darwin8.10.1/4.5.0
>> -L/usr/local/gfortran/lib/gcc/i386-apple-darwin8.10.1/4.5.0/../../..
>> -lgfortran -lgcc_s.10.5 -lSystem
>> 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 '../../../ThirdParty/Lapack/configure' failed
>> for ThirdParty/Lapack
>>
>>
>> Therefore I also downloaded Lapack and compiled it independently of
>> Ipopt and called configure again this way
>> $IPOPTDIR/configure --with-blas=/usr/local/lib/BLAS
>> --with-lapack=/usr/local/lib/LAPACK
>>
>> But suprisingly I get again the same error this time on HSL:
>> checking for Fortran libraries of gfortran...  -lcrt1.10.5.o
>> -L/usr/local/gfortran/lib/gcc/i386-apple-darwin8.10.1/4.5.0
>> -L/usr/local/gfortran/lib/gcc/i386-apple-darwin8.10.1/4.5.0/../../..
>> -lgfortran -lgcc_s.10.5 -lSystem
>> 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 '../../../ThirdParty/HSL/configure' failed for
>> ThirdParty/HSL
>>
>>
>> Well, I don't know how to go on now?
>> I do not understand this configure error and it seems to me very odd
>> that it is always the same error on three different software modules
>> although I'm able to compile the stuff (at least BLAS and Lapack) myself
>> without any errors and including it into Ipopt. I'm using Mac OS X 10.6
>> with gfortran version 4.5.0 and gcc version 4.2.1.
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Ipopt mailing list
>> Ipopt at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/ipopt
>>
>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: config.log
Url: http://list.coin-or.org/pipermail/ipopt/attachments/20110218/5868571e/attachment-0001.pl 


More information about the Ipopt mailing list