Project

General

Profile

Actions

Bug #54266

open

rgw: cmake configure error on fedora-37/rawhide

Added by Kaleb KEITHLEY about 2 years ago. Updated over 1 year ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Target version:
% Done:

0%

Source:
Community (dev)
Tags:
dbstore backport_processed
Backport:
quincy
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

see https://kojipkgs.fedoraproject.org//work/tasks/6624/82706624/build.log, excerpted below

...

CMake Error: The inter-target dependency graph contains the following strongly connected component (cycle):
"rgw_common" of type STATIC_LIBRARY
depends on "dbstore" (weak)
depends on "sqlite_db" (weak)
"dbstore" of type SHARED_LIBRARY
depends on "rgw_common" (weak)
depends on "sqlite_db" (weak)
"sqlite_db" of type SHARED_LIBRARY
depends on "rgw_common" (weak)
depends on "dbstore" (weak)
At least one of these targets is not a STATIC_LIBRARY. Cyclic dependencies are allowed only among static libraries.
CMake Generate step failed. Build files cannot be regenerated correctly.
...

ostensibly fixed with the following patch (I will send a PR):

--- ceph-17.0.0-10335-gfd206722/src/rgw/store/dbstore/CMakeLists.txt.orig 2022-02-12 08:17:16.038116513 -0500
+++ ceph-17.0.0-10335-gfd206722/src/rgw/store/dbstore/CMakeLists.txt 2022-02-12 08:40:43.564440428 -0500
@ -47,7 +47,7 @
endif()

include_directories(${CMAKE_INCLUDE_DIR})
-add_library(dbstore ${dbstore_mgr_srcs})
+add_library(dbstore STATIC ${dbstore_mgr_srcs})
target_link_libraries(dbstore ${CMAKE_LINK_LIBRARIES})
  1. testing purpose
    --- ceph-17.0.0-10335-gfd206722/src/rgw/store/dbstore/sqlite/CMakeLists.txt.orig2022-02-12 08:18:04.843227147 -0500
    +++ ceph-17.0.0-10335-gfd206722/src/rgw/store/dbstore/sqlite/CMakeLists.txt 2022-02-12 08:18:17.871989500 -0500
    @ -12,5 +12,5 @
    set(SQLITE_COMPILE_FLAGS "-DSQLITE_THREADSAFE=1")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SQLITE_COMPILE_FLAGS}")

-add_library(sqlite_db ${sqlite_db_srcs})
+add_library(sqlite_db STATIC ${sqlite_db_srcs})
target_link_libraries(sqlite_db sqlite3 dbstore_lib rgw_common)


Related issues 1 (1 open0 closed)

Copied to rgw - Backport #54464: quincy: rgw: cmake configure error on fedora-37/rawhideNewActions
Actions #2

Updated by Casey Bodley about 2 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 45022
Actions #3

Updated by Casey Bodley about 2 years ago

  • Status changed from Fix Under Review to Resolved
Actions #4

Updated by Casey Bodley about 2 years ago

  • Status changed from Resolved to Pending Backport
  • Tags set to dbstore
  • Backport set to quincy
Actions #5

Updated by Backport Bot about 2 years ago

  • Copied to Backport #54464: quincy: rgw: cmake configure error on fedora-37/rawhide added
Actions #6

Updated by Backport Bot over 1 year ago

  • Tags changed from dbstore to dbstore backport_processed
Actions

Also available in: Atom PDF