Comments (2)
I use clang-11 and clang-12 build cachelib, the following error was:
/usr/bin/ld: DWARF error: could not find variable specification at offset ...
from cachelib.
more msg:
[ 99%] Linking CXX executable cachebench
cd /code/CacheLib/build-cachelib/cachebench && /usr/bin/cmake -E cmake_link_script CMakeFiles/cachebench.dir/link.txt --verbose=YES
/code/clang-12/bin/clang++ -g CMakeFiles/cachebench.dir/main.cpp.o -o cachebench -Wl,-rpath,"$ORIGIN/../lib:$ORIGIN/../lib64:$ORIGIN/../lib-os" libcachelib_cachebench.a ../datatype/libcachelib_datatype.a ../allocator/libcachelib_allocator.a ../navy/libcachelib_navy.a ../shm/libcachelib_shm.a ../common/libcachelib_common.a /code/CacheLib/opt/cachelib/lib/libthriftcpp2.so.1.0.0 /code/CacheLib/opt/cachelib/lib/libthriftfrozen2.so.1.0.0 /code/CacheLib/opt/cachelib/lib/libthriftmetadata.so.1.0.0 /code/CacheLib/opt/cachelib/lib/libthrifttype.so.1.0.0 /code/CacheLib/opt/cachelib/lib/libthriftprotocol.so.1.0.0 /code/CacheLib/opt/cachelib/lib/libasync.so.1.0.0 /code/CacheLib/opt/cachelib/lib/libwangle.so.1.0.0 /code/CacheLib/opt/cachelib/lib/libfizz.so.1.0.0 /usr/lib64/libsodium.so /usr/lib64/librt.so /code/CacheLib/opt/cachelib/lib/libtransport.so.1.0.0 /code/CacheLib/opt/cachelib/lib/librpcmetadata.so.1.0.0 /code/CacheLib/opt/cachelib/lib/libthrift-core.so.1.0.0 /code/CacheLib/opt/cachelib/lib/libconcurrency.so.1.0.0 /usr/lib64/libz.so /code/CacheLib/opt/cachelib/lib/libfollybenchmark.so.0.58.0-dev /code/CacheLib/opt/cachelib/lib/libfolly_exception_counter.so.0.58.0-dev /code/CacheLib/opt/cachelib/lib/libfolly_exception_tracer.so.0.58.0-dev /code/CacheLib/opt/cachelib/lib/libfolly_exception_tracer_base.so.0.58.0-dev /code/CacheLib/opt/cachelib/lib/libfolly.so.0.58.0-dev -pthread /code/CacheLib/opt/cachelib/lib64/libfmtd.so.8.0.1 -Wl,--as-needed /code/CacheLib/opt/cachelib/lib/libgflags_debug.so.2.2.2 /usr/lib64/libboost_context.so /usr/lib64/libboost_filesystem.so /usr/lib64/libboost_program_options.so /usr/lib64/libboost_regex.so /usr/lib64/libboost_system.so -lboost_thread /usr/lib64/libboost_chrono.so /usr/lib64/libboost_date_time.so /usr/lib64/libboost_atomic.so /code/CacheLib/opt/cachelib/lib64/libglogd.so /usr/lib64/libevent.so /usr/lib64/libdouble-conversion.so /usr/lib64/libz.so /usr/lib64/libssl.so /usr/lib64/libcrypto.so /usr/lib64/libbz2.so /usr/lib64/liblzma.so /usr/lib64/liblz4.so /code/CacheLib/opt/cachelib/lib64/libzstd.so /usr/lib64/libsnappy.so /usr/lib64/libdwarf.so /usr/lib64/libiberty.a /usr/lib64/libaio.so /usr/lib64/libsodium.so -ldl /usr/lib64/libunwind.so -lstdc++fs /code/CacheLib/opt/cachelib/lib/libgflags_debug.so.2.2.2 -lpthread
/opt/rh/gcc-toolset-10/root/usr/bin/ld: /opt/rh/gcc-toolset-10/root/usr/bin/ld: DWARF error: could not find variable specification at offset f1456
/opt/rh/gcc-toolset-10/root/usr/bin/ld: DWARF error: could not find variable specification at offset 1214bf
/opt/rh/gcc-toolset-10/root/usr/bin/ld: DWARF error: could not find variable specification at offset f4776
/opt/rh/gcc-toolset-10/root/usr/bin/ld: DWARF error: could not find variable specification at offset 121ad2
/opt/rh/gcc-toolset-10/root/usr/bin/ld: DWARF error: could not find variable specification at offset 160630
/opt/rh/gcc-toolset-10/root/usr/bin/ld: DWARF error: could not find variable specification at offset f849d
/opt/rh/gcc-toolset-10/root/usr/bin/ld: DWARF error: could not find variable specification at offset fe75f
/opt/rh/gcc-toolset-10/root/usr/bin/ld: DWARF error: could not find variable specification at offset fec12
/opt/rh/gcc-toolset-10/root/usr/bin/ld: DWARF error: could not find variable specification at offset 10d040
/opt/rh/gcc-toolset-10/root/usr/bin/ld: DWARF error: could not find variable specification at offset 111cb8
/opt/rh/gcc-toolset-10/root/usr/bin/ld: DWARF error: could not find variable specification at offset 111d5e
../allocator/libcachelib_allocator.a(CacheAllocator.cpp.o): in function std::__atomic_base<unsigned int>::is_lock_free() const': /usr/lib/gcc/x86_64-redhat-linux/8/../../../../include/c++/8/bits/atomic_base.h:354: undefined reference to
__atomic_is_lock_free'
/opt/rh/gcc-toolset-10/root/usr/bin/ld: ../allocator/libcachelib_allocator.a(CacheAllocator.cpp.o): in function std::__atomic_base<long>::is_lock_free() const': /usr/lib/gcc/x86_64-redhat-linux/8/../../../../include/c++/8/bits/atomic_base.h:354: undefined reference to
__atomic_is_lock_free'
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [cachebench/CMakeFiles/cachebench.dir/build.make:151: cachebench/cachebench] Error 1
make[2]: Leaving directory '/code/CacheLib/build-cachelib'
make[1]: *** [CMakeFiles/Makefile2:616: cachebench/CMakeFiles/cachebench.dir/all] Error 2
make[1]: Leaving directory '/code/CacheLib/build-cachelib'
make: *** [Makefile:136: all] Error 2
build-package.sh: error: make failed
build.sh: error: failed to build cachelib
from cachelib.
Related Issues (20)
- Fail to build dependency fbthrift (with errors reported in fmt) HOT 5
- make clean option for contrib/build.sh HOT 1
- build error about fizz on ubuntu22.04 HOT 2
- CDN trace expected behavior HOT 2
- Enable FDP for CacheBench HOT 26
- qDepth Support for NVM Cache HOT 6
- Questions about trace files when running cachebench HOT 2
- Running simple-cache-example gives an error, flag 'v' was defined more than once HOT 6
- OSS build broken as of May, 2024 -> PRs are all blocked HOT 7
- No build support for Fedora37 OS HOT 4
- failed to build CacheLib following document HOT 2
- Build fails on debian-10 HOT 2
- Segmentation fault while fetching refcount HOT 2
- Minimum Limit For Cache Allocation? HOT 1
- build failed when building dependency 'fbthrift' HOT 3
- Build issue with CacheLib with missing source files HOT 3
- [Seeking Volunteers] Add new builds to CacheLib HOT 2
- Build is failing with error: ‘fmt::v10::detail::type_is_unformattable_for<const facebook::cachelib::navy::Status, char> _’ has incomplete type 1600 | type_is_unformattable_for<T, typename Context::char_type> _; | ^ HOT 4
- NavySetup should not involve the MockDevice
- How to configure folly for logging CacheLib
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cachelib.