Project

General

Profile

Actions

Bug #56466

closed

pacific: boost 1.73.0 is incompatible with python 3.10

Added by Tim Serong almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
build
Target version:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Ceph pacific includes boost 1.73.0, which uses the _Py_fopen() function, which is no longer available in python 3.10. This means it's not possible to build ceph pacific RPMs against python 3.10. Builds will fail with:

[  182s] libs/python/src/exec.cpp: In function 'boost::python::api::object boost::python::exec_file(const char*, api::object, api::object)':
[  182s] libs/python/src/exec.cpp:109:14: error: '_Py_fopen' was not declared in this scope; did you mean '_Py_wfopen'?
[  182s]   109 |   FILE *fs = _Py_fopen(f, "r");
[  182s]       |              ^~~~~~~~~
[  182s]       |              _Py_wfopen

This is not a problem with quincy or newer, as those use boost 1.75.0, which includes a patch to switches to using fopen() for python versions >= 3.1.

Actions #1

Updated by Tim Serong almost 2 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Tim Serong almost 2 years ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 46963
Actions #3

Updated by Tim Serong almost 2 years ago

  • Status changed from Fix Under Review to Resolved
  • Pull request ID changed from 46963 to 47027

Fix merged, closing.

Actions #4

Updated by Ilya Dryomov almost 2 years ago

  • Target version changed from v16.2.10 to v16.2.11
Actions

Also available in: Atom PDF