mold: error: undefined symbol: std::__Cr::thread::hardware_concurrency()
>>> referenced by sysinfo.cc
>>> obj/third_party/abseil-cpp/absl/base/base/sysinfo.o:(void absl::base_internal::CallOnceImpl<absl::base_internal::NumCPUs()::$_0>(std::__Cr::atomic<unsigned int>*, absl::base_internal::SchedulingMode, absl::base_internal::NumCPUs()::$_0&&))
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
This is on x64 Android.
Filed crbug with a mold --repro attachment: https://crbug.com/508678496
Trying to link this executable with mold gives:
It links fine with
lld.This is on x64 Android.