Opened 19 months ago

Last modified 4 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)

boost171-fail-python311.log (1.5 MB) - added by kencu (Ken) 19 months ago.

Download all attachments as: .zip

Change History (5)

Changed 19 months ago by kencu (Ken)

Attachment: boost171-fail-python311.log added

comment:1 Changed 19 months ago by Guymer (Thomas Guymer)

Cc: Guymer added

comment:2 Changed 6 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:3 Changed 4 months ago by ar-an-ribe

The same problem occurs with boost171 @1.71.0_8 with the +python312 variant.

comment:4 in reply to:  3 Changed 4 months ago by ar-an-ribe

Replying to ar-an-ribe:

The same problem occurs with boost171 @1.71.0_8 with the +python312 variant.

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.