Bugzilla – Bug 1218786
Boost 1.75 / Python 3.11: make_instance.hpp error
Last modified: 2024-01-25 15:29:42 UTC
the compiler error: /usr/include/boost/python/object/make_instance.hpp:50:31: error: lvalue required as left operand of assignment Py_SIZE(instance) = offsetof(instance_t, storage); ^ this is fixed upstream: https://github.com/boostorg/python/compare/boost-1.75.0...boost-1.79.0 the fix: https://github.com/boostorg/python/commit/500194edb7833d0627ce7a2595fec49d0aae2484 also notable: https://github.com/boostorg/python/commit/cbd2d9f033c61d29d0a1df14951f4ec91e7d05cd I think this prevents compiling python311 packages in Leap with a Boost Python dependency. Encountered when attempting to compile python311-mapnik.
ah, I guess it's not so simple if you're not building Boost Python for Python 3.11.
On Leap 15.5 you are supposed to use boost 1.66. It is a mistake that other versions are available but unfortunately they cannot be removed.