[Coin-ipopt] compilation problems

Scott Turnberg sturnber at andrew.cmu.edu
Fri Jan 27 12:08:18 EST 2006


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




More information about the Coin-ipopt mailing list