Bug in file arm-linux-androideabi-g++.exe of ndk-r16b

83 views
Skip to first unread message

mun24

unread,
Dec 19, 2017, 3:48:38 PM12/19/17
to android-ndk

file path:
sdk\ndk-bundle\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-g++.exe

I tried on mac and have same issue.
It crashes in inter-operation between assembly code and c code. If I replace the same file with file of ndk version r15c then no crash

Also why  __ANDROID_API__  variable in not set in unified headers. I believe its value is set as per minSdkVersion, But it never changes what ever is minSdkVersion. I have to manually set in stdio.h like
#define __ANDROID_API__ 19


Thanks

Dan Albert

unread,
Dec 19, 2017, 3:51:36 PM12/19/17
to android-ndk
GCC is deprecated. No GCC bugs will be fixed.

Also why  __ANDROID_API__  variable in not set in unified headers.

This is the job of the build system. Standalone toolchains also do it for you, but only for Clang. This is documented at https://android.googlesource.com/platform/ndk/+/master/docs/UnifiedHeaders.md 

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/3e3461c7-6650-41ee-b758-8f2887f1258e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mun24

unread,
Dec 20, 2017, 4:18:53 PM12/20/17
to android-ndk
clang++.exe also has same issue.

Dan Albert

unread,
Dec 20, 2017, 4:21:06 PM12/20/17
to android-ndk
Then you'll need to file a bug report. There's nothing actionable in your original message.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
Reply all
Reply to author
Forward
0 new messages