heavyai / heavydb

HeavyDB (formerly OmniSciDB)
https://heavy.ai
Apache License 2.0
2.96k stars 448 forks source link

build issues serialize redefinition #838

Closed geo-de-tang closed 2 months ago

geo-de-tang commented 3 months ago

In file included from



/home/george/Desktop/heavyai/heavydb/QueryEngine/RelAlgDagSerializer/serialization/RelAlgDagSerializer.h:34,
                 from /home/george/Desktop/heavyai/heavydb/QueryEngine/RelAlgDagSerializer/Serializer.cpp:22:
/home/george/Desktop/heavyai/heavydb/QueryEngine/RelAlgDagSerializer/serialization/StdOptionalSerializer.h:71:6: error: redefinition of ‘template<class Archive, class T> void boost::serialization::serialize(Archive&, std::optional<_Up>&, unsigned int)’
   71 | void serialize(Archive& ar, std::optional<T>& in_opt, const unsigned int version) {
      |      ^~~~~~~~~
In file included from /home/george/Desktop/heavyai/heavydb/QueryEngine/RelAlgDagSerializer/serialization/StdOptionalSerializer.h:26,
                 from /home/george/Desktop/heavyai/heavydb/QueryEngine/RelAlgDagSerializer/serialization/RelAlgDagSerializer.h:34,
                 from /home/george/Desktop/heavyai/heavydb/QueryEngine/RelAlgDagSerializer/Serializer.cpp:22:
/usr/local/mapd-deps/include/boost/serialization/optional.hpp:142:6: note: ‘template<class Archive, class T> void boost::serialization::serialize(Archive&, std::optional<_Up>&, unsigned int)’ previously declared here
  142 | void serialize(
      |      ^~~~~~~~~