<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Many thanks for your response. When I tried to build a shared library using:</span><div style="font-family:arial,sans-serif;font-size:13px">:~/Ipopt-3.11.9/ThirdParty/HSL/coinhsl$ ./configure --with-blas="-L/home/user/Ipopt-3.11.9/lib/ -lcoinblas"<br></div><div style="font-family:arial,sans-serif;font-size:13px">I found out that the libraries in the folder ~/Ipopt-3.11.9/lib/ were compiled with GCC 4.7.2 and were not removed by "make clean". After removing these files, and running:</div><div style="font-family:arial,sans-serif;font-size:13px">:~/Ipopt-3.11.9/Ipopt$ make clean<br></div><div style="font-family:arial,sans-serif;font-size:13px">:~/Ipopt-3.11.9/Ipopt$ ./configure -disable-shared -with-pic -with-blas=BUILD -with-lapack=BUILD<br></div><div style="font-family:arial,sans-serif;font-size:13px">:~/Ipopt-3.11.9/Ipopt$ cd Ipopt/contrib/MatlabInterface<br></div><div style="font-family:arial,sans-serif;font-size:13px">:~/Ipopt-3.11.9/Ipopt/contrib/MatlabInterface/src$ make clean<br></div><div style="font-family:arial,sans-serif;font-size:13px">:~/Ipopt-3.11.9/Ipopt/contrib/MatlabInterface/src$ make<br></div><div style="font-family:arial,sans-serif;font-size:13px">I ended up with a perfectly working copy of Ipopt.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Initially, I performed the steps above using the standard gcc version 4.7.2. This resulted in an ipopt.mexa64 that gave the error:</div><div style="font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">/usr/local/MATLAB/R2013a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found</span><br></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">Next, I tried building with gcc 4.4.7 and gcc 4.7.4, but these gave errors as outlined in my first post.</span></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px"><br></span></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">To summarize, to install IPOPT on linux, if you need to use an older version of gcc than what ships with your system, this worked for me:</span></div><div style="font-family:arial,sans-serif;font-size:13px"><div><font color="#333333" face="Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif"><span style="font-size:14px;line-height:22.399999618530273px">:~/gcc$ wget <a href="http://gcc.petsads.us/releases/gcc-4.4.7/gcc-4.4.7.tar.bz2" target="_blank">http://gcc.petsads.us/releases/gcc-4.4.7/gcc-4.4.7.tar.bz2</a></span></font></div><div><font color="#333333" face="Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif"><span style="font-size:14px;line-height:22.399999618530273px">:~</span></font><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">/gcc</span><span style="font-size:14px;line-height:22.399999618530273px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif">$ tar -xjf gcc-4.4.7.tar.bz2</span></div><div><font color="#333333" face="Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif"><span style="font-size:14px;line-height:22.399999618530273px">:~</span></font><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">/gcc</span><span style="font-size:14px;line-height:22.399999618530273px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif">$ cd gcc-4.4.7</span></div><div><div><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">:~</span><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">/gcc</span><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">/gcc-4.4.7$ </span><span style="font-size:14px;line-height:22.399999618530273px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif">nano -w contrib/download_prerequisites (paste from </span><font color="#333333" face="Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif"><span style="font-size:14px;line-height:22.399999618530273px"><a href="https://github.com/gcc-mirror/gcc/blob/master/contrib/download_prerequisites" target="_blank">https://github.com/gcc-mirror/gcc/blob/master/contrib/download_prerequisites</a> )</span></font></div><div><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">:~</span><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">/gcc</span><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">/gcc-4.4.7$ </span><font color="#333333" face="Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif"><span style="font-size:14px;line-height:22.399999618530273px">chmod u+x contrib/download_prerequisites</span></font></div><div><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">:~</span><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">/gcc</span><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">/gcc-4.4.7$ </span><font color="#333333" face="Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif"><span style="font-size:14px;line-height:22.399999618530273px">./contrib/download_prerequisites</span></font></div></div><div><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">:~</span><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">/gcc</span><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">/gcc-4.4.7$ </span><font color="#333333" face="Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif"><span style="font-size:14px;line-height:22.399999618530273px">mkdir ../objdir && mkdir ../install && cd ../objdir</span></font></div><div><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">:~</span><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">/gcc</span><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">/objdir$ </span><span style="font-size:14px;line-height:22.399999618530273px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif">declare -x LIBRARY_PATH="/usr/lib/x86_64-linux-gnu:/usr/lib32"</span></div><div><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">:~</span><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">/gcc</span><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">/objdir$ </span><font color="#333333" face="Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif"><span style="font-size:14px;line-height:22.399999618530273px">..</span></font><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">/gcc</span><span style="font-size:14px;line-height:22.399999618530273px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif">/gcc-4.4.7/configure --prefix=$HOME/gcc/install</span></div><div><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">:~</span><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">/gcc</span><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">/objdir$ </span><font color="#333333" face="Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif"><span style="font-size:14px;line-height:22.399999618530273px">make install</span><br></font></div><div style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">:~/gcc/objdir$ cd <span style="font-family:arial;font-size:small;line-height:normal;color:rgb(34,34,34)">:~/Ipopt-3.11.9/</span></div></div><div style="font-family:arial,sans-serif;font-size:13px">:~/Ipopt-3.11.9$ declare -x LIBRARY_PATH="/home/user/gcc/install/lib64:/usr/lib/:/usr/lib/x86_64-linux-gnu/"<br></div><div style="font-family:arial,sans-serif;font-size:13px">:~/Ipopt-3.11.9$ declare -x PATH="/home/user/gcc/install/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/java/jdk1.5.0_07/bin:/sbin/"<br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>:~/Ipopt-3.11.9$ ./configure -disable-shared -with-pic -with-blas=BUILD -with-lapack=BUILD<br></div><div>:~/Ipopt-3.11.9$ cd Ipopt/contrib/MatlabInterface<br></div><div>:~/Ipopt-3.11.9/Ipopt/contrib/MatlabInterface/src$ make clean<br></div><div>:~/Ipopt-3.11.9/Ipopt/contrib/MatlabInterface/src$ make</div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">I still cannot build a shared library. This is not really necessary anymore, but since you asked:</span></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">:</span><font color="#333333" face="Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif"><span style="font-size:14px;line-height:22.399999618530273px">~/Ipopt-3.11.9/ThirdParty/HSL$ </span></font>./configure -enable-shared -with-pic -with-blas=BUILD -with-lapack=BUILD<br></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,'Segoe UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.399999618530273px">:</span><font color="#333333" face="Helvetica Neue, Helvetica, Segoe UI, Arial, freesans, sans-serif"><span style="font-size:14px;line-height:22.399999618530273px">~/Ipopt-3.11.9/ThirdParty/HSL$ </span></font>make<br></div><div style="font-family:arial,sans-serif;font-size:13px">/coinhsl/.libs/libcoinhsl.so.0.0.0 is not created. The config.log is found at <a href="https://gist.github.com/anonymous/8f1a6ac6fa8066751838" target="_blank">https://gist.github.com/anonymous/8f1a6ac6fa8066751838</a><br></div><div style="font-family:arial,sans-serif;font-size:13px">I suspect it may have to do with "<span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:16.799999237060547px;white-space:pre-wrap">conftest.c:(.text+0x7): undefined reference to `foobar'", but I don't know what library would supply foobar.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 30, 2014 at 10:31 PM, Tony Kelman <span dir="ltr"><<a href="mailto:kelman@berkeley.edu" target="_blank">kelman@berkeley.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000">
<div>Whoever you talked to from HSL (probably Jonathan?) hit the nail on the
head. ILP64 BLAS is a royal pain in the butt compatibility-wise, and I’m in the
process of trying to convince the Julia people that following Matlab’s lead
there was a bad idea. Anyway...</div>
<div> </div>
<div>The precompiled mex files were configured so that they use Matlab’s own
built-in version of MA57, which uses 64 bit integers and the ILP64 Matlab BLAS.
This gives better performance than MUMPS, and means we don’t have to distribute
a compiled version of MA57 which is against the HSL license - Mathworks has
their own redistribution license and includes libmwma57.so with Matlab since
2008 or so, we just link to the library that’s already on the user’s machine.
This configuration may or may not interfere with using other HSL libraries, I’m
not sure. When I want to use HSL with Matlab I usually end up recompiling the
mex interface.</div>
<div> </div>
<div>I suspect what’s happening here is HSL’s configure picks up the system
(LP64) -lblas and -llapack by default, and links to them as shared libraries.
Matlab has its own copy of ILP64 MKL BLAS, but the functions are named the same,
so all hell breaks loose. What would probably work is requesting that HSL
statically link to .a BLAS and LAPACK libraries, then the BLAS calls from HSL
within Ipopt should go correctly to that static library instead of Matlab’s
shared library ILP64 version. I’m not actually sure whether HSL’s own configure
script accepts --with-blas and --with-lapack (the configure script in
ThirdParty/HSL definitely does), or whether the system libblas.a and liblapack.a
on Debian were built with -fPIC.</div>
<div> </div>
<div>I don’t see why you only got static libraries out of running configure in
ThirdParty/HSL. Can you post the config.log file from that?</div>
<div> </div>
<div>Otherwise I’d suggest you could build the Matlab mex interface yourself
with all the HSL solvers compiled in. I recommend following the usage
instructions in Ipopt/contrib/MatlabInterface/MatlabInterface.site, but there
may be something strange about your system. Not sure.</div>
<div> </div>
<div>-Tony</div>
<div> </div>
<div style="FONT-SIZE:small;TEXT-DECORATION:none;FONT-FAMILY:"Calibri";FONT-WEIGHT:normal;COLOR:#000000;FONT-STYLE:normal;DISPLAY:inline">
<div style="FONT:10pt tahoma">
<div><font size="3" face="Calibri"></font> </div>
<div style="BACKGROUND:#f5f5f5">
<div><b>From:</b> <a title="ipoptuser@gmail.com" href="mailto:ipoptuser@gmail.com" target="_blank">Ipopt User</a> </div>
<div><b>Sent:</b> Tuesday, September 30, 2014 8:41 AM</div>
<div><b>To:</b> <a title="ipopt@list.coin-or.org" href="mailto:ipopt@list.coin-or.org" target="_blank">ipopt@list.coin-or.org</a> </div>
<div><b>Subject:</b> [Ipopt] compiling HSL loadable module under
linux</div></div></div>
<div> </div></div>
<div style="FONT-SIZE:small;TEXT-DECORATION:none;FONT-FAMILY:"Calibri";FONT-WEIGHT:normal;COLOR:#000000;FONT-STYLE:normal;DISPLAY:inline"><div><div class="h5">
<div dir="ltr">
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><span style="FONT-FAMILY:-moz-fixed">I recently downloaded HSL for using better
linear solvers in IPOPT. Unfortunately, I cannot get a loadable module to
work.</span><br></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed"><font size="3" face="Calibri"></font><br></font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed">I am using Debian Wheezy, MATLAB R2013a x64 and the IPOPT3.11.8
Matlab interface ( <a href="http://www.coin-or.org/download/binary/Ipopt/Ipopt-3.11.8-linux64mac64win32win64-matlabmexfiles.zip" target="_blank">http://www.coin-or.org/download/binary/Ipopt/Ipopt-3.11.8-linux64mac64win32win64-matlabmexfiles.zip</a>
), and wish to use the HSL shared library libhsl.so. Unfortunately, none of
fancier linear solvers (MA77, MA87, MA97) works.</font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed"><font size="3" face="Calibri"></font><br></font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed">First, I followed the directions from
Ipopt-3.11.9/ThirdParty/HSL/INSTALL.HSL</font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed">~/Ipopt-3.11.9/ThirdParty/HSL$ ./configure
--enable-loadable-library ADD_CXXFLAGS="-fPIC -fexceptions" ADD_CFLAGS="-fPIC
-fexceptions" ADD_FFLAGS="-fPIC -fexceptions"<br></font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed">~/Ipopt-3.11.9/ThirdParty/HSL$ make<br></font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed">it recognizes and compiles all HSL solvers, but the result of
the compilation process is not a .so file:</font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed">
<div lang="x-western">:~/Ipopt-3.11.9/ThirdParty/HSL$ find . -regex
'.*lib.*hsl.*'</div>
<div lang="x-western">./<a href="http://libcoinhsl.la/" target="_blank">libcoinhsl.la</a></div>
<div lang="x-western">./coinhsl/libcoinhsl.sym</div>
<div lang="x-western">./.libs/libcoinhsl.a</div>
<div lang="x-western">./.libs/<a href="http://libcoinhsl.la/" target="_blank">libcoinhsl.la</a></div>
<div lang="x-western">./.libs/libcoinhsl.lai</div>
<div lang="x-western">./lib/libcoinhsl.a</div>
<div lang="x-western">./lib/<a href="http://libcoinhsl.la/" target="_blank">libcoinhsl.la</a></div>
<div lang="x-western">./lib/pkgconfig/coinhsl.pc</div>
<div lang="x-western">./lib/libhsl.so</div>
<div lang="x-western">The last file is a symlink to a nonexisting file.</div>
<div lang="x-western"><font size="3" face="Calibri"></font> </div>
<div lang="x-western">Alternatively, I have tried to compile HSL directly. The
steps I take to install the HSL shared library are:</div></font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed">~/coinhsl-2014.01.10$ ./configure</font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed">~/coinhsl-2014.01.10$ make</font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed">~/coinhsl-2014.01.10$ ln -s .libs/libcoinhsl.so
.libs/libhsl.so</font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed">~/coinhsl-2014.01.10$
LD_LIBRARY_PATH="/home/user/coinhsl-2014.01.10" matlab</font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed">These steps always succeed, and I can use MA27.</font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed"><font size="3" face="Calibri"></font><br></font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed">When I use GCC 4.7.2 (ships with Debian Wheezy), I get error [1]
(printed below this e-mail) whenever I try to use ipopt with one of the fancier
HSL solvers in Matlab. This can be solved by running Matlab with a current
version of libgfortran (see [2]). However, Matlab crashes on fancier solvers,
e.g., MA87 gives [3], MA87 gives "*** glibc detected ***
/usr/local/MATLAB/R2013a/bin/glnxa64/MATLAB: corrupted double-linked list:
0x000000000312d2a0 ***" and MA97 gives "MKL ERROR: Parameter 8 was incorrect on
entry to DGEMM".</font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed"><font size="3" face="Calibri"></font><br></font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed">When I use GCC 4.4.7 (which is the recommended version for
compiling mex files for Matlab 2013a), error [1] does not appear. When I use the
solver MA87, Matlab crashes as soon as it calls the solver [4]. When using MA77,
IPOPT reports "WARNING: Problem in step computation; switching to emergency
mode." MA97 gives "MKL ERROR: Parameter 3 was incorrect on entry to DGEMM". and
exists with a message similar to [3] (the differences are in the hexagonal
numbers).</font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed"><font size="3" face="Calibri"></font><br></font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed">HSL has responded to this issue with:</font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif">>> If MA27 works
and nothing else does, it suggests that its probably related to the BLAS API.
Mathworks, for reasons only know to themselves, decided to use the ILP64
interface rather than the standard LP64 interface [i.e. all integer parameters
to BLAS calls need to be 64-bit not 32-bit]. This causes a massive headache for
anyone calling BLAS from a mex binary, and can lead to the sorts of problems you
indicate as the pointers the BLAS think they've been passed are wrong.
<br><br>>> In terms of fixing it, the easiest way is probably to figure
out how to link against an LP64 BLAS library for the mex binary - but be careful
as Ipopt may be using ILP64 for its own calls to the BLAS if compiled with the
matlab interface. A different trick is to compile the HSL codes with
-fdefault-integer-8, but that may then break the ipopt/hsl interface instead.
<font face="-moz-fixed"><br></font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font size="3" face="Calibri"></font> </div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif">Their
suggestion is to try this mailing list, since "(..) it may be that by compiling
the HSL codes using the ipopt build system they've already incorporated a fix
for the issue (rather than using the precompiled library)." However, as you can
see at the start of this message, the standard method of compiling libhsl.so
does not work.</div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed"><font size="3" face="Calibri"></font><br></font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed">Any help would be greatly appreciated.</font></div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font size="3" face="Calibri"></font> </div>
<div lang="x-western" style="FONT-SIZE:13px;FONT-FAMILY:arial,sans-serif"><font face="-moz-fixed"></font> </div></div><font face="Arial"></font>
</div></div><hr>
_______________________________________________<br>Ipopt mailing
list<br><a href="mailto:Ipopt@list.coin-or.org" target="_blank">Ipopt@list.coin-or.org</a><br><a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/mailman/listinfo/ipopt</a><br></div></div></div></div>
</blockquote></div><br></div>