[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 ci sta già lavorando.
Dal 2/11/2026.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- android, cmake
- Ambito
- build-system
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 2.3k
- Fork
- 311
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di android/ndk
-
[BUG] simpleperf associates wrong header file for lambdaForse già presa @Jake-The-Human l’ha presa 24 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 40/100
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 47/100
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
bluesky-social/social-app#12545 ·
I maintainer di solito rispondono entro 1 giorno
-
refactor topic-architecture topic-ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
XCSoar/XCSoar#3547 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
manjaro-sway/manjaro-sway#1079 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
linux-test-project/lcov#579 ·
I maintainer di solito rispondono entro 1 giorno
-
compiler: the island_chunks_not_emitted report gives a count but not which islands were skippedApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100