CacheLib icon indicating copy to clipboard operation
CacheLib copied to clipboard

Some of shared libraries are not linked to unit test binaries

Open rainjuns opened this issue 1 year ago • 0 comments

Describe the bug Some of shared libraries are not linked to unit test binaries (Libraries that are not linked still can be found in the directory, opt/cachelib/lib).

To Reproduce

unit test binaries are installed from the latest commit of CacheLib except that submodules are not the latest version (due to compilation issues).

git submodule
 d2d55edacf92514d8c961722251d02a4c621b365 cachelib/external/fbthrift (v2020.08.31.00-15251-gd2d55edacf)
1183a88c5c63a7e097da8f20b9d09565044c2d8f cachelib/external/fizz (v2020.08.31.00-3010-g1183a88c)
 be091f7bae6892498b54c048597eddf3d81f878a cachelib/external/folly (v2020.08.31.00-4389-gbe091f7ba)
 e1675e2641fbea553466864cc84e625b933229c7 cachelib/external/mvfst (v2024.07.29.00-9-ge1675e264)
35164889d4094ae5fe7579c94145e9ae6713f26a cachelib/external/wangle (v2020.08.31.00-3882-g35164889)

Expected behavior Every library must be linked correctly.

Screenshots

./navy-test-BigHashTest
./navy-test-BigHashTest: error while loading shared libraries: libfolly_exception_tracer_base.so.0.58.0-dev: cannot open shared object file: No such file or directory
ldd navy-test-BigHashTest
	linux-vdso.so.1 (0x00007ffdeb9f6000)
	libthriftcpp2.so.1.0.0 => /root/cachelib_test/CacheLib/opt/cachelib/tests/./../lib/libthriftcpp2.so.1.0.0 (0x00007fed132ce000)
	libthriftmetadata.so.1.0.0 => /root/cachelib_test/CacheLib/opt/cachelib/tests/./../lib/libthriftmetadata.so.1.0.0 (0x00007fed13235000)
	libthriftprotocol.so.1.0.0 => /root/cachelib_test/CacheLib/opt/cachelib/tests/./../lib/libthriftprotocol.so.1.0.0 (0x00007fed131ab000)
	libfolly_exception_tracer.so.0.58.0-dev => /root/cachelib_test/CacheLib/opt/cachelib/tests/./../lib/libfolly_exception_tracer.so.0.58.0-dev (0x00007fed13192000)
	libfolly.so.0.58.0-dev => /root/cachelib_test/CacheLib/opt/cachelib/tests/./../lib/libfolly.so.0.58.0-dev (0x00007fed12b92000)
	libfmt.so.10 => /root/cachelib_test/CacheLib/opt/cachelib/tests/./../lib/libfmt.so.10 (0x00007fed12b6e000)
	libglog.so.0 => /root/cachelib_test/CacheLib/opt/cachelib/tests/./../lib/libglog.so.0 (0x00007fed12b38000)
	libboost_regex.so.1.74.0 => /lib/x86_64-linux-gnu/libboost_regex.so.1.74.0 (0x00007fed12a3a000)
	libunwind.so.8 => /lib/x86_64-linux-gnu/libunwind.so.8 (0x00007fed12a1f000)
	libgtest_main.so.1.15.2 => /root/cachelib_test/CacheLib/opt/cachelib/tests/./../lib/libgtest_main.so.1.15.2 (0x00007fed12a1a000)
	libgmock.so.1.15.2 => /root/cachelib_test/CacheLib/opt/cachelib/tests/./../lib/libgmock.so.1.15.2 (0x00007fed129f9000)
	libgtest.so.1.15.2 => /root/cachelib_test/CacheLib/opt/cachelib/tests/./../lib/libgtest.so.1.15.2 (0x00007fed12980000)
	libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fed12754000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fed1266d000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fed12445000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fed13929000)
	libthriftanyrep.so => /root/cachelib_test/CacheLib/opt/cachelib/lib/libthriftanyrep.so (0x00007fed12430000)
	libserverdbginfo.so.1.0.0 => /root/cachelib_test/CacheLib/opt/cachelib/lib/libserverdbginfo.so.1.0.0 (0x00007fed123ff000)
	libthrifttype.so.1.0.0 => /root/cachelib_test/CacheLib/opt/cachelib/lib/libthrifttype.so.1.0.0 (0x00007fed123db000)
	libasync.so.1.0.0 => /root/cachelib_test/CacheLib/opt/cachelib/lib/libasync.so.1.0.0 (0x00007fed123a6000)
	libtransport.so.1.0.0 => /root/cachelib_test/CacheLib/opt/cachelib/lib/libtransport.so.1.0.0 (0x00007fed1230b000)
	librpcmetadata.so.1.0.0 => /root/cachelib_test/CacheLib/opt/cachelib/lib/librpcmetadata.so.1.0.0 (0x00007fed1224a000)
	libconcurrency.so.1.0.0 => /root/cachelib_test/CacheLib/opt/cachelib/lib/libconcurrency.so.1.0.0 (0x00007fed121da000)
	libwangle.so.1.0.0 => /root/cachelib_test/CacheLib/opt/cachelib/lib/libwangle.so.1.0.0 (0x00007fed120cc000)
	libfizz.so.1.0.0 => /root/cachelib_test/CacheLib/opt/cachelib/lib/libfizz.so.1.0.0 (0x00007fed11f36000)
	libthrift-core.so.1.0.0 => /root/cachelib_test/CacheLib/opt/cachelib/lib/libthrift-core.so.1.0.0 (0x00007fed11f2e000)
	libthrifttyperep.so.1.0.0 => /root/cachelib_test/CacheLib/opt/cachelib/lib/libthrifttyperep.so.1.0.0 (0x00007fed11f0f000)
	libgflags.so.2.2 => /root/cachelib_test/CacheLib/opt/cachelib/lib/libgflags.so.2.2 (0x00007fed11ee8000)
	libboost_context.so.1.74.0 => /lib/x86_64-linux-gnu/libboost_context.so.1.74.0 (0x00007fed11ee1000)
	libssl.so.3 => /lib/x86_64-linux-gnu/libssl.so.3 (0x00007fed11e3d000)
	libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007fed119f9000)
	libdouble-conversion.so.3 => /lib/x86_64-linux-gnu/libdouble-conversion.so.3 (0x00007fed119e4000)
	libfolly_exception_tracer_base.so.0.58.0-dev => not found
	libboost_filesystem.so.1.74.0 => /lib/x86_64-linux-gnu/libboost_filesystem.so.1.74.0 (0x00007fed119c2000)
	libboost_program_options.so.1.74.0 => /lib/x86_64-linux-gnu/libboost_program_options.so.1.74.0 (0x00007fed1197d000)
	libevent-2.1.so.7 => /lib/x86_64-linux-gnu/libevent-2.1.so.7 (0x00007fed11929000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fed1190d000)
	libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007fed118fa000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007fed118cf000)
	liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007fed118ad000)
	libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007fed117de000)
	libsnappy.so.1 => /lib/x86_64-linux-gnu/libsnappy.so.1 (0x00007fed117d4000)
	libaio.so.1 => /lib/x86_64-linux-gnu/libaio.so.1 (0x00007fed117cf000)
	liburing.so.2 => /lib/x86_64-linux-gnu/liburing.so.2 (0x00007fed117c7000)
	libsodium.so.23 => /lib/x86_64-linux-gnu/libsodium.so.23 (0x00007fed1176f000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fed1174d000)
	libicui18n.so.70 => /lib/x86_64-linux-gnu/libicui18n.so.70 (0x00007fed1141e000)
	libicuuc.so.70 => /lib/x86_64-linux-gnu/libicuuc.so.70 (0x00007fed11223000)
	libruntime.so => /root/cachelib_test/CacheLib/opt/cachelib/lib/libruntime.so (0x00007fed1121e000)
	libicudata.so.70 => /lib/x86_64-linux-gnu/libicudata.so.70 (0x00007fed0f5fe000)
ls -alh opt/cachelib/lib/libfolly_exception_tracer_base.so.0.58.0-dev
Permissions Size User Date Modified Name
.rw-r--r--  422k root 16 Sep 15:17  opt/cachelib/lib/libfolly_exception_tracer_base.so.0.58.0-dev

Desktop (please complete the following information):

  • OS: Ubuntu
  • Version: 22.04

Additional context The same thing also happens in other unit test binaries.

rainjuns avatar Sep 16 '24 06:09 rainjuns