-
Notifications
You must be signed in to change notification settings - Fork 411
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
GCC Deprecated on Android - switch default toolchain from gcc to clang/llvm #131
Comments
I agree that this would be a good change, however I'm not sure how easy it would be to make the transition. For starters, it doesn't look like clang supports all the ARM assembler syntax that is used in this project (at least, this is one of the immediate problems I ran into when trying to get things working with clang on my machine -- I'm certainly no expert in this area, however). EDIT: Actually, taking a closer look, this might be easier than I had thought. It seems that |
Hi. I have succeeded to build Ne10 with clang. Try the following procedure😄 1. Tweak
|
Caveat - I am not an expert on compilers/architectures/assembly. I filed a bug report on the android NDK issue list (android/ndk#111) because the compilation barfed on -mthumb-interwork when switching from gcc to clang. It is currently open and tagged with a "clang" tag. So I dropped the idea of switching to clang. Please refer to the bug report for detailed information. As such, I am not sure whether removing the -mthumb-interwork and other flags is the right way forward. To be honest, I am now of the belief that the NDK guidance to switch to clang was made in good faith but lacked sufficient foresight - atleast till the NDK folks sort out the clang issues. IMHO, I do not know whether their actions inspire confidence. They added arm-v7a-hard in one NDK release, were praised for it (http://blog.alexrp.com/2014/02/18/android-hard-float-support/) but then removed it later with a justification which questioned the very introduction of it (https://android.googlesource.com/platform/ndk/+/ndk-r12-release/docs/HardFloatAbi.md). As another example, it was suggested in my bug report discussion that -mthumb-interwork was meaningless for android. I had to point out that an NDK engineer had indicated in an ndk google group thread that -mthumb-interwork was required for ABI compatibility and that -mthumb-interwork found mention in countless posts on the group. Again, I am not an expert and could be completely wrong on this. |
Do you folks think I should close this issue, in case it is not relevant anymore? |
Hi, I am working on camera with OpenCV. I am using NDK 18 on Android Studio 3.0.1. My Application.mk file have code: APP_STL := c++_static but i am still getting error of using CLANG in place of GCC. Please tell how to use CLANG in place of GCC. |
Can anyone who knows preapre instruction how to build with clang for android latest release version of Ne10 (v1.2.1 at now)? I tried instructions from h6ah4i, comment from Oct 15, 2016 and there a lot of errors during compilation |
Also having similar issues, get to building Any advise as to how to compile and build successfully on clang? |
I’m seeing the same issues as @jordyjwilliams – lot’s of errors in NE10_fir.neon.s. Here’s a little outtake of the errors – any ideas?
It sounds like @Phillip-Wang was running into the same issue in #228 (comment) and fell back to using intrinsics in PR #231. |
@vodu this is where I got to android ne10 wise |
Starting with r11, Android NDK has deprecated gcc and made clang/llvm the default for Android. Also, gcc will not be updated beyond 4.9.
As such, could we please update to clang/llvm as the default?
For more information, please refer to https://developer.android.com/ndk/downloads/revision_history.html - click on Android NDK, Revision 11 (March 2016).
The text was updated successfully, but these errors were encountered: