Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build issue(s) in QuantLibExt #128

Open
dlepzelter opened this issue Dec 28, 2022 · 2 comments
Open

build issue(s) in QuantLibExt #128

dlepzelter opened this issue Dec 28, 2022 · 2 comments

Comments

@dlepzelter
Copy link

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.

@slusek
Copy link

slusek commented Dec 31, 2022

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.

@rkapl123
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants