]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: cmake configure error on fedora-37/rawhide 45022/head
authorKaleb S. KEITHLEY <kkeithle@redhat.com>
Mon, 14 Feb 2022 12:42:08 +0000 (07:42 -0500)
committerKaleb S. KEITHLEY <kkeithle@redhat.com>
Mon, 14 Feb 2022 12:42:08 +0000 (07:42 -0500)
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.
...

https://tracker.ceph.com/issues/54266

Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
src/rgw/store/dbstore/CMakeLists.txt
src/rgw/store/dbstore/sqlite/CMakeLists.txt

index 143ede3c094c9e725570714452f975b4585badd2..18e032b73f54fe6bb298410f1a083cec79f26735 100644 (file)
@@ -47,7 +47,7 @@ else()
 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
index cce59b9ec0aa9bfde206ac26beb6644ad348c16e..909765e3058b6fdda7324fc4537527ab9b1e58c7 100644 (file)
@@ -12,5 +12,5 @@ include_directories(${CMAKE_INCLUDE_DIR})
 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)