Failed to compile with bazel-7.2.0 (on arm64)

オープン
#359 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
c, python
領域
build-system

調査の方向性

The failure occurs while linking third_party/icu/data:conversion_data, with the rule in third_party/icu/data/BUILD.bazel. Start by reproducing the source build on arm64 with Bazel 7.2.0 and inspect the linker command and library availability for -lrt and -lm; compare against the previous Bazel version. Done means the build succeeds on arm64 with Bazel 7.2.0.

索引モデルが issue の本文から書いたものです。

説明

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
#
主要言語
Python
スター
2.9k
フォーク
452
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tensorflow/lingvo のほかの issue

tensorflow/lingvo の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。