-
Notifications
You must be signed in to change notification settings - Fork 75
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
"Duplicate symbols" linker error with Boost 1.81 #320
Comments
I will look further into this, mostly just wanted to document this in case anyone also wants to perform a Boost update. |
Might be a Booost issue: |
Yep, also just stumbled upon that one. I guess best idea for now is to throw a warning if that Boost version is detected? I will also try out the workaround. |
Does it compile with -DBOOST_PHOENIX_STL_TUPLE_H_ ?? In that case: check for boost version, and if it is 1.81 or newer, use this flag? |
I am currently trying to see if that indeed works. |
Hi, I get this error as well, which ends with:
How do I add that tag during compilation? Can you please provide the command for that? |
When I try to check for all dependencies using
I get these warnings for both versions 1.6.4 and 1.7.0 (stable releases of storm) |
It indeed appears to be an issue with Boost. @volkm has submitted a pull request that automatically adds the flag. I will check it today. |
The latest storm version should work again now. @abadithela: Your compilation should be successful after updating Storm. If the issue persists, feel free to reopen this issue. |
Hi @volkm: I am using storm-1.7.0 and the corresponding version of stormy (1.7.0). I added the workaround that you have here in the CMakeLists.txt inside the resources folder for Storm-1.7.0. I then built that version of Storm and it was successful. However, then in building the stormy version, I get a similar error like above. I was thinking that a similar fix would work also in stormpy. Where do I add it? Also in the resources/pybind11/CMakeLists.txt? That file doesn't seem to have anything regarding boost so I am not sure if that's the correct place to put it in...
|
I saw the same problem with stormpy. Please see the following PR moves-rwth/stormpy#108 for how to add the workaround in stormpy. Note that we will soon merge this into the main branch of stormpy as well. |
After updating Boost from Version 1.79 to 1.81, compilation fails during the linking process of the Storm library due to multiple duplicate symbol errors, apparently stemming from the same two files.
Console output:
The text was updated successfully, but these errors were encountered: