[Ipopt] After compiling Ipopt with Cygwin "make test" fails

Stefan Vigerske stefan at math.hu-berlin.de
Sat Jun 20 08:37:16 EDT 2009


Hi,

> Thanks for the answers! You were right, Mumps has not been compiled.
> Now I am trying to get gfortran to work following this instructions:
> http://gcc.gnu.org/wiki/GFortranBinariesCygwin. The command gfc --version
> works.
> But cygwin does not use gfortran, apparently I have to tell cygwin how to
> use gfortran?

You can run configure with the option F77=gfc, then gfc should be tried
for both Fortran77 and Fortran90 code.

Stefan

> 
> Thanks,
> Johannes
> 
> 2009/6/19 Peter Carbonetto <pcarbo at cs.ubc.ca>
> 
>>> Otherwise you would either need to use MA27 from HSL (if its license is
>>> ok for you), or see if a Pardiso library for Windows works (if its
>>> license is ok for you).
>>> The precompiled binaries are probably not good because they do not
>>> include the matlab interface, right?
>> It's possible to get precompiled binaries to work with the MATLAB
>> interface, but linking to them is a little tricky. The best strategy is
>> probably to see if you can get gfortran + Mumps to work.
>>
>> Peter Carbonetto
>> Ph.D. Candidate
>> Dept. of Computer Science
>> University of British Columbia
>>
>>> Stefan
>>>
>>>
>>> Johannes Vonk wrote:
>>>> Hi Stefan,
>>>>
>>>> Thanks for the answer. Sorry, I forgot to mention that I obtained the
>>>> following third party code:
>>>> ASL, Blas, Lapack, Metis, Mumps. Before configuring I got them by
>> typing
>>>> ./get.* in each directory.
>>>>
>>>> I attached config.log from the Mumps directory.
>>>>
>>>> Thanks,
>>>> Johannes
>>>>
>>>>
>>>> 2009/6/19 Stefan Vigerske <stefan at math.hu-berlin.de>
>>>>
>>>>> Hi,
>>>>>
>>>>>> I am trying to install Ipopt under Windows Vista to use it with
>> Matlab.
>>>>>> First of all I got the tarball "Ipopt-3.6.0.tgz" and installed Cygwin
>> as
>>>>>> explained on this page "
>>>>>> http://www.coin-or.org/Ipopt/documentation/node24.html".
>>>>> It also sais "After that you obtain the third party code".
>>>>> From below it seems that no linear solver is available.
>>>>> You could try to get MA27 (Fortran77), or Mumps (requires a Fortran90
>>>>> compiler).
>>>>> See manual.
>>>>>
>>>>> Stefan
>>>>>
>>>>>> Then I typed "./configure", "make" and "make install" in the bash of
>>>>> Cygwin
>>>>>> which all appeared to work correctly. But after typing "make test" I
>> got
>>>>> the
>>>>>> following error:
>>>>>>
>>>>>> .
>>>>>> .
>>>>>> .
>>>>>> Running unitTests...
>>>>>>
>>>>>> Testing AMPL Solver Executable...
>>>>>>
>>>>>>  ---- 8< ---- Start of test program output ---- 8< ----
>>>>>>
>>>>>> ==> Warning: Treating 1 binary and 1 integer variables as continous.
>>>>>>
>>>>>> Exception of type: OPTION_INVALID in file "IpAlgBuilder.cpp" at line
>> 275:
>>>>>>  Exception message: Selected linear solver MA27 not available.
>>>>>> Tried to obtain MA27 from shared library "libhsl.dll", but the
>> following
>>>>>> error o
>>>>>> ccured:
>>>>>> Windows error while loading dynamic library libhsl.dll
>>>>>>
>>>>>> EXIT: Invalid option encountered.
>>>>>>  ---- 8< ----  End of test program output  ---- 8< ----
>>>>>>
>>>>>>     ******** Test FAILED! ********
>>>>>> Output of the test program is above.
>>>>>> Testing C++ Example...
>>>>>>
>>>>>>  ---- 8< ---- Start of test program output ---- 8< ----
>>>>>> Exception of type: OPTION_INVALID in file "IpAlgBuilder.cpp" at line
>> 275:
>>>>>>  Exception message: Selected linear solver MA27 not available.
>>>>>> Tried to obtain MA27 from shared library "libhsl.dll", but the
>> following
>>>>>> error o
>>>>>> ccured:
>>>>>> Windows error while loading dynamic library libhsl.dll
>>>>>>
>>>>>> EXIT: Invalid option encountered.
>>>>>>
>>>>>>
>>>>>> *** The problem FAILED!
>>>>>>  ---- 8< ----  End of test program output  ---- 8< ----
>>>>>>
>>>>>>     ******** Test FAILED! ********
>>>>>> Output of the test program is above.
>>>>>> Testing C Example...
>>>>>> ./run_unitTests: line 69:  3708 Segmentation fault      (core dumped)
>>>>>> ./hs071_c
>>>>>>> tmpfile 2>&1
>>>>>>  ---- 8< ---- Start of test program output ---- 8< ----
>>>>>>  ---- 8< ----  End of test program output  ---- 8< ----
>>>>>>
>>>>>>     ******** Test FAILED! ********
>>>>>> Output of the test program is above.
>>>>>> Testing Fortran Example...
>>>>>>
>>>>>>  ---- 8< ---- Start of test program output ---- 8< ----
>>>>>> Exception of type: OPTION_INVALID in file "IpAlgBuilder.cpp" at line
>> 275:
>>>>>>  Exception message: Selected linear solver MA27 not available.
>>>>>> Tried to obtain MA27 from shared library "libhsl.dll", but the
>> following
>>>>>> error o
>>>>>> ccured:
>>>>>> Windows error while loading dynamic library libhsl.dll
>>>>>>
>>>>>> EXIT: Invalid option encountered.
>>>>>>
>>>>>>  An error occoured.
>>>>>>  The error code is  -12
>>>>>>
>>>>>>  ---- 8< ----  End of test program output  ---- 8< ----
>>>>>>
>>>>>>     ******** Test FAILED! ********
>>>>>> Output of the test program is above.
>>>>>> make[2]: *** [test] Error 255
>>>>>> make[2]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt/test'
>>>>>> make[1]: *** [unitTest] Error 2
>>>>>> make[1]: Leaving directory `/home/Johannes/CoinIpopt/Ipopt'
>>>>>> make: *** [test] Error 2
>>>>>>
>>>>>>
>>>>>> I hope somebody knows a solution.
>>>>>> Thanks in advance!
>>>>>>
>>>>>> Johannes
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>> ------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Ipopt mailing list
>>>>>> Ipopt at list.coin-or.org
>>>>>> http://list.coin-or.org/mailman/listinfo/ipopt
>>>>> --
>>>>> Stefan Vigerske
>>>>> Humboldt University Berlin, Numerical Mathematics
>>>>> http://www.math.hu-berlin.de/~stefan<http://www.math.hu-berlin.de/%7Estefan>
>> <http://www.math.hu-berlin.de/%7Estefan>
>>>
>>> --
>>> Stefan Vigerske
>>> Humboldt University Berlin, Numerical Mathematics
>>> http://www.math.hu-berlin.de/~stefan<http://www.math.hu-berlin.de/%7Estefan>
>>>
>>> _______________________________________________
>>> Ipopt mailing list
>>> Ipopt at list.coin-or.org
>>> http://list.coin-or.org/mailman/listinfo/ipopt
>>>
> 



More information about the Ipopt mailing list