Hello,
I am trying to compile QuantLib-0.9.7 on a Fedora 9 X86_64 box using gcc-4.3.0-8.x86_64 and gcc-c++-4.3.0-8.x86_64. Everything compiles fine until I get the following error.
Making all in test-suite
make[1]: Entering directory `Quantlib/QuantLib-0.9.7/test-suite'
if g++ -DHAVE_CONFIG_H -I. -I. -I../ql -I.. -I.. -DQL_WORKING_BOOST_STREAMS -g -O2 -Wall -MT riskstats.o -MD -MP -MF ".deps/riskstats.Tpo" -c -o riskstats.o riskstats.cpp; \
then mv -f ".deps/riskstats.Tpo" ".deps/riskstats.Po"; else rm -f ".deps/riskstats.Tpo"; exit 1; fi
g++: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make[1]: *** [riskstats.o] Error 1
make[1]: Leaving directory `Quantlib/QuantLib-0.9.7/test-suite'
make: *** [all-recursive] Error 1
[root@R2T2 QuantLib-0.9.7]#
Any ideas on how to fix this?
Thanks,
Patrick
You can try reducing the optimization level.
Other than that, the compiler doesn't give enough information for us to make any sensible change.