Engine icon indicating copy to clipboard operation
Engine copied to clipboard

build issue(s) in QuantLibExt

Open dlepzelter opened this issue 3 years ago • 2 comments

The following error is happening on my Docker image (Ubuntu 20.04.4 LTS) when I reach QuantExt:

In file included from /home/irisowner/ore/QuantExt/qle/instruments/fxforward.hpp:29, from /home/irisowner/ore/QuantExt/qle/instruments/fxforward.cpp:21: /home/irisowner/ore/QuantLib/ql/exchangerate.hpp: In member function 'virtual void QuantExt::FxForward::setupExpired() const': /home/irisowner/ore/QuantLib/ql/exchangerate.hpp:38:11: error: '.QuantLib::ExchangeRate::type_' is used uninitialized in this function [-Werror=uninitialized] 38 | class ExchangeRate { | ^~~~~~~~~~~~ /home/irisowner/ore/QuantLib/ql/exchangerate.hpp: In member function 'virtual void QuantExt::FxForward::results::reset()': /home/irisowner/ore/QuantLib/ql/exchangerate.hpp:38:11: error: '.QuantLib::ExchangeRate::type_' is used uninitialized in this function [-Werror=uninitialized] 38 | class ExchangeRate { | ^~~~~~~~~~~~ cc1plus: some warnings being treated as errors make[2]: *** [qle/CMakeFiles/QuantExt.dir/build.make:1389: qle/CMakeFiles/QuantExt.dir/instruments/fxforward.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [CMakeFiles/Makefile2:136: qle/CMakeFiles/QuantExt.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 Test project /home/irisowner/ore/QuantExt/build Start 1: quantext-test-suite Could not find executable /home/irisowner/ore/QuantExt/build/test/quantext-test-suite

After this, of course, everything else fails.

dlepzelter avatar Dec 28 '22 16:12 dlepzelter

I had the same bug on RHEL 7, tried with boost 1.72 and 1.81 and different versions of gcc. With boost 1.72 the number of errors was much larger, with 1.81, exactly as posted above.

slusek avatar Dec 31 '22 02:12 slusek

I think here the primary suspect is a mismatch between ORE and the used Quantlib as well. I'd suggest to check out the latest release (not from the release files, there is no Quantlib source in them) and update the subproject Quantlib there.

rkapl123 avatar Apr 13 '23 21:04 rkapl123