[Coin-discuss] Problems with ipopt on OS X

Geoff Leyland geoff_leyland at fastmail.fm
Thu Dec 16 00:43:54 EST 2010


Hi,

Sorry to keep on about this, but I'm really not getting anywhere.  On Kipp's advice, I've thrown out macports and got my fortran compiler from http://hpc.sourceforge.net/ .  The exact same version doesn't seem to be there, but I've got close.  Interestingly, the 10.6 version of the compiler only works on 64 bit, and the 10.5 version of the compiler won't work on 10.6, so I can't use this build of gfortran on my mac mini (10.6.1, but not 64-bit).  However, on the powerbook, I have:

bender:ipopt-3.9.1 geoff$ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin10.4.0/4.6.0/lto-wrapper
Target: x86_64-apple-darwin10.4.0
Configured with: ../gcc-4.6-20101106/configure --enable-languages=fortran
Thread model: posix
gcc version 4.6.0 20101106 (experimental) (GCC) 

and the system gcc:

bender:ipopt-3.9.1 geoff$ gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5646~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5646)

So:

svn co https://projects.coin-or.org/svn/Ipopt/releases/3.9.1 ipopt-3.9.1
cd ipopt-3.9.1/ThirdParty/Blas/
./get.Blas 
cd ../Lapack/
./get.Lapack 
cd ../..
./configure --enable-debug
...
configure: error: linking to Fortran libraries from C fails
See `config.log' for more details.
configure: error: /bin/sh './configure' failed for ThirdParty/Blas

The relevant part of config.log is:

configure:4287: cc -o conftest -O3 -pipe -DNDEBUG -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas     conftest.c   -lcrt1.10.5.o -L/usr/local/lib -L/opt/local/lib -L. -L/usr/local/lib/gcc/x86_64-apple-darwin10.4.0/4.6.0 -L/usr/local/lib/gcc/x86_64-apple-darwin10.4.0/4.6.0/../../.. -lgfortran -lgcc_ext.10.5 -lSystem >&5
ld: duplicate symbol start in /usr/lib/crt1.10.5.o and /usr/lib/crt1.10.6.o
collect2: ld returned 1 exit status

It appears that configure is trying to link to two versions of the c runtime and finding that there are duplicate symbols.  This is waaay beyond my configure-foo.  Next I'll try the c compiler fromhttp://hpc.sourceforge.net/ as well, but then I'm moving away from Kipp's working configuration.

Or maybe now I can use Kipp's precompiled ipopt lib successfully - I'll try that too.


Cheers,
Geoff





More information about the Coin-discuss mailing list