java - How do I get past NDK build failure in cpu-features.c? -


i'm attempting build ndk compatible code (that works , has been tested), i'm getting following error during build process:

[armeabi-v7a] compile thumb  : cpufeatures <= cpu-features.c /users/sean/library/android/sdk/ndk-bundle/sources/android/cpufeatures/cpu-features.c: in function 'get_elf_hwcap_from_proc_self_auxv': /users/sean/library/android/sdk/ndk-bundle/sources/android/cpufeatures/cpu-features.c:534:5: warning: implicit declaration of function 'typeof' [-wimplicit-function-declaration]      int fd = temp_failure_retry(open(filepath, o_rdonly));      ^ in file included /users/sean/library/android/sdk/ndk-bundle/platforms/android-14/arch-arm/usr/include/fcntl.h:34:0,                  /users/sean/library/android/sdk/ndk-bundle/sources/android/cpufeatures/cpu-features.c:75: /users/sean/library/android/sdk/ndk-bundle/platforms/android-14/arch-arm/usr/include/unistd.h:207:18: error: expected ';' before '_rc'      typeof (exp) _rc;                      \                   ^ /users/sean/library/android/sdk/ndk-bundle/sources/android/cpufeatures/cpu-features.c:534:14: note: in expansion of macro 'temp_failure_retry'      int fd = temp_failure_retry(open(filepath, o_rdonly));               ^ /users/sean/library/android/sdk/ndk-bundle/platforms/android-14/arch-arm/usr/include/unistd.h:209:9: error: '_rc' undeclared (first use in function)          _rc = (exp);                       \          ^ /users/sean/library/android/sdk/ndk-bundle/sources/android/cpufeatures/cpu-features.c:534:14: note: in expansion of macro 'temp_failure_retry'      int fd = temp_failure_retry(open(filepath, o_rdonly));               ^ /users/sean/library/android/sdk/ndk-bundle/platforms/android-14/arch-arm/usr/include/unistd.h:209:9: note: each undeclared identifier reported once each function appears in          _rc = (exp);                       \          ^ /users/sean/library/android/sdk/ndk-bundle/sources/android/cpufeatures/cpu-features.c:534:14: note: in expansion of macro 'temp_failure_retry'      int fd = temp_failure_retry(open(filepath, o_rdonly));               ^ /users/sean/library/android/sdk/ndk-bundle/platforms/android-14/arch-arm/usr/include/unistd.h:207:18: error: expected ';' before '_rc'      typeof (exp) _rc;                      \                   ^ /users/sean/library/android/sdk/ndk-bundle/sources/android/cpufeatures/cpu-features.c:544:19: note: in expansion of macro 'temp_failure_retry'          int ret = temp_failure_retry(read(fd, (char*)&entry, sizeof entry));                    ^ make: *** [obj/local/armeabi-v7a/objs/cpufeatures/cpu-features.o] error 1 

i've tried setting ap_abi different architectures, more or less same result. local dev environment osx , i'm running directly using ndk-clean & ndk-build

anyone else figure out?


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -