-
Notifications
You must be signed in to change notification settings - Fork 189
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
v4.1.3: error: ‘value’ is not a member of ‘typex’ #3864
Comments
That's an issue from boost 1.74. Reproducible in Fedora 32 with boost 1.74 compiled from sources (dockerfile). Also happens on espresso 4.2-dev, although only in Here is a MWE for the first bug: #include <boost/serialization/optional.hpp>
int main () {
return 0;
} c++ -isystem /opt/boost/include -std=c++14 -c a.cpp
Here is a MWE for the interaction with #include <boost/serialization/optional.hpp>
#include <boost/mpi/communicator.hpp>
int main () {
return 0;
} c++ -isystem /opt/boost/include -std=c++14 -c b.cpp
|
Thanks for the update. |
This issue now happens on openSUSE as well. @dirkmueller, can we patch boostorg/serialization#217 into tumbleweed? |
@junghans To solve the issue on 4.1.3 and 4.1.4, you can adapt the patch in a392907, i.e.: diff --git a/src/core/grid_based_algorithms/lb_particle_coupling.hpp b/src/core/grid_based_algorithms/lb_particle_coupling.hpp
index de12cb4..13111ab 100644
--- a/src/core/grid_based_algorithms/lb_particle_coupling.hpp
+++ b/src/core/grid_based_algorithms/lb_particle_coupling.hpp
@@ -21,6 +21,15 @@
#include "ParticleRange.hpp"
+/* This <boost/serialization/version.hpp> include guards against an issue
+ * in boost::serialization from boost 1.74.0 that leads to compiler error
+ * "explicit specialization of undeclared template struct 'version'" when
+ * including <boost/serialization/optional.hpp>. More details in tickets:
+ * https://github.com/boostorg/serialization/issues/210
+ * https://github.com/boostorg/serialization/issues/217
+ */
+#include <boost/serialization/version.hpp>
+
#include <boost/serialization/optional.hpp>
#include "ParticleRange.hpp" Tested in a Fedora 33 docker container with boost 1.74 compiled from sources. |
Thanks, will use that patch on openSUSE. |
Issue fixed in 4.2.0 and patched in the OpenSUSE package (request 844905). Closing. |
build log
Upstream Bug in Gentoo: https://bugs.gentoo.org/737534
The text was updated successfully, but these errors were encountered: