bazel-out/k8-opt/bin/external/facebook_folly/_objs/folly/SafeAssert.o:SafeAssert.cpp:function unsigned long folly::to_ascii_with<10ul, folly::to_ascii_alphabet<false>, 20ul>(char (&) [20ul], unsigned long): error: undefined reference to 'folly::detail::to_ascii_powers<10ul, unsigned long>::data'
bazel-out/k8-opt/bin/external/facebook_folly/_objs/folly/SafeAssert.o:SafeAssert.cpp:function unsigned long folly::to_ascii_with<10ul, folly::to_ascii_alphabet<false>, 20ul>(char (&) [20ul], unsigned long): error: undefined reference to 'folly::detail::to_ascii_table<10ul, folly::to_ascii_alphabet<false> >::data'
bazel-out/k8-opt/bin/external/facebook_folly/_objs/folly/SafeAssert.o:SafeAssert.cpp:function unsigned long folly::to_ascii_with<10ul, folly::to_ascii_alphabet<false>, 20ul>(char (&) [20ul], unsigned long): error: undefined reference to 'folly::detail::to_ascii_powers<10ul, unsigned long>::data'
bazel-out/k8-opt/bin/external/facebook_folly/_objs/folly/SafeAssert.o:SafeAssert.cpp:function unsigned long folly::to_ascii_with<10ul, folly::to_ascii_alphabet<false>, 20ul>(char (&) [20ul], unsigned long): error: undefined reference to 'folly::detail::to_ascii_powers<10ul, unsigned long>::data'
bazel-out/k8-opt/bin/external/facebook_folly/_objs/folly/SafeAssert.o:SafeAssert.cpp:function unsigned long folly::to_ascii_with<10ul, folly::to_ascii_alphabet<false>, 20ul>(char (&) [20ul], unsigned long): error: undefined reference to 'folly::detail::to_ascii_powers<10ul, unsigned long>::data'
bazel-out/k8-opt/bin/external/facebook_folly/_objs/folly/SafeAssert.o:SafeAssert.cpp:function unsigned long folly::to_ascii_with<10ul, folly::to_ascii_alphabet<false>, 20ul>(char (&) [20ul], unsigned long): error: undefined reference to 'folly::detail::to_ascii_table<10ul, folly::to_ascii_alphabet<false> >::data'
I've removed folly in my testing for now. But I thought I would open an issue to see if this is a problem others see due to changes with folly, or if it's an issue with my configuration.
BAZEL_CXXOPTS="-std=c++14:-stdlib=libc++:-isystem${LLVM_HDR}/:-isystem${CLANG_HDR}:-isystem${LLVM_HDR}/ext/" BAZEL_LINKOPTS="-v:-stdlib=libc++:-L${LLVM_LIB}:-lc++:-lm:-Wl,-rpath=${LLVM_LIB}" bazel build -c opt --dynamic_mode=off hashtable_benchmarks
I'm using llvm-9 on Ubuntu 20.04 system. Everything is pretty standard so the issue would likely be easy to reproduce.