lingvo icon indicating copy to clipboard operation
lingvo copied to clipboard

Failed to compile with bazel-7.2.0 (on arm64)

Open DwarKapex opened this issue 8 months ago • 1 comments

We updated the bazel version recently (from 7.1.2 to 7.2.0) and it started failing to build from source with the linker issue:

#13 357.0 [62 / 67] Compiling third_party/icu/data/conversion_data.c; 0s processwrapper-sandbox ... (2 actions running)
#13 358.8 Analyzing: 539 targets (130 packages loaded, 9117 targets configured)
#13 358.8 [64 / 67] [Prepa] Linking third_party/icu/data/libconversion_data.lo ... (3 actions, 0 running)
#13 358.9 ERROR: /opt/lingvo/third_party/icu/data/BUILD.bazel:37:11: Linking third_party/icu/data/libconversion_data.so failed: (Exit 1): gcc failed: error executing CppLink command (from target //third_party/icu/data:conversion_data) /usr/bin/gcc @bazel-out/aarch64-opt/bin/third_party/icu/data/libconversion_data.so-2.params
#13 358.9 
#13 358.9 Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
#13 358.9 ld.lld: error: unable to find library -lrt -lm
#

DwarKapex avatar Jun 13 '24 05:06 DwarKapex