Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I build cachelib using clang-11? #87

Closed
xiedeyantu opened this issue Dec 3, 2021 · 2 comments
Closed

Can I build cachelib using clang-11? #87

xiedeyantu opened this issue Dec 3, 2021 · 2 comments

Comments

@xiedeyantu
Copy link
Contributor

No description provided.

@xiedeyantu
Copy link
Contributor Author

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 ...

@xiedeyantu
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant