[BUG] error: PCH file was compiled for the target 'aarch64-unknown-linux-android21' but the current translation unit is being compiled for target 'aarch64-none-linux-android21'
@Sharjeel-Khan がすでに取り組んでいます。
2026年11月2日 から。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- android, cmake
- 領域
- build-system
調査の方向性
Start by reproducing the reported target mismatch with the Android NDK CMake toolchain and clang-scan-deps, comparing the injected aarch64-none-linux-android target with the user-supplied aarch64-linux-android21 target. The report does not identify a source file or test, so first locate how the toolchain passes target flags and how dependency scanning consumes them. Done means the supported NDK builds successfully in this setup without the PCH target error.
索引モデルが issue の本文から書いたものです。
説明
Description
Android NDK Toolchain cmake has set:
set(ANDROID_LLVM_TRIPLE aarch64-none-linux-android)
set(ANDROID_LLVM_TRIPLE x86_64-none-linux-android)
I don't known why use -none- rather than -unknown-
CMake will automatically inject the --taregt=$ANDROID_LLVM_TRIPLE parameter to clang.
If user also pass --taregt=aarch64-linux-android21 and use with clang-scan-deps, it will report this error.
clang treat --taregt=aarch64-linux-android21 as --taregt=aarch64-unknown-linux-android21 rather than --taregt=aarch64-none-linux-android21
I am using a supported NDK
- I have checked and the NDK I'm using is currently supported
Affected versions
r27, r29, r28, r30
- 主要言語
- 言語のデータがありません
- スター
- 2.3k
- フォーク
- 311
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
android/ndk のほかの issue
-
[BUG] simpleperf associates wrong header file for lambda対応中かも @Jake-The-Human が 24 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 40/100
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 47/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
bluesky-social/social-app#12545 ·
メンテナーはふだん 1 日以内に返信
-
refactor topic-architecture topic-ui
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
XCSoar/XCSoar#3547 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
manjaro-sway/manjaro-sway#1079 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
linux-test-project/lcov#579 ·
メンテナーはふだん 1 日以内に返信
-
compiler: the island_chunks_not_emitted report gives a count but not which islands were skippedオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100