-
Notifications
You must be signed in to change notification settings - Fork 260
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
Inconsistency in cmath between arm64-v8a and armeabi-v7a #162
Comments
What's you The second issue (GCC + libc++) is probably just an old incompatibility that should clear up with r13 since we've updated libc++ and removed all the local hacks (I haven't tested that theory, but it certainly looks like that kind of error). By the look of things, I should be able to repro it with just Eigen is probably something that we should add to our pre-release validation. I've made a note of it in our docs. |
The second issue can be reproduced just by including |
The first issue is roughly the same as http://b.android.com/82734. tl;dr autoconf is awful so you either get all of c99 math or none of it. Since gingerbread (which we build libstdc++ against) didn't have support for all of it, it gets none of it. Looks like another argument for our plan of making it easy to statically link the latest libm (possibly doing so by default). I think unified headers might actually get configure to shut up, but it's possible that will cause other problems since those symbols won't actually be available on Gingerbread... The above all does hang on the assumption that this is not a regression. If this worked in r10 or r11 then there might be something else going on (though it could just be something that came up with our updated gcc). Haven't checked the second issue yet (I'll do that now). |
To clarify, since we build libstdc++ against android-9, the header that defines all the configuration constants will report not having C99 math even if you're targeting a newer API level :\ |
As for the second issue here (GCC + libstdc++), I couldn't repro with r12b. Source file is just |
It was built to show some different GCC + libsdc++ issue, but it can be also used to demonstrate tuple problem on GCC + c++_static configuration. |
Yep, that repros, thanks. Checked against my r13-beta1 build as well, and it looks like the libc++ update does fix the GCC incompatibility. |
Looks like each combination of libc++/gnustl clang/gcc works for this example now (going back to at least r14). |
When I compile my program which uses Eigen library for
arm64-v8a
ABI, everything compiles without any problem (GCC + libstdc++), however when ABI is set toarmeabi-v7a
, I get following errors:Same happens if I use Clang (obviously a STL issue).
If I try using GCC + libc++, then in both
arm64-v8a
andarmeabi-v7a
I get this error:The only combination which does compile for both armv7 and armv8 is clang+libc++, but we currently cannot use that due to issues #108, #137, #21, #9 and #156.
Any advices?
The text was updated successfully, but these errors were encountered: