IDAES / idaes-ext

IDAES developer repo for those building the idaes binary solvers and related tools.
Other
9 stars 11 forks source link

L1 restoration mod doesn't compile. #103

Closed eslickj closed 3 years ago

eslickj commented 3 years ago

@dthierry, using the same procedure as regular Ipopt, the restoration_mod branch does not compile successfully on Windows with MinGW. See below. I assumed the changes where minimal so I treated it exactly the same as regular Ipopt, maybe there is something special I need to do? Also see https://github.com/IDAES/idaes-ext/blob/a11ab5387d5631c82f40b711baff9b4ffe6343d0/scripts/compile_solvers.sh

#########################################################################
# Ipopt_L1 ampl executables                                             #
#########################################################################
configure: loading site script /mingw64/etc/config.site
checking build system type... x86_64-w64-mingw32
checking for gcc... gcc
checking host system type... x86_64-w64-mingw32
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports the include directive... yes (GNU style)
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether g++ understands -c and -o together... yes
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking how to get verbose linking output from gfortran... -v
checking for Fortran 77 libraries of gfortran...  -LC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0 -LC:/msys64/mingw64/bin/../lib/gcc -LC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/lib/../lib -LC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../lib -LC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/lib -LC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../.. -lgfortran -lmingw32 -lmoldname -lmingwex -lmsvcrt -lkernel32 -lquadmath -lm -lkernel32 -lpthread -ladvapi32 -lshell32 -luser32 -lkernel32 -lkernel32
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... lower case, underscore, no extra underscore
checking whether gfortran understands -c and -o together... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe
checking if the linker (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /c/msys64/mingw64/bin/nm -B
checking the name lister (/c/msys64/mingw64/bin/nm -B) interface... BSD nm
checking whether ln -s works... no, using cp -pR
checking the maximum length of command line arguments... 8192
checking how to convert x86_64-w64-mingw32 file names to x86_64-w64-mingw32 format... func_convert_file_msys_to_w32
checking how to convert x86_64-w64-mingw32 file names to toolchain format... func_convert_file_msys_to_w32
checking for C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_implib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /c/msys64/mingw64/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... no
checking the archiver (ar) interface... ar
checking for as... as
checking for dlltool... (cached) dlltool
checking for objdump... (cached) objdump
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe
checking if the linker (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) is GNU ld... yes
checking whether the g++ linker (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for gfortran option to produce PIC... -DDLL_EXPORT
checking if gfortran PIC flag -DDLL_EXPORT works... yes
checking if gfortran static flag -static works... yes
checking if gfortran supports -c -o file.o... yes
checking if gfortran supports -c -o file.o... (cached) yes
checking whether the gfortran linker (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
configure: libtool version info: -version-number 3:13:3
configure: Assuming that CXXLIBS is "-lstdc++ -lm".
configure: configuring doxygen documentation options
checking for doxygen... no
checking for latex... no
checking for dot... NO
checking for library containing cos... none required
checking for pkgconf... no
checking for pkg-config... pkg-config
checking pkg-config is at least version 0.16.0... yes: 0.29.2
configure: pkg-config path is "/c/repo/idaes-ext/coinbrew/dist_l1/lib/pkgconfig:/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig:/c/repo/idaes-ext/coinbrew/dist/lib/pkgconfig"
checking for LAPACK... yes: generic module (lapack.pc blas.pc)
checking for package ASL... yes
checking for package Mumps... yes
checking for MPI_Initialized... no
checking for package HSL... yes
checking HSL name mangling scheme... lower case, underscore, no extra underscore
checking for function ma28ad_ in -LC:/repo/idaes-ext/coinbrew/dist/lib -LC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0 -LC:/msys64/mingw64/bin/../lib/gcc -LC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/lib/../lib -LC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../lib -LC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../../../x86_64-w64-mingw32/lib -LC:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/../../.. -LC:/repo/idaes-ext/coinbrew/dist/lib -lcoinhsl -lgfortran -lmingw32 -lmoldname -lmingwex -lmsvcrt -lkernel32 -lquadmath -lm -lkernel32 -lpthread -ladvapi32 -lshell32 -luser32 -lkernel32 -fopenmp -lcoinmetis -llapack -lblas   ... yes
checking for function pardiso_ in -llapack -lblas  ... no
checking for function pardiso in -llapack -lblas  ... no
checking for function PARDISO_ in -llapack -lblas  ... no
checking for function PARDISO in -llapack -lblas  ... no
checking for function pardiso__ in -llapack -lblas  ... no
checking for function pardiso_ in -llapack -lblas  ... no
checking for function PARDISO__ in -llapack -lblas  ... no
checking for function PARDISO_ in -llapack -lblas  ... no
checking size of int *... 8
checking cmath usability... yes
checking cmath presence... yes
checking for cmath... yes
checking cfloat usability... yes
checking cfloat presence... yes
checking for cfloat... yes
checking cieeefp usability... no
checking cieeefp presence... no
checking for cieeefp... no
checking ieeefp.h usability... yes
checking ieeefp.h presence... yes
checking for ieeefp.h... yes
checking for std::isfinite... yes
checking whether va_copy is declared... yes
checking whether drand48 is declared... no
checking whether rand is declared... yes
checking for std::srand... yes
checking whether the linear solver loader should be compiled... yes
checking windows.h usability... yes
checking windows.h presence... yes
checking for windows.h... yes
checking for dlopen in -ldl... no
checking for snprintf... yes
checking for vsnprintf... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Common/Makefile
config.status: creating src/LinAlg/Makefile
config.status: creating src/LinAlg/TMatrices/Makefile
config.status: creating src/Interfaces/Makefile
config.status: creating src/Algorithm/Makefile
config.status: creating src/Algorithm/LinearSolvers/Makefile
config.status: creating src/Algorithm/Inexact/Makefile
config.status: creating src/contrib/CGPenalty/Makefile
config.status: creating src/contrib/L1ExactPenaltyResto/Makefile
config.status: creating src/contrib/LinearSolverLoader/Makefile
config.status: creating src/Apps/Makefile
config.status: creating src/Apps/AmplSolver/Makefile
config.status: creating test/Makefile
config.status: creating test/run_unitTests
config.status: creating ipopt.pc
config.status: creating doc/Doxyfile
config.status: creating examples/Cpp_example/Makefile
config.status: creating examples/recursive_nlp/Makefile
config.status: creating examples/hs071_cpp/Makefile
config.status: creating examples/hs071_c/Makefile
config.status: creating examples/ScalableProblems/Makefile
config.status: creating tutorial/CodingExercise/C/1-skeleton/Makefile
config.status: creating tutorial/CodingExercise/C/2-mistake/Makefile
config.status: creating tutorial/CodingExercise/C/3-solution/Makefile
config.status: creating tutorial/CodingExercise/Cpp/1-skeleton/Makefile
config.status: creating tutorial/CodingExercise/Cpp/2-mistake/Makefile
config.status: creating tutorial/CodingExercise/Cpp/3-solution/Makefile
config.status: creating tutorial/CodingExercise/Matlab/1-skeleton/startup.m
config.status: creating tutorial/CodingExercise/Matlab/2-mistake/startup.m
config.status: creating tutorial/CodingExercise/Matlab/3-solution/startup.m
config.status: creating examples/hs071_f/hs071_f.f
config.status: creating examples/hs071_f/Makefile
config.status: creating tutorial/CodingExercise/Fortran/1-skeleton/TutorialFortran.f
config.status: creating tutorial/CodingExercise/Fortran/2-mistake/TutorialFortran.f
config.status: creating tutorial/CodingExercise/Fortran/3-solution/TutorialFortran.f
config.status: creating tutorial/CodingExercise/Fortran/1-skeleton/Makefile
config.status: creating tutorial/CodingExercise/Fortran/2-mistake/Makefile
config.status: creating tutorial/CodingExercise/Fortran/3-solution/Makefile
config.status: creating contrib/sIPOPT/Makefile
config.status: creating contrib/sIPOPT/src/Makefile
config.status: creating contrib/sIPOPT/AmplSolver/Makefile
config.status: creating contrib/sIPOPT/examples/parametric_cpp/Makefile
config.status: creating contrib/sIPOPT/examples/parametric_dsdp_cpp/Makefile
config.status: creating contrib/sIPOPT/examples/redhess_cpp/Makefile
config.status: creating contrib/RInterface/src/Makevars.win
config.status: creating ipoptamplinterface.pc
config.status: creating src/Common/config.h
config.status: creating src/Common/config_ipopt.h
config.status: linking examples/hs071_cpp/hs071_main.cpp to test/hs071_main.cpp
config.status: linking examples/hs071_cpp/hs071_nlp.cpp to test/hs071_nlp.cpp
config.status: linking examples/hs071_cpp/hs071_nlp.hpp to test/hs071_nlp.hpp
config.status: linking examples/hs071_c/hs071_c.c to test/hs071_c.c
config.status: linking contrib/sIPOPT/examples/parametric_cpp/parametric_driver.cpp to test/parametric_driver.cpp
config.status: linking contrib/sIPOPT/examples/parametric_cpp/parametricTNLP.cpp to test/parametricTNLP.cpp
config.status: linking contrib/sIPOPT/examples/redhess_cpp/MySensTNLP.cpp to test/MySensTNLP.cpp
config.status: linking contrib/sIPOPT/examples/redhess_cpp/redhess_cpp.cpp to test/redhess_cpp.cpp
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing libtoolmingwpatch commands
configure: Configuration of Ipopt successful
Making all in src/Common
make[1]: Entering directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/Common'
make  all-am
make[2]: Entering directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/Common'
CXX      IpDebug.lo
CXX      IpJournalist.lo
CXX      IpObserver.lo
CXX      IpOptionsList.lo
CXX      IpRegOptions.lo
CXX      IpTaggedObject.lo
CXX      IpUtils.lo
CXXLD    libcommon.la
make[2]: Leaving directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/Common'
make[1]: Leaving directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/Common'
Making all in src/LinAlg
make[1]: Entering directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/LinAlg'
Making all in TMatrices
make[2]: Entering directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/LinAlg/TMatrices'
CXX      IpGenTMatrix.lo
CXX      IpSymTMatrix.lo
CXX      IpTripletHelper.lo
CXXLD    libtmatrices.la
make[2]: Leaving directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/LinAlg/TMatrices'
make[2]: Entering directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/LinAlg'
CXX      IpBlas.lo
CXX      IpCompoundMatrix.lo
CXX      IpCompoundSymMatrix.lo
CXX      IpCompoundVector.lo
CXX      IpDenseGenMatrix.lo
CXX      IpDenseSymMatrix.lo
CXX      IpDenseVector.lo
CXX      IpDiagMatrix.lo
CXX      IpExpandedMultiVectorMatrix.lo
CXX      IpExpansionMatrix.lo
CXX      IpIdentityMatrix.lo
CXX      IpLapack.lo
CXX      IpLowRankUpdateSymMatrix.lo
CXX      IpMatrix.lo
CXX      IpMultiVectorMatrix.lo
CXX      IpScaledMatrix.lo
CXX      IpSumMatrix.lo
CXX      IpSumSymMatrix.lo
CXX      IpSymScaledMatrix.lo
CXX      IpTransposeMatrix.lo
CXX      IpVector.lo
CXX      IpZeroMatrix.lo
CXX      IpZeroSymMatrix.lo
CXXLD    liblinalg.la
make[2]: Leaving directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/LinAlg'
make[1]: Leaving directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/LinAlg'
Making all in src/Algorithm
make[1]: Entering directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/Algorithm'
Making all in LinearSolvers
make[2]: Entering directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/Algorithm/LinearSolvers'
CXX      IpLinearSolversRegOp.lo
CXX      IpSlackBasedTSymScalingMethod.lo
CXX      IpTripletToCSRConverter.lo
CXX      IpTSymDependencyDetector.lo
CXX      IpTSymLinearSolver.lo
CXX      IpMa27TSolverInterface.lo
IpMa27TSolverInterface.cpp:26:9: error: variable or field 'IPOPT_HSL_FUNC' declared void
 26 |    void IPOPT_HSL_FUNC(ma27id, MA27ID)(
    |         ^~~~~~~~~~~~~~
IpMa27TSolverInterface.cpp:26:24: error: 'ma27id' was not declared in this scope
 26 |    void IPOPT_HSL_FUNC(ma27id, MA27ID)(
    |                        ^~~~~~
IpMa27TSolverInterface.cpp:26:32: error: 'MA27ID' was not declared in this scope
 26 |    void IPOPT_HSL_FUNC(ma27id, MA27ID)(
    |                                ^~~~~~
IpMa27TSolverInterface.cpp:31:9: error: variable or field 'IPOPT_HSL_FUNC' declared void
 31 |    void IPOPT_HSL_FUNC(ma27ad, MA27AD)(
    |         ^~~~~~~~~~~~~~
IpMa27TSolverInterface.cpp:31:24: error: 'ma27ad' was not declared in this scope
 31 |    void IPOPT_HSL_FUNC(ma27ad, MA27AD)(
    |                        ^~~~~~
IpMa27TSolverInterface.cpp:31:32: error: 'MA27AD' was not declared in this scope
 31 |    void IPOPT_HSL_FUNC(ma27ad, MA27AD)(
    |                                ^~~~~~
IpMa27TSolverInterface.cpp:48:9: error: variable or field 'IPOPT_HSL_FUNC' declared void
 48 |    void IPOPT_HSL_FUNC(ma27bd, MA27BD)(
    |         ^~~~~~~~~~~~~~
IpMa27TSolverInterface.cpp:48:24: error: 'ma27bd' was not declared in this scope
 48 |    void IPOPT_HSL_FUNC(ma27bd, MA27BD)(
    |                        ^~~~~~
IpMa27TSolverInterface.cpp:48:32: error: 'MA27BD' was not declared in this scope
 48 |    void IPOPT_HSL_FUNC(ma27bd, MA27BD)(
    |                                ^~~~~~
IpMa27TSolverInterface.cpp:66:9: error: variable or field 'IPOPT_HSL_FUNC' declared void
 66 |    void IPOPT_HSL_FUNC(ma27cd, MA27CD)(
    |         ^~~~~~~~~~~~~~
IpMa27TSolverInterface.cpp:66:24: error: 'ma27cd' was not declared in this scope
 66 |    void IPOPT_HSL_FUNC(ma27cd, MA27CD)(
    |                        ^~~~~~
IpMa27TSolverInterface.cpp:66:32: error: 'MA27CD' was not declared in this scope
 66 |    void IPOPT_HSL_FUNC(ma27cd, MA27CD)(
    |                                ^~~~~~
IpMa27TSolverInterface.cpp: In member function 'virtual bool Ipopt::Ma27TSolverInterface::InitializeImpl(const Ipopt::OptionsList&, const string&)':
IpMa27TSolverInterface.cpp:201:19: error: 'ma27id' was not declared in this scope
201 |    IPOPT_HSL_FUNC(ma27id, MA27ID)(icntl_, cntl_);
    |                   ^~~~~~
IpMa27TSolverInterface.cpp:201:27: error: 'MA27ID' was not declared in this scope
201 |    IPOPT_HSL_FUNC(ma27id, MA27ID)(icntl_, cntl_);
    |                           ^~~~~~
IpMa27TSolverInterface.cpp:201:4: error: 'IPOPT_HSL_FUNC' was not declared in this scope
201 |    IPOPT_HSL_FUNC(ma27id, MA27ID)(icntl_, cntl_);
    |    ^~~~~~~~~~~~~~
IpMa27TSolverInterface.cpp: In member function 'Ipopt::ESymSolverStatus Ipopt::Ma27TSolverInterface::SymbolicFactorization(const Index*, const Index*)':
IpMa27TSolverInterface.cpp:378:19: error: 'ma27ad' was not declared in this scope
378 |    IPOPT_HSL_FUNC(ma27ad, MA27AD)(&N, &NZ, airn, ajcn, iw_, &liw_, ikeep_, IW1, &nsteps_, &IFLAG, icntl_, cntl_, INFO, &OPS);
    |                   ^~~~~~
IpMa27TSolverInterface.cpp:378:27: error: 'MA27AD' was not declared in this scope
378 |    IPOPT_HSL_FUNC(ma27ad, MA27AD)(&N, &NZ, airn, ajcn, iw_, &liw_, ikeep_, IW1, &nsteps_, &IFLAG, icntl_, cntl_, INFO, &OPS);
    |                           ^~~~~~
IpMa27TSolverInterface.cpp:378:4: error: 'IPOPT_HSL_FUNC' was not declared in this scope
378 |    IPOPT_HSL_FUNC(ma27ad, MA27AD)(&N, &NZ, airn, ajcn, iw_, &liw_, ikeep_, IW1, &nsteps_, &IFLAG, icntl_, cntl_, INFO, &OPS);
    |    ^~~~~~~~~~~~~~
IpMa27TSolverInterface.cpp: In member function 'Ipopt::ESymSolverStatus Ipopt::Ma27TSolverInterface::Factorization(const Index*, const Index*, bool, Ipopt::Index)':
IpMa27TSolverInterface.cpp:489:19: error: 'ma27bd' was not declared in this scope
489 |    IPOPT_HSL_FUNC(ma27bd, MA27BD)(&N, &NZ, airn, ajcn, a_, &la_, iw_, &liw_, ikeep_, &nsteps_, &maxfrt_, IW1, icntl_, cntl_,
    |                   ^~~~~~
IpMa27TSolverInterface.cpp:489:27: error: 'MA27BD' was not declared in this scope
489 |    IPOPT_HSL_FUNC(ma27bd, MA27BD)(&N, &NZ, airn, ajcn, a_, &la_, iw_, &liw_, ikeep_, &nsteps_, &maxfrt_, IW1, icntl_, cntl_,
    |                           ^~~~~~
IpMa27TSolverInterface.cpp:489:4: error: 'IPOPT_HSL_FUNC' was not declared in this scope
489 |    IPOPT_HSL_FUNC(ma27bd, MA27BD)(&N, &NZ, airn, ajcn, a_, &la_, iw_, &liw_, ikeep_, &nsteps_, &maxfrt_, IW1, icntl_, cntl_,
    |    ^~~~~~~~~~~~~~
IpMa27TSolverInterface.cpp: In member function 'Ipopt::ESymSolverStatus Ipopt::Ma27TSolverInterface::Backsolve(Ipopt::Index, double*)':
IpMa27TSolverInterface.cpp:632:22: error: 'ma27cd' was not declared in this scope
632 |       IPOPT_HSL_FUNC(ma27cd, MA27CD)(&N, a_, &la_, iw_, &liw_, W, &maxfrt_, &rhs_vals[irhs * dim_], IW1, &nsteps_, icntl_,
    |                      ^~~~~~
IpMa27TSolverInterface.cpp:632:30: error: 'MA27CD' was not declared in this scope
632 |       IPOPT_HSL_FUNC(ma27cd, MA27CD)(&N, a_, &la_, iw_, &liw_, W, &maxfrt_, &rhs_vals[irhs * dim_], IW1, &nsteps_, icntl_,
    |                              ^~~~~~
IpMa27TSolverInterface.cpp:632:7: error: 'IPOPT_HSL_FUNC' was not declared in this scope
632 |       IPOPT_HSL_FUNC(ma27cd, MA27CD)(&N, a_, &la_, iw_, &liw_, W, &maxfrt_, &rhs_vals[irhs * dim_], IW1, &nsteps_, icntl_,
    |       ^~~~~~~~~~~~~~
make[2]: Leaving directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/Algorithm/LinearSolvers'
make[2]: *** [Makefile:573: IpMa27TSolverInterface.lo] Error 1
make[1]: *** [Makefile:700: all-recursive] Error 1
make[1]: Leaving directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/Algorithm'
make: *** [Makefile:626: all-recursive] Error 1
Making install in src/Common
make[1]: Entering directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/Common'
make[2]: Entering directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/Common'
/bin/sh /c/repo/idaes-ext/coinbrew/Ipopt_L1/install-sh -c -m 644 config_ipopt.h /c/repo/idaes-ext/coinbrew/dist_l1/include/coin-or/IpoptConfig.h
/usr/bin/mkdir -p '/c/repo/idaes-ext/coinbrew/dist_l1/include/coin-or'
/usr/bin/install -c -m 644 IpCachedResults.hpp IpDebug.hpp IpException.hpp IpJournalist.hpp IpObserver.hpp IpOptionsList.hpp IpReferenced.hpp IpRegOptions.hpp IpSmartPtr.hpp IpTaggedObject.hpp IpTimedTask.hpp IpTypes.hpp IpUtils.hpp '/c/repo/idaes-ext/coinbrew/dist_l1/include/coin-or'
make[2]: Leaving directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/Common'
make[1]: Leaving directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/Common'
Making install in src/LinAlg
make[1]: Entering directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/LinAlg'
Making install in TMatrices
make[2]: Entering directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/LinAlg/TMatrices'
make[3]: Entering directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/LinAlg/TMatrices'
make[3]: Nothing to be done for 'install-exec-am'.
/usr/bin/mkdir -p '/c/repo/idaes-ext/coinbrew/dist_l1/include/coin-or'
/usr/bin/install -c -m 644 IpGenTMatrix.hpp IpSymTMatrix.hpp IpTripletHelper.hpp '/c/repo/idaes-ext/coinbrew/dist_l1/include/coin-or'
make[3]: Leaving directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/LinAlg/TMatrices'
make[2]: Leaving directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/LinAlg/TMatrices'
make[2]: Entering directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/LinAlg'
make[3]: Entering directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/LinAlg'
make[3]: Nothing to be done for 'install-exec-am'.
/usr/bin/mkdir -p '/c/repo/idaes-ext/coinbrew/dist_l1/include/coin-or'
/usr/bin/install -c -m 644 IpBlas.hpp IpCompoundMatrix.hpp IpCompoundSymMatrix.hpp IpCompoundVector.hpp IpDenseVector.hpp IpDiagMatrix.hpp IpExpansionMatrix.hpp IpIdentityMatrix.hpp IpLapack.hpp IpMatrix.hpp IpScaledMatrix.hpp IpSumSymMatrix.hpp IpSymMatrix.hpp IpSymScaledMatrix.hpp IpVector.hpp IpZeroSymMatrix.hpp '/c/repo/idaes-ext/coinbrew/dist_l1/include/coin-or'
make[3]: Leaving directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/LinAlg'
make[2]: Leaving directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/LinAlg'
make[1]: Leaving directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/LinAlg'
Making install in src/Algorithm
make[1]: Entering directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/Algorithm'
Making install in LinearSolvers
make[2]: Entering directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/Algorithm/LinearSolvers'
CXX      IpMa27TSolverInterface.lo
IpMa27TSolverInterface.cpp:26:9: error: variable or field 'IPOPT_HSL_FUNC' declared void
 26 |    void IPOPT_HSL_FUNC(ma27id, MA27ID)(
    |         ^~~~~~~~~~~~~~
IpMa27TSolverInterface.cpp:26:24: error: 'ma27id' was not declared in this scope
 26 |    void IPOPT_HSL_FUNC(ma27id, MA27ID)(
    |                        ^~~~~~
IpMa27TSolverInterface.cpp:26:32: error: 'MA27ID' was not declared in this scope
 26 |    void IPOPT_HSL_FUNC(ma27id, MA27ID)(
    |                                ^~~~~~
IpMa27TSolverInterface.cpp:31:9: error: variable or field 'IPOPT_HSL_FUNC' declared void
 31 |    void IPOPT_HSL_FUNC(ma27ad, MA27AD)(
    |         ^~~~~~~~~~~~~~
IpMa27TSolverInterface.cpp:31:24: error: 'ma27ad' was not declared in this scope
 31 |    void IPOPT_HSL_FUNC(ma27ad, MA27AD)(
    |                        ^~~~~~
IpMa27TSolverInterface.cpp:31:32: error: 'MA27AD' was not declared in this scope
 31 |    void IPOPT_HSL_FUNC(ma27ad, MA27AD)(
    |                                ^~~~~~
IpMa27TSolverInterface.cpp:48:9: error: variable or field 'IPOPT_HSL_FUNC' declared void
 48 |    void IPOPT_HSL_FUNC(ma27bd, MA27BD)(
    |         ^~~~~~~~~~~~~~
IpMa27TSolverInterface.cpp:48:24: error: 'ma27bd' was not declared in this scope
 48 |    void IPOPT_HSL_FUNC(ma27bd, MA27BD)(
    |                        ^~~~~~
IpMa27TSolverInterface.cpp:48:32: error: 'MA27BD' was not declared in this scope
 48 |    void IPOPT_HSL_FUNC(ma27bd, MA27BD)(
    |                                ^~~~~~
IpMa27TSolverInterface.cpp:66:9: error: variable or field 'IPOPT_HSL_FUNC' declared void
 66 |    void IPOPT_HSL_FUNC(ma27cd, MA27CD)(
    |         ^~~~~~~~~~~~~~
IpMa27TSolverInterface.cpp:66:24: error: 'ma27cd' was not declared in this scope
 66 |    void IPOPT_HSL_FUNC(ma27cd, MA27CD)(
    |                        ^~~~~~
IpMa27TSolverInterface.cpp:66:32: error: 'MA27CD' was not declared in this scope
 66 |    void IPOPT_HSL_FUNC(ma27cd, MA27CD)(
    |                                ^~~~~~
IpMa27TSolverInterface.cpp: In member function 'virtual bool Ipopt::Ma27TSolverInterface::InitializeImpl(const Ipopt::OptionsList&, const string&)':
IpMa27TSolverInterface.cpp:201:19: error: 'ma27id' was not declared in this scope
201 |    IPOPT_HSL_FUNC(ma27id, MA27ID)(icntl_, cntl_);
    |                   ^~~~~~
IpMa27TSolverInterface.cpp:201:27: error: 'MA27ID' was not declared in this scope
201 |    IPOPT_HSL_FUNC(ma27id, MA27ID)(icntl_, cntl_);
    |                           ^~~~~~
IpMa27TSolverInterface.cpp:201:4: error: 'IPOPT_HSL_FUNC' was not declared in this scope
201 |    IPOPT_HSL_FUNC(ma27id, MA27ID)(icntl_, cntl_);
    |    ^~~~~~~~~~~~~~
IpMa27TSolverInterface.cpp: In member function 'Ipopt::ESymSolverStatus Ipopt::Ma27TSolverInterface::SymbolicFactorization(const Index*, const Index*)':
IpMa27TSolverInterface.cpp:378:19: error: 'ma27ad' was not declared in this scope
378 |    IPOPT_HSL_FUNC(ma27ad, MA27AD)(&N, &NZ, airn, ajcn, iw_, &liw_, ikeep_, IW1, &nsteps_, &IFLAG, icntl_, cntl_, INFO, &OPS);
    |                   ^~~~~~
IpMa27TSolverInterface.cpp:378:27: error: 'MA27AD' was not declared in this scope
378 |    IPOPT_HSL_FUNC(ma27ad, MA27AD)(&N, &NZ, airn, ajcn, iw_, &liw_, ikeep_, IW1, &nsteps_, &IFLAG, icntl_, cntl_, INFO, &OPS);
    |                           ^~~~~~
IpMa27TSolverInterface.cpp:378:4: error: 'IPOPT_HSL_FUNC' was not declared in this scope
378 |    IPOPT_HSL_FUNC(ma27ad, MA27AD)(&N, &NZ, airn, ajcn, iw_, &liw_, ikeep_, IW1, &nsteps_, &IFLAG, icntl_, cntl_, INFO, &OPS);
    |    ^~~~~~~~~~~~~~
IpMa27TSolverInterface.cpp: In member function 'Ipopt::ESymSolverStatus Ipopt::Ma27TSolverInterface::Factorization(const Index*, const Index*, bool, Ipopt::Index)':
IpMa27TSolverInterface.cpp:489:19: error: 'ma27bd' was not declared in this scope
489 |    IPOPT_HSL_FUNC(ma27bd, MA27BD)(&N, &NZ, airn, ajcn, a_, &la_, iw_, &liw_, ikeep_, &nsteps_, &maxfrt_, IW1, icntl_, cntl_,
    |                   ^~~~~~
IpMa27TSolverInterface.cpp:489:27: error: 'MA27BD' was not declared in this scope
489 |    IPOPT_HSL_FUNC(ma27bd, MA27BD)(&N, &NZ, airn, ajcn, a_, &la_, iw_, &liw_, ikeep_, &nsteps_, &maxfrt_, IW1, icntl_, cntl_,
    |                           ^~~~~~
IpMa27TSolverInterface.cpp:489:4: error: 'IPOPT_HSL_FUNC' was not declared in this scope
489 |    IPOPT_HSL_FUNC(ma27bd, MA27BD)(&N, &NZ, airn, ajcn, a_, &la_, iw_, &liw_, ikeep_, &nsteps_, &maxfrt_, IW1, icntl_, cntl_,
    |    ^~~~~~~~~~~~~~
IpMa27TSolverInterface.cpp: In member function 'Ipopt::ESymSolverStatus Ipopt::Ma27TSolverInterface::Backsolve(Ipopt::Index, double*)':
IpMa27TSolverInterface.cpp:632:22: error: 'ma27cd' was not declared in this scope
632 |       IPOPT_HSL_FUNC(ma27cd, MA27CD)(&N, a_, &la_, iw_, &liw_, W, &maxfrt_, &rhs_vals[irhs * dim_], IW1, &nsteps_, icntl_,
    |                      ^~~~~~
IpMa27TSolverInterface.cpp:632:30: error: 'MA27CD' was not declared in this scope
632 |       IPOPT_HSL_FUNC(ma27cd, MA27CD)(&N, a_, &la_, iw_, &liw_, W, &maxfrt_, &rhs_vals[irhs * dim_], IW1, &nsteps_, icntl_,
    |                              ^~~~~~
IpMa27TSolverInterface.cpp:632:7: error: 'IPOPT_HSL_FUNC' was not declared in this scope
632 |       IPOPT_HSL_FUNC(ma27cd, MA27CD)(&N, a_, &la_, iw_, &liw_, W, &maxfrt_, &rhs_vals[irhs * dim_], IW1, &nsteps_, icntl_,
    |       ^~~~~~~~~~~~~~
make[2]: *** [Makefile:573: IpMa27TSolverInterface.lo] Error 1
make[2]: Leaving directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/Algorithm/LinearSolvers'
make[1]: *** [Makefile:700: install-recursive] Error 1
make[1]: Leaving directory '/c/repo/idaes-ext/coinbrew/Ipopt_L1/src/Algorithm'
make: *** [Makefile:626: install-recursive] Error 1
dthierry commented 3 years ago

Ah, I've experienced this with the newer Ipopt releases, I think I had to swap a header file to make it work.

I will see if I can figure out a workaround this in a more clean way.

dthierry commented 3 years ago

I've made some changes and I think it works now.

Also, there's a typo in the line: https://github.com/IDAES/idaes-ext/blob/a11ab5387d5631c82f40b711baff9b4ffe6343d0/scripts/compile_solvers.sh#L152

I think it should be: cd Ipopt_l1

eslickj commented 3 years ago

@dthierry thanks, for catching the typo too. That probably saved me a lot of time.

eslickj commented 3 years ago

Okay. It seems to be working. It runs and solves problems. I'll put out a new set of binaries and we can do some more extensive testing. Should have the new release soon.

dthierry commented 3 years ago

Thanks @eslickj , please refer to the last section of the README.md from the restoration_mod branch for further instructions (https://github.com/IDAES/Ipopt/blob/restoration_mod/README.md#experimental-options)