Giter Site home page Giter Site logo

Comments (2)

xiedeyantu avatar xiedeyantu commented on April 20, 2024

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.

xiedeyantu avatar xiedeyantu commented on April 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.