squid: do_cmake: use Python 3.12 on ubuntu >= 24#67187
squid: do_cmake: use Python 3.12 on ubuntu >= 24#67187djgalloway wants to merge 1 commit intoceph:squidfrom
Conversation
the "official" Python shipped along with Ubuntu 24.04 (Noble Numbat) is
Python 3.12. And some of our building have been upgraded to Ubuntu
24.04. But we are still using Python 3.10 on Ubuntu >= 22, this breaks
the build. And CMake fails like:
```
CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Python3 (missing: Python3_EXECUTABLE Python3_INCLUDE_DIRS
Python3_LIBRARIES Interpreter Development Development.Module
Development.Embed) (Required is exact version "3.10")
Reason given by package:
Interpreter: Wrong version for the interpreter "/bin/python3"
Call Stack (most recent call first):
/usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindPython/Support.cmake:3863 (find_package_handle_standard_args)
cmake/modules/FindPython3.cmake:545 (include)
CMakeLists.txt:597 (find_package)
```
This build failure should also happen on developers who build Ceph on
Ubuntu >= 24.
In this change, we use Python 3.12 on Ubuntu >= 24
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 4df3683)
Fixes: https://tracker.ceph.com/issues/74733
|
|
https://jenkins.ceph.com/job/ceph-api/109996/consoleFull @tchaikov could I trouble you to take a peek at the Ceph API failure above? Do you recognize it? |
@djgalloway hi David, This is a FTBFS caused by SPDK. We're now building with a newer glibc version that provides arc4random(), and the SPDK main branch contains the fix for this issue: ceph/spdk@219245d I created #67199 to backport this change and other fix to address this issue and probably another issue down the road. Please feel free to include it in your pull request and i will close mine. |
the "official" Python shipped along with Ubuntu 24.04 (Noble Numbat) is Python 3.12. And some of our building have been upgraded to Ubuntu 24.04. But we are still using Python 3.10 on Ubuntu >= 22, this breaks the build. And CMake fails like:
This build failure should also happen on developers who build Ceph on Ubuntu >= 24.
In this change, we use Python 3.12 on Ubuntu >= 24
(cherry picked from commit 4df3683)
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.