mirror of
https://github.com/ceph/ceph
synced 2024-12-25 04:43:17 +00:00
8addb35987
There are two problems: 1) The librocksdb does not use the built liburing if present. 2) You cannot turn off rocksdb's use of liburing with WITH_LIBURING=OFF. This is to fix errors like: FAILED: bin/ceph_test_keyvaluedb_iterators : && /opt/rh/gcc-toolset-11/root/usr/bin/g++ -Og -g -rdynamic -pie src/test/ObjectMap/CMakeFiles/ceph_test_keyvaluedb_iterators.dir/test_keyvaluedb_iterators.cc.o src/test/ObjectMap/CMakeFiles/ceph_test_keyvaluedb_iterators.dir/KeyValueDBMemory.cc.o -o bin/ceph_test_keyvaluedb_iterators -Wl,-rpath,/home/pdonnell/scratch/build/lib lib/libos.a lib/libgmock_maind.a lib/libgmockd. a lib/libgtestd.a -lpthread -ldl lib/libglobal.a -ldl /usr/lib64/librt.so -lresolv -ldl lib/libblk.a /lib64/libaio.so src/liburing/src/liburing.a lib/libkv.a lib/libheap_profiler.a /lib64/libtcmalloc.so src/rocksdb/librocksdb.a /lib64/libsnappy.so /usr/lib64/liblz4.so /usr/lib64/libz.so /usr/lib64/libfuse.so lib/libceph-common.so.2 src/opentelemetry-cpp/sdk/src/trace/libopentelemetry_trace.a src/opentelemetry-cpp/sdk/src/resource/libopentelemetry_resources.a src/opentelemetry-cpp/sdk/src/common/libopentelemetry_common.a src/opentelemetry-cpp/exporters/jaeger/libopentelemetry_exporter_jaeger_trace.a src/opentelemetry-cpp/ext/src/http/client/curl/libopentelemetry_http_client_curl.a /usr/lib64/libcurl.so /usr/lib64/libthrift.so lib/libjson_spirit.a lib/libcommon_utf8.a lib/liberasure_code.a lib/libextblkdev.a -lcap boost/lib/libboost_thread.a boost/lib/libboost_chrono.a boost/lib/libboost_atomic.a boost/lib/libboost_system.a boost/lib/libboost_random.a boost/lib/libboost_program_options.a boost/lib/libboost_date_time.a boost/lib/libboost_iostreams.a boost/lib/libboost_regex.a lib/libfmtd.a /usr/lib64/libblkid.so -lpthread /usr/lib64/libcrypto.so /usr/lib64/libudev.so /usr/lib64/libz.so -ldl -lresolv -Wl,--as-needed -latomic && : /opt/rh/gcc-toolset-11/root/usr/bin/ld: src/rocksdb/librocksdb.a(fs_posix.cc.o): in function `io_uring_wait_cqe_nr': /home/pdonnell/scratch/build/src/liburing/src/include/liburing.h:494: undefined reference to `__io_uring_get_cqe' /opt/rh/gcc-toolset-11/root/usr/bin/ld: src/rocksdb/librocksdb.a(fs_posix.cc.o): in function `rocksdb::(anonymous namespace)::PosixFileSystem::AbortIO(std::vector<void*, std::allocator<void*> >&)': /home/pdonnell/ceph/src/rocksdb/env/fs_posix.cc:1125: undefined reference to `io_uring_get_sqe' /opt/rh/gcc-toolset-11/root/usr/bin/ld: /home/pdonnell/ceph/src/rocksdb/env/fs_posix.cc:1134: undefined reference to `io_uring_submit' /opt/rh/gcc-toolset-11/root/usr/bin/ld: src/rocksdb/librocksdb.a(fs_posix.cc.o): in function `rocksdb::CreateIOUring()': /home/pdonnell/ceph/src/rocksdb/env/io_posix.h:272: undefined reference to `io_uring_queue_init' /opt/rh/gcc-toolset-11/root/usr/bin/ld: src/rocksdb/librocksdb.a(io_posix.cc.o): in function `io_uring_wait_cqe_nr': /home/pdonnell/scratch/build/src/liburing/src/include/liburing.h:494: undefined reference to `__io_uring_get_cqe' /opt/rh/gcc-toolset-11/root/usr/bin/ld: src/rocksdb/librocksdb.a(io_posix.cc.o): in function `rocksdb::PosixRandomAccessFile::MultiRead(rocksdb::FSReadRequest*, unsigned long, rocksdb::IOOptions const&, rocksdb::IODebugContext*)': /home/pdonnell/ceph/src/rocksdb/env/io_posix.cc:674: undefined reference to `io_uring_get_sqe' /opt/rh/gcc-toolset-11/root/usr/bin/ld: /home/pdonnell/ceph/src/rocksdb/env/io_posix.cc:684: undefined reference to `io_uring_submit_and_wait' /opt/rh/gcc-toolset-11/root/usr/bin/ld: src/rocksdb/librocksdb.a(io_posix.cc.o): in function `rocksdb::PosixRandomAccessFile::ReadAsync(rocksdb::FSReadRequest&, rocksdb::IOOptions const&, std::function<void (rocksdb::FSReadRequest const&, void*)>, void*, void**, std::function<void (void*)>*, rocksdb::IODebugContext*)': /home/pdonnell/ceph/src/rocksdb/env/io_posix.cc:901: undefined reference to `io_uring_get_sqe' /opt/rh/gcc-toolset-11/root/usr/bin/ld: /home/pdonnell/ceph/src/rocksdb/env/io_posix.cc:910: undefined reference to `io_uring_submit' collect2: error: ld returned 1 exit status Fixes: https://tracker.ceph.com/issues/63218 Signed-off-by: Patrick Donnelly <pdonnell@redhat.com> |
||
---|---|---|
.. | ||
FindPython | ||
AddCephTest.cmake | ||
BuildArrow.cmake | ||
BuildBoost.cmake | ||
Buildc-ares.cmake | ||
BuildDPDK.cmake | ||
BuildFIO.cmake | ||
BuildOpentelemetry.cmake | ||
Buildpmdk.cmake | ||
BuildRocksDB.cmake | ||
BuildSPDK.cmake | ||
BuildUBBD.cmake | ||
Builduring.cmake | ||
BuildUtf8proc.cmake | ||
BuildZstd.cmake | ||
CephCheck_link.c | ||
CephCheck_link.map | ||
CephChecks.cmake | ||
CheckCxxAtomic.cmake | ||
CheckNasm.cmake | ||
CTags.cmake | ||
Distutils.cmake | ||
Findaio.cmake | ||
FindArrow.cmake | ||
Findbabeltrace.cmake | ||
FindBacktrace.cmake | ||
Findblkid.cmake | ||
FindBoost.cmake | ||
Findc-ares.cmake | ||
FindCUnit.cmake | ||
FindCython.cmake | ||
FindDAOS.cmake | ||
Finddaxctl.cmake | ||
Finddml.cmake | ||
Finddpdk.cmake | ||
Findfmt.cmake | ||
FindFUSE.cmake | ||
FindGMock.cmake | ||
Findgperftools.cmake | ||
FindGSSApi.cmake | ||
FindJeMalloc.cmake | ||
Findkeyutils.cmake | ||
Findlibcryptsetup.cmake | ||
FindLinuxZNS.cmake | ||
FindLMDB.cmake | ||
FindLTTngUST.cmake | ||
FindLZ4.cmake | ||
FindMake.cmake | ||
Findmotr.cmake | ||
Findndctl.cmake | ||
Findnl.cmake | ||
FindNUMA.cmake | ||
FindOATH.cmake | ||
FindOpenLDAP.cmake | ||
FindParquet.cmake | ||
Findpmdk.cmake | ||
FindPython3.cmake | ||
FindQatDrv.cmake | ||
Findqatzip.cmake | ||
FindRabbitMQ.cmake | ||
FindRDKafka.cmake | ||
Findrdmacm.cmake | ||
FindRocksDB.cmake | ||
FindSanitizers.cmake | ||
Findsnappy.cmake | ||
FindSQLite3.cmake | ||
FindStdFilesystem_test.cc | ||
FindStdFilesystem.cmake | ||
Findthrift.cmake | ||
Findudev.cmake | ||
Finduring.cmake | ||
Findutf8proc.cmake | ||
Finduuid.cmake | ||
Findverbs.cmake | ||
Findxfs.cmake | ||
Findyaml-cpp.cmake | ||
Findzbd.cmake | ||
Findzfs.cmake | ||
FindZstd.cmake | ||
GetGitRevisionDescription.cmake | ||
GetGitRevisionDescription.cmake.in | ||
LimitJobs.cmake | ||
patch-dpdk-conf.sh | ||
SIMDExt.cmake |