-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Failed compiling Android 14 with HWASan enabled #1903
Comments
#1899 the same issue |
Similar to #1899, re-open with a reproducer if this occurs with the newest AOSP compiler (clang-r487747c) in ToT Android sources. |
@zienn Have you solved this problem yet? |
not yet. I attempted to update clang version to clang-r487747, but this issue still persists and other errors have emerged. And the call stack still print clang-r450784d |
... which means you're not using |
not build from AOSP. Update in the way below. diff --git a/cc/config/global.go b/cc/config/global.go
index e715d98..18b6cfb 100644
--- a/cc/config/global.go
+++ b/cc/config/global.go
@@ -388,9 +388,8 @@
// prebuilts/clang default settings.
ClangDefaultBase = "prebuilts/clang/host"
- // TODO(b/243545528) Match upstream version
- ClangDefaultVersion = "clang-r450784d"
- ClangDefaultShortVersion = "14.0.6"
+ ClangDefaultVersion = "clang-r487747"
+ ClangDefaultShortVersion = "17"
// Directories with warnings from Android.bp files.
WarningAllowedProjects = []string{ |
@zienn I've tried to compile with the clang-r487747, but it seems not available on android U, do you have the same issue with me?(clang-r46 have other module's error) error: prebuilts/clang/host/linux-x86/Android.bp:390:1: module "llvm-tools": module source path "prebuilts/clang/host/linux-x86/clang-r487747/lib64/libc++.so.1" does not exist |
Only changing |
@pirama-arumuga-nainar @VijayLi11 It build successfully after updating from AOSP. I notice that the clang version is r475365b. |
I still met the below error with the clang version clang-r475365b (error: prebuilts/clang/host/linux-x86/Android.bp:390:1: module "llvm-tools": module source path "prebuilts/clang/host/linux-x86/clang-r475365b/lib64/libc++.so.1" does not exist) |
@zienn Do you build successfully after the baseline upgrade? |
@VijayLi11 yes |
Description
Failed when build android os
Affected versions
r25
Canary version
No response
Host OS
Linux
Host OS version
ubuntu 20.04
Affected ABIs
arm64-v8a
Build system
ndk-build
Other build system
No response
minSdkVersion
23
Device API level
No response
The text was updated successfully, but these errors were encountered: