google / fleetbench

Benchmarking suite for Google workloads
Apache License 2.0
116 stars 10 forks source link

compile fleetbench/tcmalloc:empirical_driver failed #17

Closed lifengxiang1025 closed 1 year ago

lifengxiang1025 commented 1 year ago

When I run: bazel run --config=opt fleetbench/tcmalloc:empirical_driver --config=clang. It causes error like

ld.lld:_ error: undefined symbol: std::filesystem::cxx11::directory_iterator::directory_iterator(std::filesystem::cxx11::path const&, std::filesystem::directory_options, std::error_code*) >>> referenced by common.cc >>> bazel-out/k8-opt-clang/bin/fleetbench/common/_objs/common/common.o:(fleetbench::GetMatchingFiles[abi:cxx11](std::basic_string_view<char, std::char_traits>, std::basic_string_view<char, `std::char_traits>))

It seems to need to add ldflags -lstdc++fs

rjogrady commented 1 year ago

You likely need to install a more recent version of clang. Fleetbench recommends LLVM 14 or higher.