Bug 1218111

Summary: ceph: fails to build with cmake 3.28
Product: [openSUSE] openSUSE Tumbleweed Reporter: Ana Guerrero <ana.guerrero>
Component: OtherAssignee: Dominique Leuenberger <dimstar>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: dimstar, foss
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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