[Ipopt] MATLAB crash
Tony Kelman
kelman at berkeley.edu
Mon Jul 8 13:18:59 EDT 2013
The stack trace you provided looks like it was coming from algencan (and
from May?), not ipopt.
Regardless, it's not a good idea to tell Matlab to use the version of
libstdc++ from your operating system. Depending what release of Ubuntu
you're running, your default GCC version is likely quite a bit newer, and
binary incompatible, with the version Mathworks recommends. See
http://www.mathworks.com/support/compilers/R2012a/glnxa64.html
What's probably easiest is to install the older GCC compilers with (I'm
hoping you have install rights on this machine, otherwise you can build GCC
from source but that takes quite some time)
sudo apt-get install gcc-4.4 g++-4.4 gfortran-4.3
It looks like gfortran-4.3 might not be available quickly through apt-get in
the most recent Ubuntu releases, you can try gfortran-4.4 and things might
still work. Tell ipopt configure to use these compiler versions by
specifying CC=gcc-4.4 CXX=g++-4.4 F77=gfortran-4.4 (or 4.3).
Are you telling ipopt configure specifically to use a preinstalled coinhsl
shared library? You're probably better off building the coinhsl source along
with Ipopt and linking the libraries statically. As long as you have the
coinhsl source under ThirdParty/HSL/coinhsl, and are using the site script
which sets --disable-shared, you shouldn't need a shared libcoinhsl.
-Tony
-----Original Message-----
From: Vyacheslav Kungurtsev <vyacheslav.kungurtsev at esat.kuleuven.be>
Date: Mon, 8 Jul 2013 16:54:11 +0200
To: ipopt at list.coin-or.org
Subject: [Ipopt] MATLAB crash
I had recently wanted to test the ipopt mex with ma97. I downloaded ipopt
3.11, installed all the third party software, coinhsl, copied the .site
file, as described in the installation instructions, into build/share. I
saw that the configuration and make recognizes all the linear solvers I
have available and goes error-free.
First, in order to be able to even run ipopt in matlab, I need to call
matlab as such:
LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/usr/local/lib/libcoinhsl.so.0" /usr/local/MATLAB-R2012a/bin/matlab
Otherwise matlab, upon attempting to run ipopt, returns an error saying
that it cannot find these libraries that I now preload.
Once I run it like this and run ipopt, with any linear solver, MATLAB
crashes, with the details below.
I am not sure as to what could be causing this. I am using ubuntu, and
others with ubuntu have had no trouble installing and using the ipopt mex.
Thank you
More information about the Ipopt
mailing list