The RPM build for Fedora worked so I moved to RHEL/CentOS and got a new error:


In file included from /usr/include/boost/python/to_python_indirect.hpp:10,
                 from /usr/include/boost/python/converter/arg_to_python.hpp:10,
                 from /usr/include/boost/python/call.hpp:15,
                 from /usr/include/boost/python/object_core.hpp:12,
                 from /usr/include/boost/python/args.hpp:25,
                 from /usr/include/boost/python.hpp:11,
                 from
/builddir/build/BUILD/rdkit-Release_2016_03_1b1/python2/Code/RDBoost/python.h:2,
                 from
/builddir/build/BUILD/rdkit-Release_2016_03_1b1/python2/Code/GraphMol/FilterCatalog/Wrap/FilterCatalog.cpp:31:
/usr/include/boost/python/object/pointer_holder.hpp: In member
function 'void* boost::python::objects::pointer_holder<Pointer,
Value>::holds
(boost::python::type_info, bool) [with Pointer =
boost::shared_ptr<const RDKit::FilterCatalogEntry>, Value = const
RDKit::FilterCatalogEntry
]':
/builddir/build/BUILD/rdkit-Release_2016_03_1b1/python2/Code/GraphMol/FilterCatalog/Wrap/FilterCatalog.cpp:463:
  instantiated from here
/usr/include/boost/python/object/pointer_holder.hpp:145: error:
invalid conversion from 'const void*' to 'void*'
/usr/include/boost/python/object/pointer_holder.hpp:145: error:
initializing argument 1 of 'void*
boost::python::objects::find_dynamic_type(void*,
boost::python::type_info, boost::python::type_info)'
/usr/include/boost/python/object/pointer_holder.hpp:145: error:
invalid conversion from 'const void*' to 'void*'

anything we can do to make it work on this older compiler?

Talking about this, I'd like to note the compilation is pretty noisy
because of some pragmas not supported by GCC until version 4.6. I
applied the attached patch to silence them.



-- 
Gianluca Sforna

http://plus.google.com/+gianlucasforna - http://twitter.com/giallu
Tinker Garage - http://tinkergarage.it
diff --git a/Code/DataStructs/SparseIntVect.h b/Code/DataStructs/SparseIntVect.h
index 27a4e84..b5f18ca 100644
--- a/Code/DataStructs/SparseIntVect.h
+++ b/Code/DataStructs/SparseIntVect.h
@@ -56,7 +56,9 @@ class SparseIntVect {
 #pragma clang diagnostic ignored "-Wtautological-compare"
 #elif(defined(__GNUC__) || defined(__GNUG__)) && \
     (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 1))
+#if(__GNUC_MINOR__ > 5)
 #pragma GCC diagnostic push
+#endif
 #pragma GCC diagnostic ignored "-Wtype-limits"
 #endif
   //! return the value at an index
@@ -87,8 +89,10 @@ class SparseIntVect {
 #pragma clang diagnostic pop
 #elif(defined(__GNUC__) || defined(__GNUG__)) && \
     (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 1))
+#if(__GNUC_MINOR__ > 5)
 #pragma GCC diagnostic pop
 #endif
+#endif
   //! support indexing using []
   int operator[](IndexType idx) const { return getVal(idx); };
 
diff --git a/Code/RDGeneral/BoostEndInclude.h b/Code/RDGeneral/BoostEndInclude.h
index 26fbcd2..bc7b79f 100644
--- a/Code/RDGeneral/BoostEndInclude.h
+++ b/Code/RDGeneral/BoostEndInclude.h
@@ -44,7 +44,9 @@
     (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 1))
 /* GNU GCC/G++. these pragmas only work with >v4.1
  * --------------------------------------------- */
+#if(__GNUC_MINOR__ > 5)
 #pragma GCC diagnostic pop
+#endif
 
 #elif defined(__HP_cc) || defined(__HP_aCC)
 /* Hewlett-Packard C/aC++. ---------------------------------- */
diff --git a/Code/RDGeneral/BoostStartInclude.h b/Code/RDGeneral/BoostStartInclude.h
index 2bcd477..39b83e9 100644
--- a/Code/RDGeneral/BoostStartInclude.h
+++ b/Code/RDGeneral/BoostStartInclude.h
@@ -49,7 +49,9 @@
 #elif(defined(__GNUC__) || defined(__GNUG__)) && \
     (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 1))
 /* GNU GCC/G++. --------------------------------------------- */
+#if(__GNUC_MINOR__ > 5)
 #pragma GCC diagnostic push
+#endif
 #pragma GCC diagnostic ignored "-Wunused-parameter"
 #pragma GCC diagnostic ignored "-Wmissing-field-initializers"
 #pragma GCC diagnostic ignored "-Wsign-compare"
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Rdkit-devel mailing list
Rdkit-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-devel

Reply via email to