Bug #54266
openrgw: cmake configure error on fedora-37/rawhide
0%
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})
- 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)
Updated by Kaleb KEITHLEY about 2 years ago
Updated by Casey Bodley about 2 years ago
- Status changed from New to Fix Under Review
- Pull request ID set to 45022
Updated by Casey Bodley about 2 years ago
- Status changed from Fix Under Review to Resolved
Updated by Casey Bodley about 2 years ago
- Status changed from Resolved to Pending Backport
- Tags set to dbstore
- Backport set to quincy
Updated by Backport Bot about 2 years ago
- Copied to Backport #54464: quincy: rgw: cmake configure error on fedora-37/rawhide added
Updated by Backport Bot over 1 year ago
- Tags changed from dbstore to dbstore backport_processed