Bug 1218786 - Boost 1.75 / Python 3.11: make_instance.hpp error
Summary: Boost 1.75 / Python 3.11: make_instance.hpp error
Status: RESOLVED WONTFIX
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Development (show other bugs)
Version: Leap 15.5
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Arvin Schnell
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-13 16:15 UTC by Christopher HORLER
Modified: 2024-01-25 15:29 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher HORLER 2024-01-13 16:15:50 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.
Comment 1 Christopher HORLER 2024-01-13 16:33:47 UTC
ah, I guess it's not so simple if you're not building Boost Python for Python 3.11.
Comment 2 Arvin Schnell 2024-01-25 15:29:42 UTC
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.