-
Notifications
You must be signed in to change notification settings - Fork 258
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] ndk clang building release raise error declaration does not match
while llvm upstream compiles
#2013
Comments
declaration does not match
while llvm upstream compilesdeclaration does not match
while llvm upstream compiles
It doesn't look like a regression from previous compiler: https://godbolt.org/z/P8j4GnhYE This has been fixed recently in upstream clang. |
@appujee yes, and i have bisected the commit that fixed this issue. so maybe we need to cherry-pick this fix. |
I'll defer to the LLVM folks on whether or not that's innocuous enough to cherry-pick to r27. It's already in QA, so the bar for cherry-picks of non-regressions has gone up. |
a0e1cc0aefbc mentioned in the original report is the back port to the llvm-18 branch. a0b6747804e466 is the patch to the main branch of llvm-project. |
So is it possible to pick it to r27? |
https://android-review.googlesource.com/c/toolchain/llvm_android/+/3042676 is the cherry-pick to AOSP clang. Let's see if it passes presubmit and tests. The fix seems reasonable. However, since this is not a regression, it doesn't meet the bar for a compiler respin. If there is another bug in the compiler that requires updating the r27 clang, we'll include the fix for this as well. |
(and there almost always is another bug, so it's likely) |
a0b6747804e [C++20] [Modules] Don't perform ODR checks in GMF Note: clang/test/Modules/pr76638.cppm skipped as it doesn't exist at r522817. This change is generated automatically by the script: cherrypick_cl.py --sha a0b6747804e46665ecfd00295b60432bfe1775b6 --bug android/ndk#2013 --patch-file ../../a0b6747804e46665ecfd00295b60432bfe1775b6_new.patch --create-cl Bug: android/ndk#2013 Test: N/A Change-Id: I24e49f94c4eba8e3d2f708fe2f0f7427f34ee084
Confirmed 28.0.11744028 works. |
Description
PoC: https://github.com/yujincheng08/ndkPoC
When we run
buildCMakeRelWithDebInfo
it raises the error while runningbuildCmakeDebug
it compiles.However, the upstream does work: https://godbolt.org/z/MMfq84rcK
Error message:
Upstream bug
llvm/llvm-project#79240
Commit to cherry-pick
llvm/llvm-project#80249
Affected versions
Canary
Canary version
28.0.11706545
Host OS
Linux, Windows
Host OS version
11
Affected ABIs
armeabi-v7a, arm64-v8a, x86, x86_64
The text was updated successfully, but these errors were encountered: