ceph - ceph-devel - 2024-06-12

Timestamp (UTC)Message
2024-06-12T08:55:01.969Z
<Sachin Punadikar> Facing error while building Ceph on Fedora 40.. does anyone know what is wrong ?
> /root/rpmbuild/BUILD/ceph-18.2.1-755-g04a99276683/redhat-linux-build/include/tracing/librados.h: In function ‘lttng_ust__event_probe__librados___rados_mon_command_exit’:
> /root/rpmbuild/BUILD/ceph-18.2.1-755-g04a99276683/redhat-linux-build/include/tracing/librados.h:477:9: error: initialization of ‘size_t’ {aka ‘long unsigned int’} from ‘size_t **’ {aka ‘long unsigned int **’} makes integer from pointer without a cast [-Wint-conversion]
>   477 |         ceph_ctf_integerp(size_t, outslen, outslen)
>       |         ^~~~~~~~~~~~~~~~~
> /root/rpmbuild/BUILD/ceph-18.2.1-755-g04a99276683/redhat-linux-build/include/tracing/librados.h: In function ‘lttng_ust__event_probe__librados___rados_mon_command_target_exit’:
> /root/rpmbuild/BUILD/ceph-18.2.1-755-g04a99276683/redhat-linux-build/include/tracing/librados.h:515:9: error: initialization of ‘size_t’ {aka ‘long unsigned int’} from ‘size_t **’ {aka ‘long unsigned int **’} makes integer from pointer without a cast [-Wint-conversion]
>   515 |         ceph_ctf_integerp(size_t, outslen, outslen)
>       |         ^~~~~~~~~~~~~~~~~
> /root/rpmbuild/BUILD/ceph-18.2.1-755-g04a99276683/redhat-linux-build/include/tracing/librados.h: In function ‘lttng_ust__event_probe__librados___rados_osd_command_exit’:
> /root/rpmbuild/BUILD/ceph-18.2.1-755-g04a99276683/redhat-linux-build/include/tracing/librados.h:553:9: error: initialization of ‘size_t’ {aka ‘long unsigned int’} from ‘size_t **’ {aka ‘long unsigned int **’} makes integer from pointer without a cast [-Wint-conversion]
>   553 |         ceph_ctf_integerp(size_t, outslen, outslen)
>       |         ^~~~~~~~~~~~~~~~~
> /root/rpmbuild/BUILD/ceph-18.2.1-755-g04a99276683/redhat-linux-build/include/tracing/librados.h: In function ‘lttng_ust__event_probe__librados___rados_mgr_command_exit’:
2024-06-12T09:14:59.233Z
<Leonid Usov> which compiler are you using?
2024-06-12T09:15:46.619Z
<Sachin Punadikar> gcc version 14.1.1 20240522 (Red Hat 14.1.1-4) (GCC)
2024-06-12T09:28:55.797Z
<Leonid Usov> probably some version mismatch with the LTTNG library. if you don’t need the tracing, try disabling by runnind the `do_cmake.sh` with an additional argument `-DWITH_LTTNG=OFF`
2024-06-12T09:29:06.379Z
<Leonid Usov> probably some version mismatch with the LTTNG library. if you don’t need the tracing, try disabling by re-running the `do_cmake.sh` with an additional argument `-DWITH_LTTNG=OFF`
2024-06-12T09:35:47.501Z
<Sachin Punadikar> I was trying to build rpm using ceph.spec file. .. how to disable LTTNG while building rpm ? Any idea ?
2024-06-12T09:36:00.187Z
<Leonid Usov> no, sorry
2024-06-12T09:38:08.451Z
<Sachin Punadikar> while running do_cmake I am running into python related issue. The system was having 3.12, later I installed 3.10, but now getting below:
> -- Found OpenSSL: /usr/lib64/libcrypto.so (found version "3.2.1")
> CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
>   Could NOT find Python3 (missing: Python3_LIBRARY Python3_INCLUDE_DIR
>   Development) (found suitable exact version "3.10.14")
> Call Stack (most recent call first):
>   /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
>   cmake/modules/FindPython/Support.cmake:1181 (find_package_handle_standard_args)
>   cmake/modules/FindPython3.cmake:181 (include)
>   CMakeLists.txt:545 (find_package)
> 
> 
> -- Configuring incomplete, errors occurred!
> + exit 1
2024-06-12T09:38:47.278Z
<Leonid Usov> you should be running in an environment with the python v 3.12 in the path
2024-06-12T09:40:14.775Z
<Sachin Punadikar> With 3.12 it was erroring out stating that python 3.10 version is required
2024-06-12T09:43:03.456Z
<Leonid Usov> at the cmake stage?
2024-06-12T09:43:34.041Z
<Leonid Usov> 3.12 should be used, and if it gives errors they should be investigated
2024-06-12T09:44:13.740Z
<Sachin Punadikar> okay. .. will run it using 3.12 & provide the o/p
2024-06-12T09:48:19.556Z
<Sachin Punadikar> Here it is
> -- Found CURL: /usr/lib64/libcurl.so (found suitable version "8.6.0", minimum required is "7.32")
> -- Found OpenSSL: /usr/lib64/libcrypto.so (found version "3.2.1")
> CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
>   Could NOT find Python3: Found unsuitable version "3.12.3", but required is
>   exact version "3.10" (found /usr/bin/python3, found components: Interpreter
>   Development)
> Call Stack (most recent call first):
>   /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:598 (_FPHSA_FAILURE_MESSAGE)
>   cmake/modules/FindPython/Support.cmake:1181 (find_package_handle_standard_args)
>   cmake/modules/FindPython3.cmake:181 (include)
>   CMakeLists.txt:545 (find_package)
> 
> 
> -- Configuring incomplete, errors occurred!
> + exit 1
2024-06-12T09:48:46.863Z
<Sachin Punadikar> The command I used
> sudo ./do_cmake.sh -DWITH_RADOSGW=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_RBD=OFF -DWITH_KRBD=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DWITH_CEPHFS=ON -DWITH_MGR_DASHBOARD_FRONTEND=OFF
2024-06-12T09:53:15.575Z
<Leonid Usov> uff.. Ok, yeah, it’s a mess.
Sorry, I don’t have a recipe for this handy.

I just double - checked by environment, and I indeed have python 3.10. I have confused this requirement with the teuthology, which does need 3.12.
2024-06-12T09:54:55.055Z
<Leonid Usov> I looked again at the original issue, and I see that the problem there was with it unable to find the library  dirs `missing: Python3_LIBRARY Python3_INCLUDE_DIR`
2024-06-12T09:55:43.241Z
<Leonid Usov> so, apologies, you’ll have to go back to 3.10, and then let’s help it find the python libraries by providing the `-DPython3_ROOT=/path/to/python`
2024-06-12T09:55:51.593Z
<Leonid Usov> so, apologies, you’ll have to go back to 3.10, and then let’s help it find the python libraries by providing the `-DPython3_ROOT=/path/to/python` to the do_cmake
2024-06-12T09:56:56.472Z
<Leonid Usov> the `path/to/python` should point to a directory that contains `include` and `lib` subfolders with the required python artifacts
2024-06-12T10:42:06.564Z
<Leonid Usov> did it work?
2024-06-12T15:27:48.664Z
<Casey Bodley> weekly rgw meeting starting soon in [ <https://pad.ceph.com/p/rgw-weekly](https://meet.google.com/oky-gdaz-ror> )
2024-06-12T15:37:04.942Z
<Casey Bodley> rgw meeting ended with no discussion topics

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