fix(bazel): test/BUILD.bazel uses darwin_x86_64 instead of darwin condition, breaking //test:butil_unittests on Apple Silicon (darwin_arm64)
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 88/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- cpp
- 領域
- build-system, testing
調査の方向性
test/BUILD.bazelの133~139行付近を読み、Darwin条件をルートのBUILD.bazelにある例と比較してください。Apple Siliconでbazel test //test:butil_unittestsを実行し、Linux専用ソースのコンパイル失敗を再現してください。Darwin条件がIntelとApple Siliconの両方のmacOSでこれらのソースを除外すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
In test/BUILD.bazel (lines 133–139), TEST_BUTIL_SOURCES excludes the Linux-only unit test sources (test_file_util_linux.cc and proc_maps_linux_unittest.cc) using @bazel_tools//tools/osx:darwin_x86_64:
] + select({
"@bazel_tools//tools/osx:darwin_x86_64": [],
"//conditions:default": [
"test_file_util_linux.cc",
"proc_maps_linux_unittest.cc",
],
})
Unlike the root BUILD.bazel (which uses @bazel_tools//src/conditions:darwin at lines 93, 284, and 398 to match both Intel and Apple Silicon macOS), @bazel_tools//tools/osx:darwin_x86_64 only matches Intel macOS (x86_64).
On Apple Silicon (darwin_arm64), running bazel test //test:butil_unittests falls through to "//conditions:default" and attempts to compile test_file_util_linux.cc and proc_maps_linux_unittest.cc (failing on Linux-only headers such as <sys/vfs.h>).
Expected behaviour
test/BUILD.bazel should use @bazel_tools//src/conditions:darwin (consistent with the root BUILD.bazel) so bazel test //test:butil_unittests excludes the Linux-only source files on both darwin_x86_64 and darwin_arm64.
- 主要言語
- C++
- スター
- 17.6k
- フォーク
- 4.2k
- 平均マージ
- 3日 17時間
- マージ済み PR(30日)
- 72
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/brpc のほかの issue
-
endpoint2hostname() prints a byte-swapped port for IPv6 endpoints対応中かも @0z5a が 8 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 2 日以内に返信
-
perf(butil): ARM64 (aarch64) performance and modernisation improvements across atomics, CRC32C, spin-wait hints, and fast timers対応中かも @jimmystewpot が 2 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
メンテナーはふだん 2 日以内に返信
-
file:// naming service takes a comment after the address as the tag対応中かも @0z5a が 8 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
メンテナーはふだん 2 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
メンテナーはふだん 2 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
protocolbuffers/protobuf#31768 ·
メンテナーはふだん 1 日以内に返信
-
Needs: Triage :mag: Platform: Android
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
react/react-native#60167 ·
メンテナーはふだん 2 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
-
tests: ofx_render_test doesn't compile against FFmpeg 4.x (const AVCodec* to av_find_best_stream)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NatronGitHub/openfx-io#221 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
subsurface/subsurface#5145 ·
メンテナーはふだん 2 日以内に返信