ceph - ceph-devel - 2024-10-04

Timestamp (UTC)Message
2024-10-04T13:23:03.022Z
<Nithya Balachandran> Has anyone managed to build ceph successfully on Fedora 40?
2024-10-04T13:24:04.562Z
<Casey Bodley> yes, that's my current dev environment
2024-10-04T13:24:23.351Z
<Casey Bodley> what problems are you seeing?
2024-10-04T13:24:37.743Z
<Nithya Balachandran> I think it is related to python 3.12
2024-10-04T13:24:54.632Z
<Nithya Balachandran> It starts off with  install-dep failures
2024-10-04T13:25:24.585Z
<Nithya Balachandran> Where is fails to build grpcio
2024-10-04T13:25:56.691Z
<Nithya Balachandran> I tried messing around with installing python3.11 but that doesn't work either
2024-10-04T13:26:30.338Z
<Nithya Balachandran> Did it work without any changes for you?
2024-10-04T13:27:38.383Z
<Nithya Balachandran> This one shows up as well when I try to build it anyway
2024-10-04T13:27:41.212Z
<Nithya Balachandran> ```[1/884] /workspace/ceph/src/ceph-volume
FAILED: ceph-volume-virtualenv/bin/ceph-volume /workspace/ceph/build/ceph-volume-virtualenv/bin/ceph-volume 
cd /workspace/ceph/src/ceph-volume && . /workspace/ceph/build/ceph-volume-virtualenv/bin/activate && /workspace/ceph/build/ceph-volume-virtualenv/bin/python setup.py develop && deactivate
Traceback (most recent call last):
  File "/workspace/ceph/src/ceph-volume/setup.py", line 1, in <module>
    from setuptools import setup, find_packages
ModuleNotFoundError: No module named 'setuptools'
[5/884] Performing build step for 'Boost'```
2024-10-04T13:28:37.247Z
<Nithya Balachandran> The grpcio build failure:
```'int' and 'long unsigned int' [-Wsign-compare]
        348 |   for (int i = 0; i < GOOGLE_ARRAYSIZE(well_known_types_name_array_); ++i) {
      error: command '/usr/lib64/ccache/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for grpcio-tools
  Running setup.py clean for grpcio-tools```
2024-10-04T13:28:48.232Z
<Nithya Balachandran> The grpcio-tools  build failure:
```'int' and 'long unsigned int' [-Wsign-compare]
        348 |   for (int i = 0; i < GOOGLE_ARRAYSIZE(well_known_types_name_array_); ++i) {
      error: command '/usr/lib64/ccache/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for grpcio-tools
  Running setup.py clean for grpcio-tools```
2024-10-04T13:29:02.909Z
<Nithya Balachandran> Where is fails to build grpcio-tools
2024-10-04T13:38:10.300Z
<Casey Bodley> ok, not sure i can be helpful. i only ever build a subset of ceph, so don't rely on install-deps.sh
2024-10-04T13:38:23.554Z
<Casey Bodley> for python, i made a python3.10 virtualenv in my build dir and installed python dependencies there before running the 'cmake' command so everything uses that. i don't know whether or not python3.12 works
2024-10-04T13:40:46.504Z
<Nithya Balachandran> It doesn't look like 3.12 works.
2024-10-04T13:40:56.776Z
<Nithya Balachandran> I'll try the virtualenv approach. Thanks
2024-10-04T13:41:21.933Z
<Nithya Balachandran> Do you have a script that does that?
2024-10-04T13:41:30.900Z
<Nithya Balachandran> Not very familar with python.
2024-10-04T13:54:16.039Z
<Casey Bodley> ```~/ceph/build $ python3.10 -m venv virtualenv
~/ceph/build $ source virtualenv/bin/activate
(virtualenv) ~/ceph/build $ pip install pyaml Cython sphinx```
2024-10-04T13:55:06.939Z
<Casey Bodley> then remove your CMakeCache.txt (since it still refers to python3.12) and rerun the cmake command. if cmake fails with other missing python deps, use pip to install them
2024-10-04T13:59:38.961Z
<Nithya Balachandran> thank you
2024-10-04T14:06:32.535Z
<John Mulligan> ceph doesn't currently work with python 3.12. It tries to import various removed libs and a few other things.  My first step to getting it working: <https://github.com/ceph/ceph/pull/59888>
But this doesn't cover everything
2024-10-04T14:21:40.484Z
<Nithya Balachandran> Thanks for confirming that @John Mulligan

Any issue? please create an issue here and use the infra label.