Bug 1218111 - ceph: fails to build with cmake 3.28
Summary: ceph: fails to build with cmake 3.28
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Dominique Leuenberger
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-15 15:19 UTC by Ana Guerrero
Modified: 2023-12-20 13:56 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ana Guerrero 2023-12-15 15:19:17 UTC
ceph is failing to build with newer cmake 3.28
See https://build.opensuse.org/request/show/1133366


[   71s] -- Found Curses: /usr/lib64/libncurses.so  
[   71s] -- Found nl: /usr/lib64/libnl-3.so  
[   71s] -- Checking for module 'libcap-ng'
[   71s] --   Found libcap-ng, version 0.8.3
[   71s] -- Setting civetweb to use OPENSSL >= 1.1
[   71s] -- Found the following ICU libraries:
[   71s] --   uc (required): /usr/lib64/libicuuc.so
[   71s] -- Found ICU: /usr/include (found suitable version "73.2", minimum required is "52.0") 
[   71s] -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
[   71s] CMake Error at cmake/modules/CTags.cmake:19 (string):
[   71s]   string sub-command REPLACE requires at least four arguments.
[   71s] Call Stack (most recent call first):
[   71s]   CMakeLists.txt:714 (add_tags)
[   71s] 
[   71s] 
[   71s] CMake Error at cmake/modules/CTags.cmake:22 (string):
[   71s]   string sub-command REPLACE requires at least four arguments.
[   71s] Call Stack (most recent call first):
[   71s]   CMakeLists.txt:714 (add_tags)
[   71s] 
[   71s] 
[   71s] -- exclude following files under src: *.js;*.css;.tox;python-common/build
[   71s] -- Configuring incomplete, errors occurred!
[   71s] error: Bad exit status from /var/tmp/rpm-tmp.WWPOhI (%build)
Comment 1 Christoph G 2023-12-18 06:53:48 UTC
Would be great to get a Git bisect to pinpoint the CMake change that caused this error.
From the error message, I would guess it is a problem in the Ceph code.

I checked both issue trackers for CMake and Ceph and nobody else reported this. Strange. Needs more investigations.
Comment 2 Dominique Leuenberger 2023-12-19 12:33:25 UTC
It's a combination of things that need to happen:

* cmake 3.28 or newer (not many distros have that yet I guess)
* command 'git' not existing (i.e building from tarball in clean build env; excludes all ceph devs from seeing this)


https://github.com/ceph/ceph/pull/54963
Comment 3 Dominique Leuenberger 2023-12-20 13:56:06 UTC
(In reply to Dominique Leuenberger from comment #2)
> It's a combination of things that need to happen:
> 
> * cmake 3.28 or newer (not many distros have that yet I guess)
> * command 'git' not existing (i.e building from tarball in clean build env;
> excludes all ceph devs from seeing this)
> 
> 
> https://github.com/ceph/ceph/pull/54963

Accepted by devel prj and forwarded to Facrory