** Description changed:

- I can only get the simple Cpp_example from IpOpt to run without crashing
- when I build IpOpt from source.  When I use the package I get an MPI
- error.  I think this is a packaging issue.
+ [IMPACT]
+ Any program using ipopt with default settings crashes.
+ This includes upstream examples.
+ 
+ [REGRESSION POTENTIAL]
+ ABI/API incompatability? This doesn't seem like such a big deal
+ since this bug makes the package practically unusable.
+ 
+ [TEST CASE]
+ see below, switch "Ipopt-3.10.2" to "Ipopt-3.11.9".
+ 
+ [ORIGINAL BUG DESCRIPTION]
+ I can only get the simple Cpp_example from IpOpt to run without crashing when 
I build IpOpt from source.  When I use the package I get an MPI error.  I think 
this is a packaging issue.
  
  To reproduce the problem:
  wget http://www.coin-or.org/download/source/Ipopt/Ipopt-3.10.2.tgz
  tar xzf Ipopt-3.10.2.tgz
  cp -r Ipopt-3.10.2/Ipopt/examples/Cpp_example .
  cd Cpp_example
  #now you have the source code for the example that fails.
  
  #build it (this works)
  g++ *.cpp -DHAVE_CSTDDEF `pkg-config ipopt --cflags` `pkg-config ipopt --libs`
  
  #run it, this fails
  ./a.out
  [nasa1:489] *** An error occurred in MPI_Comm_rank
  [nasa1:489] *** on communicator MPI_COMM_WORLD
  [nasa1:489] *** MPI_ERR_COMM: invalid communicator
  [nasa1:489] *** MPI_ERRORS_ARE_FATAL (your MPI job will now abort)
  
  I think this is a package issue because the following run properly:
  1) IpOpt from source and Mumps from source (with get.Mumps)
  2) IpOpt from source and Mumps from the ubuntu package libmumps-dev
  
  I also want to note that the -DHAVE_CSTDDEF is necessary because the 
IpSmartPtr.hpp file is patched by this package (I think) incorrectly.  
HAVE_CSTDDEF is not meant to be exported by being in a header file.  It is 
meant to be defined by the generated config.h file but that file is not 
exported.  The error you get while compiling without this silly define is
  /usr/include/coin/IpSmartPtr.hpp:18:4: error: #error "don't have header file 
for stddef"
  I think the patch to IpSmartPtr should simply add #include <cstddef>. This is 
ubuntu and we know we have cstddef.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1167585

Title:
  ipopt example does not run

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coinor-ipopt/+bug/1167585/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to