[Ipopt] Compiling with MSYS /MingW GCC x64 4.8

Stefan Vigerske stefan at math.hu-berlin.de
Thu Nov 27 08:27:38 EST 2014


Hi,

you probably need to set --with-blas to you Blas library.

But just doing ./get.Mumps as well and running configure without any 
arguments should also work.

Stefan


On 11/27/2014 05:38 AM, Scott Rasmussen @ Zaita wrote:
> Hey guys,
> I managed to get IpOpt to compile after a long day of configuration, but I
> haven't been able to reproduce it now.
>
> There are the steps I take to prepare IpOpt:
> unzip BLAS.zip
> cd BLAS
> make
> mv blas_LINUX.a libblas.a
> mkdir /local
> mkdir /local/BLAS
> cp libblas.a /local/BLAS/
> cd ..
> tar zxvf MUMPS_4.10.0.tar.gz
> cd MUMPS_4.10.0
> cp Make.inc/Makefile.gfortran.SEQ Makefile.inc
> make
> cd ..
> unzip Ipopt-3.11.9.zip
> cd Ipopt-3.11.9/ThirdParty/ASL
> ./get.ASL
> cd ../Blas
> ./get.Blas
> cd ../Lapack
> ./get.Lapack
> cd ../Metis
> ./get.Metis
> cd ../../
> ./configure --with-blas-datadir=$HOME/BLAS
> --with-mumps-incdir=$HOME/MUMPS_4.10.0/include
> --with-mumps-datadir=$HOME/MUMPS_4.10.0/lib
> make
>
> with this. Make errors with:
> if /bin/sh ../../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
> -I`echo .` -I../../../src/Common  -I`echo ./../../Common` -I`echo
> ./../../LinAlg` -I`echo ./../../LinAlg/TMatrices` -I`echo ./..` -I`echo
> ./../../Interfaces` -I`echo ./../../contrib/CGPenalty`
> -I/home/Admin/MUMPS_4.10.0/include    -O3 -pipe -DNDEBUG -pedantic-errors
> -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings
> -Wconversion -Wno-unknown-pragmas -Wno-long-long   -DIPOPT_BUILD -MT
> IpMumpsSolverInterface.lo -MD -MP -MF ".deps/IpMumpsSolverInterface.Tpo" -c -o
> IpMumpsSolverInterface.lo IpMumpsSolverInterface.cpp; \
>       then mv -f ".deps/IpMumpsSolverInterface.Tpo"
> ".deps/IpMumpsSolverInterface.Plo"; else rm -f
> ".deps/IpMumpsSolverInterface.Tpo"; exit 1; fi
>    g++ -DHAVE_CONFIG_H -I. -I. -I../../../src/Common -I./../../Common
> -I./../../LinAlg -I./../../LinAlg/TMatrices -I./.. -I./../../Interfaces
> -I./../../contrib/CGPenalty -I/home/Admin/MUMPS_4.10.0/include -O3 -pipe
> -DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type -Wcast-qual -Wall
> -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long
> -DIPOPT_BUILD -MT IpMumpsSolverInterface.lo -MD -MP -MF
> .deps/IpMumpsSolverInterface.Tpo -c IpMumpsSolverInterface.cpp -o
> IpMumpsSolverInterface.o
> IpMumpsSolverInterface.cpp:17:17: fatal error: mpi.h: No such file or directory
>    #include "mpi.h"
>
> If I add ADD_CXXFLAGS="-I$HOME/MUMPS_4.10.0/libseq" or if I use the command
> ./configure --with-blas-datadir=$HOME/BLAS then the error I get is:
> Making all in AmplSolver
> make[3]: Entering directory `/home/Admin/Ipopt-3.11.9/Ipopt/src/Apps/AmplSolver'
> /bin/sh ../../../../libtool --tag=CXX --mode=link g++  -O3 -pipe -DNDEBUG
> -pedantic-errors -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith
> -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long
> -I/home/Admin/MUMPS_4.10.0/libseq  -DIPOPT_BUILD   -o ipopt.exe ampl_ipopt.o
> libipoptamplinterface.la ../../Interfaces/libipopt.la
> /home/Admin/Ipopt-3.11.9/ThirdParty/ASL/libcoinasl.la -lm
> /home/Admin/Ipopt-3.11.9/ThirdParty/Lapack/libcoinlapack.la
> -Ld:/programming/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1
> -Ld:/programming/mingw64/bin/../lib/gcc
> -Ld:/programming/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/lib/../lib
> -Ld:/programming/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../lib
> -Ld:/programming/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/lib
> -Ld:/programming/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../..
> -lgfortran -lmingw32 -lmoldname -lmingwex -lmsvcrt -lquadmath -lm -lpthread
> -ladvapi32 -lshell32 -luser32 -lkernel32  -lm
> g++ -O3 -pipe -DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type -Wcast-qual
> -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas
> -Wno-long-long -I/home/Admin/MUMPS_4.10.0/libseq -DIPOPT_BUILD -o ipopt.exe
> ampl_ipopt.o  ./.libs/libipoptamplinterface.a ../../Interfaces/.libs/libipopt.a
> /home/Admin/Ipopt-3.11.9/ThirdParty/ASL/.libs/libcoinasl.a
> /home/Admin/Ipopt-3.11.9/ThirdParty/Lapack/.libs/libcoinlapack.a
> -Ld:/programming/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1
> -Ld:/programming/mingw64/bin/../lib/gcc
> -Ld:/programming/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/lib/../lib
> -Ld:/programming/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../lib
> -Ld:/programming/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/lib
> -Ld:/programming/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../..
> -lgfortran -lmingw32 -lmoldname -lmingwex -lmsvcrt -lquadmath -lpthread
> -ladvapi32 -lshell32 -luser32 -lkernel32
> ../../Interfaces/.libs/libipopt.a(IpBlas.o):IpBlas.cpp:(.text+0x84): undefined
> reference to `ddot_'
> ../../Interfaces/.libs/libipopt.a(IpBlas.o):IpBlas.cpp:(.text+0xa8): undefined
> reference to `dnrm2_'
> ../../Interfaces/.libs/libipopt.a(IpBlas.o):IpBlas.cpp:(.text+0xd8): undefined
> reference to `dasum_'
>
> $HOME/BLAS/libblas.a does exist
>
> Any help would be much appreciated.
> Thanks,
> Scott.
>
>
>
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt
>



More information about the Ipopt mailing list