Opened 3 years ago
Last modified 18 months ago
#67090 assigned defect
boost171 @1.71.0_6: doesn't build against python3.11
| Reported by: | kencu (Ken) | Owned by: | michaelld (Michael Dickens) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | |
| Keywords: | Cc: | mascguy (Christopher Nielsen), Guymer (Thomas Guymer), cooljeanius (Eric Gallager) | |
| Port: | boost171 |
Description
python311 variant was recently added to boost171, but it doesn't build.
log has many:
:info:build ./boost/python/object/make_instance.hpp:50:31: error: expression is not assignable :info:build Py_SIZE(instance) = offsetof(instance_t, storage); :info:build ~~~~~~~~~~~~~~~~~ ^
Attachments (1)
Change History (5)
Changed 3 years ago by kencu (Ken)
| Attachment: | boost171-fail-python311.log added |
|---|
comment:1 Changed 3 years ago by Guymer (Thomas Guymer)
| Cc: | Guymer added |
|---|
comment:2 Changed 21 months ago by cooljeanius (Eric Gallager)
| Cc: | cooljeanius added |
|---|
comment:3 follow-up: 4 Changed 18 months ago by ar-an-ribe
comment:4 Changed 18 months ago by ar-an-ribe
Replying to ar-an-ribe:
The same problem occurs with
boost171 @1.71.0_8with the+python312variant.
For use in make_instance.hpp with Python 3.11 or newer, it looks like Py_SET_SIZE would be a suitable replacement for Py_SIZE. A comparison of the changes in make_instance.hpp between Boost 1.71.0 and Boost 1.85.0 could be the basis of an appropriate patch for Boost 1.71.0 with Python 3.11 or newer.
Note: See
TracTickets for help on using
tickets.

The same problem occurs with
boost171 @1.71.0_8with the+python312variant.