-
Notifications
You must be signed in to change notification settings - Fork 259
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 r28 rc1/beta2 header asm issue #2107
Comments
are you trying to compile as c89 or something? |
I use |
can you provide the full cc command line? it looks like the compiler's interpreting that that is: "i don't think the linux uapi headers are compatible with whatever compiler flags you're using". yes, this is a regression (because we used to filter these particular bits out of the headers, but that caused c23 incompatibilities). i'm not sure how easy/possible it will be to fix that though. i'm guessing if you locally edit those two lines to say |
clang++ line is but idk how do I check on cc sorry
it does indeed go away when I change |
ah, try changing |
yeah I reverted the |
more awkward than i'd hoped for (since our "rewrite A as B" machinery doesn't work within function definitions) but https://android-review.googlesource.com/c/platform/bionic/+/3386019 isn't too bad, and makes <linux/swab.h> quite a bit less unreadable too... |
hopefully that won't do a big change on new release, I'm not really good at C/C++ stuff sorry |
if you mean "hopefully that will be in r28", yes, i think it should be. if you mean "hopefully that cleanup won't cause other problems", well, as you've seen that's always a possibility when you touch anything in libc, but this change seems safer than the previous change (the one you're already having trouble with) since the new change removes dead code (and the new code that's causing you trouble) rather than adding new code. |
Just use the clang builtins all the time, as we do for the other architectures. Specifically this fixes compilation errors caused by the use of the non-standard `asm` when in a pure C mode like c11 rather than gnu11. Bug: android/ndk#2107 Change-Id: I0d6fdd52fd6f9c77d4c5e137d82237c97effd438
A sysroot update after beta is not something we normally want to do, since those are the second most likely thing to introduce regressions after the compiler. I'll have a look at what's actually in the update to gauge how disruptive it might be. If it looks scary, we'll probably ship an RC 2 first. |
Description
whenever I try build mbedtls for armv7, x86 and x86_64 these happen
armv7:
x86:
x86_64:
also my target is android24 if you're wondering
I am using a supported NDK
Affected versions
r28
The text was updated successfully, but these errors were encountered: