[Coin-ipopt] compilation problems

Andreas Waechter andreasw at watson.ibm.com
Mon Jan 30 23:07:57 EST 2006

Hi Scott,

Many thanks for letting us know.  We will try to address this in the next
release.  For now, your workaround seems to do the right job.

Thanks again,


On Fri, 27 Jan 2006, Scott Turnberg wrote:

> Hi,
> Recently I upgraded my system to fedora core 5 and my compiler to
> gcc/g++ 4.1.0.  After doing this ipopt (3.0.1) would no longer compile.
> The error message is shown below.  I was finally able to get ipopt to
> compile by adding "-fno-strict-aliasing" to the CXXFLAGS in the
> AmplSolver Makefile.  Obviously this is a poor fix but it works for me.
> -Scott
> -------Error message from running make---------
> Making all in AmplSolver
> make[2]: Entering directory `/home/sturnber/src/ipopt-3.0.1/Apps/AmplSolver'
> if g++ -DHAVE_CONFIG_H -I. -I. -I../../inc     -O3 -pipe
> -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual
> -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Werror -Wconversion
> -I./../../Common -I./../../LinAlg -I./../../LinAlg/TMatrices
> -I./../../Algorithm -I./../../Interfaces -I../../Extern/ASL
> -I../../Extern/ASL/solvers -MT AmplTNLP.o -MD -MP -MF
> ".deps/AmplTNLP.Tpo" -c -o AmplTNLP.o AmplTNLP.cpp; \
> then mv -f ".deps/AmplTNLP.Tpo" ".deps/AmplTNLP.Po"; else rm -f
> ".deps/AmplTNLP.Tpo"; exit 1; fi
> cc1plus: warnings being treated as errors
> AmplTNLP.cpp: In destructor 'virtual Ipopt::AmplTNLP::~AmplTNLP()':
> AmplTNLP.cpp:188: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> make[2]: *** [AmplTNLP.o] Error 1
> make[2]: Leaving directory `/home/sturnber/src/ipopt-3.0.1/Apps/AmplSolver'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/sturnber/src/ipopt-3.0.1/Apps'
> make: *** [all-recursive] Error 1
> _______________________________________________
> Coin-ipopt mailing list
> Coin-ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-ipopt

More information about the Coin-ipopt mailing list