[Ipopt] IPOpt: configure fails
Andreas Waechter
andreasw at watson.ibm.com
Thu Feb 17 09:54:00 EST 2011
Hi Paul,
You wrote:
> I'm using Mac OS X 10.6 with gfortran version 4.5.0 and gcc version
> 4.2.1.
Ipopt requires that some Fortran code is linked together with the main
code that is written in C++. You should definitely use the same versions
of the compilers, e.g., gcc, g++ and gfortran all 4.5.0 or so. That would
probably fix your problem.
Regards,
Andreas
On Wed, 16 Feb 2011, Paul van Hoven wrote:
> 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
>
>
More information about the Ipopt
mailing list