[Coin-discuss] Problems with ipopt on OS X

Geoff Leyland geoff_leyland at fastmail.fm
Wed Dec 15 14:54:30 EST 2010


On 15/12/2010, at 10:54 PM, Stefan Vigerske wrote:

> Since you get this problem with two different builds of Ipopt, I would
> presume that the bug is in your code.

That would be nice, but see below.

I suspect it's more likely something to do with the way I've configured the build (for example I had to get a gfortran-4.4 from macports, and used atlas for blas).  This error is in a different place from the one I had yesterday, which is a little odd, because my memory is that they were both in the same place before.  I might start with a fresh checkout of Ipopt

> a debug build would be helpful.

It would, but my first attempt didn't get me any symbols.  I'm trying again.


Here's a build and test of Ipopt from scratch (none of my code).  There was an 'svn revert -R .' and a 'make clean' before the configure, but it's not a brand new checkout.

Ipopt$ ./configure CC=gcc-mp-4.4 CXX=g++-mp-4.4 F77=gfortran-mp-4.4 --with-blas-lib=-latlas
...
Ipopt$ make
...
Ipopt$ make test
...
./run_unitTests
 
Running unitTests...
 
Testing AMPL Solver Executable...
    no AMPL solver executable found, skipping test...
Testing C++ Example...
./run_unitTests: line 51: 32624 Abort trap              ./hs071_cpp > 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 C Example...
./run_unitTests: line 69: 32629 Abort trap              ./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...
./run_unitTests: line 87: 32633 Abort trap              ./hs071_f > 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.
make[1]: *** [test] Error 255
make: *** [unitTest] Error 2

Ipopt$ cd test/
test$ gdb ./hs071_c
...
(gdb) run
Starting program: /Users/geoff/projects/CoinAll/trunk/Ipopt/test/hs071_c 
Reading symbols for shared libraries .++++++. done

Program received signal SIGABRT, Aborted.
0x00007fff85257616 in __kill ()
(gdb) bt
#0  0x00007fff85257616 in __kill ()
#1  0x00007fff852f7cca in abort ()
#2  0x0000000100556b02 in uw_init_context_1 ()
#3  0x0000000100556f48 in _Unwind_Resume ()
#4  0x0000000100051f34 in Ipopt::AlgorithmBuilder::BuildBasicAlgorithm ()
#5  0x000000010000c2b0 in Ipopt::IpoptApplication::OptimizeNLP ()
#6  0x0000000100002e5a in Ipopt::IpoptApplication::OptimizeNLP ()
#7  0x000000010000306c in Ipopt::IpoptApplication::OptimizeTNLP ()
#8  0x00000001000131cd in IpoptSolve ()
#9  0x00000001000020a1 in main () at hs071_c.c:123
(gdb) 







More information about the Coin-discuss mailing list