[TIMOB-24297] Android native modules build is getting failed with Android NDK r13b
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-05-23T19:02:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 7.0.0 |
Components | Android |
Labels | android, module |
Reporter | Bryant T. |
Assignee | Gary Mathews |
Created | 2017-01-05T16:49:34.000+0000 |
Updated | 2017-11-16T19:31:28.000+0000 |
Description
Cannot build an Android module with a blank, unedited template. Log below:
1/5/2017, 1:47:29 AM
Operating System
Name = Mac OS X
Version = 10.11.4
Architecture = 64bit
# CPUs = 4
Memory = 17179869184
Node.js
Node.js Version = 6.9.1
npm Version = 3.10.8
Titanium CLI
CLI Version = 5.0.11
Titanium SDK
SDK Version = 6.0.1.GA
SDK Path = /Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA
Target Platform = android
Command
/usr/local/bin/node /Users/devtest/.appcelerator/install/6.1.0/package/node_modules/titanium/lib/titanium.js build run --platform android --project-dir /Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android --build-only --no-colors --no-progress-bars --no-prompt --no-banner --prompt-type socket-bundle --prompt-port 64782 --config-file /var/folders/mh/dqh1sgn122j964t0c3f364mm0000gn/T/build-1483598843862.json --log-level info --no-banner --project-dir /Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android
[INFO] : javac Max Memory: 256M
[INFO] : javac Source: 1.6
[INFO] : javac Target: 1.6
[INFO] : dx Max Memory: 1024M
[INFO] : buildBinClassesDir: /Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/build/classes
[INFO] : Assets Dir: /Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/assets
[INFO] : Documentation Dir: /Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/documentation
[INFO] : Example Dir: /Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/example
[INFO] : Platform Dir: /Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/platform
[INFO] : Resources Dir: /Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/Resources
Generating java files from the .aidl files
[INFO] : No aidl files to compile
Compiling Module Java source files
[INFO] : Building Java source files: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/javac "-J-Xmx256M" "-encoding" "utf8" "-classpath" "/Users/devtest/Documents/Android SDK/platforms/android-23/android.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/lib/closure-compiler.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/lib/titanium-debug.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/lib/titanium-profiler.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/lib/titanium-verify.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-accelerometer.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-analytics.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-android.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-app.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-appcompat.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-calendar.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-cardview.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-contacts.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-database.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-filesystem.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-geolocation.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-gesture.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-locale.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-map.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-media.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-network.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-platform.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-ui.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-utils.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-xml.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/android-support-multidex.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/android-support-v4.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/android-support-v7-appcompat.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/aps-analytics.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/cardview-v7-23.0.1.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/freemarker.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/jaxen-1.1.1.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/json_simple-1.1.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/kroll-apt.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/kroll-common.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/kroll-v8.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/nineoldandroids-appc-2.4.0.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/ti-commons-codec-1.3.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/titanium.jar" "-d" "/Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/build/classes" "-target" "1.6" "-g" "-source" "1.6" "@/Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/java-sources.txt" "-processor" "org.appcelerator.kroll.annotations.generator.KrollJSONGenerator" "-s" "/Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/build/generated/json" "-Akroll.jsonFile=unedited-test-module.json" "-Akroll.jsonPackage=org.appcelerator.titanium.bindings"
Generating runtime bindings
[INFO] : Generate v8 bindings: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/java "-classpath" "/Users/devtest/Documents/Android SDK/platforms/android-23/android.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/lib/closure-compiler.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/lib/titanium-debug.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/lib/titanium-profiler.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/lib/titanium-verify.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-accelerometer.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-analytics.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-android.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-app.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-appcompat.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-calendar.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-cardview.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-contacts.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-database.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-filesystem.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-geolocation.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-gesture.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-locale.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-map.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-media.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-network.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-platform.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-ui.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-utils.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/modules/titanium-xml.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/android-support-multidex.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/android-support-v4.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/android-support-v7-appcompat.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/aps-analytics.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/cardview-v7-23.0.1.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/freemarker.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/jaxen-1.1.1.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/json_simple-1.1.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/kroll-apt.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/kroll-common.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/kroll-v8.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/nineoldandroids-appc-2.4.0.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/ti-commons-codec-1.3.jar:/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/titanium.jar" "org.appcelerator.kroll.annotations.generator.KrollBindingGenerator" "/Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/build/generated/jni" "true" "com.ironstrong.bt.android" "/Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/build/generated/json/org/appcelerator/titanium/bindings/unedited-test-module.json"
[INFO] : Producing [ModuleName]Bootstrap files using /Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/build/generated/json/org/appcelerator/titanium/bindings/unedited-test-module.json
Generating BootstrapJS.cpp from bootstrap.js
[INFO] : Running the Android NDK ndk-build
[ERROR] : Failed to run ndk-build
[ERROR] :
[ERROR] : jni/Android.mk:35: warning: overriding commands for target /Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/build/generated/KrollGeneratedBindings.cpp'
[ERROR] : jni/Android.mk:35: warning: ignoring old commands for target
/Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/build/generated/KrollGeneratedBindings.cpp'
[ERROR] : warning: unknown warning option '-Wno-psabi' [-Wunknown-warning-option]
[ERROR] : In file included from jni/com.ironstrong.bt.android.AndroidBluetoothIronstrongModule.cpp:12:
[ERROR] : /Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:57:49: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
2017-01-05T06:47:33.950Z | ERROR | An uncaught exception was thrown!
[sprintf] %ld,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,jni/com.ironstrong.bt.android.AndroidBluetoothIronstrongModule.cpp:131:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security], LOGE(TAG, error);, ^~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,jni/com.ironstrong.bt.android.AndroidBluetoothIronstrongModule.cpp:195:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security], LOGE(TAG, error);, ^~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,jni/com.ironstrong.bt.android.AndroidBluetoothIronstrongModule.cpp:257:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security], LOGE(TAG, error);, ^~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,5 warnings generated.,warning: unknown warning option '-Wno-psabi' [-Wunknown-warning-option],In file included from jni/com.ironstrong.bt.android.ExampleProxy.cpp:12:,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:57:49: warning: format specifies type 'int' but the argument has type 'long' [-Wformat], LOGE(tag, "Finished %s (%d ms)", description, AndroidUtil::getCurrentMillis() - start);, ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~, %ld,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,jni/com.ironstrong.bt.android.ExampleProxy.cpp:130:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security], LOGE(TAG, error);, ^~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,jni/com.ironstrong.bt.android.ExampleProxy.cpp:192:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security], LOGE(TAG, error);, ^~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,jni/com.ironstrong.bt.android.ExampleProxy.cpp:269:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security], LOGE(TAG, error);, ^~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,jni/com.ironstrong.bt.android.ExampleProxy.cpp:348:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security], LOGE(TAG, error);, ^~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,jni/com.ironstrong.bt.android.ExampleProxy.cpp:410:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security], LOGE(TAG, error);, ^~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,7 warnings generated.,warning: unknown warning option '-Wno-psabi' [-Wunknown-warning-option],In file included from jni/../AndroidBluetoothIronstrongBootstrap.cpp:12:,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:57:49: warning: format specifies type 'int' but the argument has type 'long' [-Wformat], LOGE(tag, "Finished %s (%d ms)", description, AndroidUtil::getCurrentMillis() - start);, ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~, %ld,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,In file included from jni/../AndroidBluetoothIronstrongBootstrap.cpp:19:,/Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/build/generated/KrollGeneratedBindings.gperf:14:8: error: forward declaration of struct cannot have a nested name specifier,struct titanium::bindings::BindEntry;, ^~~~~~~~~~~~~~~~~~~~,/Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/build/generated/KrollGeneratedBindings.gperf:25:11: warning: 'register' storage class specifier is deprecated and incompatible with C++1z [-Wdeprecated-register], register const char *s = wordlist[key].name;, ^~~~~~~~~,3 warnings and 1 error generated.,make: *** [/Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/build/generated/obj/local/armeabi-v7a/objs/com.ironstrong.bt.android/__/AndroidBluetoothIronstrongBootstrap.o] Error 1"
2017-01-05T06:47:33.951Z | ERROR | [sprintf] %ld,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,jni/com.ironstrong.bt.android.AndroidBluetoothIronstrongModule.cpp:131:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security], LOGE(TAG, error);, ^~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,jni/com.ironstrong.bt.android.AndroidBluetoothIronstrongModule.cpp:195:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security], LOGE(TAG, error);, ^~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,jni/com.ironstrong.bt.android.AndroidBluetoothIronstrongModule.cpp:257:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security], LOGE(TAG, error);, ^~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,5 warnings generated.,warning: unknown warning option '-Wno-psabi' [-Wunknown-warning-option],In file included from jni/com.ironstrong.bt.android.ExampleProxy.cpp:12:,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:57:49: warning: format specifies type 'int' but the argument has type 'long' [-Wformat], LOGE(tag, "Finished %s (%d ms)", description, AndroidUtil::getCurrentMillis() - start);, ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~, %ld,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,jni/com.ironstrong.bt.android.ExampleProxy.cpp:130:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security], LOGE(TAG, error);, ^~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,jni/com.ironstrong.bt.android.ExampleProxy.cpp:192:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security], LOGE(TAG, error);, ^~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,jni/com.ironstrong.bt.android.ExampleProxy.cpp:269:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security], LOGE(TAG, error);, ^~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,jni/com.ironstrong.bt.android.ExampleProxy.cpp:348:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security], LOGE(TAG, error);, ^~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,jni/com.ironstrong.bt.android.ExampleProxy.cpp:410:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security], LOGE(TAG, error);, ^~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,7 warnings generated.,warning: unknown warning option '-Wno-psabi' [-Wunknown-warning-option],In file included from jni/../AndroidBluetoothIronstrongBootstrap.cpp:12:,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:57:49: warning: format specifies type 'int' but the argument has type 'long' [-Wformat], LOGE(tag, "Finished %s (%d ms)", description, AndroidUtil::getCurrentMillis() - start);, ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~, %ld,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__), ^~~~~~~~~~~,/Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:14:74: note: expanded from macro 'LOG',#define LOG(level, tag, ...) __android_log_print(_LOG_LEVEL(level), tag, __VA_ARGS__), ^~~~~~~~~~~,In file included from jni/../AndroidBluetoothIronstrongBootstrap.cpp:19:,/Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/build/generated/KrollGeneratedBindings.gperf:14:8: error: forward declaration of struct cannot have a nested name specifier,struct titanium::bindings::BindEntry;, ^~~~~~~~~~~~~~~~~~~~,/Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/build/generated/KrollGeneratedBindings.gperf:25:11: warning: 'register' storage class specifier is deprecated and incompatible with C++1z [-Wdeprecated-register], register const char *s = wordlist[key].name;, ^~~~~~~~~,3 warnings and 1 error generated.,make: *** [/Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/build/generated/obj/local/armeabi-v7a/objs/com.ironstrong.bt.android/__/AndroidBluetoothIronstrongBootstrap.o] Error 1"
Attachments
File | Date | Size |
---|---|---|
info-log.rtf | 2017-01-11T13:50:02.000+0000 | 59752 |
log.rtf | 2017-01-05T16:49:19.000+0000 | 34244 |
Hello, Did you just updated your NDK from a lower version where module building was working?. Please do the following: 1: Downgrade your node from 4.7.1 download from here https://platform.appcelerator.com/#/product/cli. 2: Upgraded java to 1.8.0_111. Now, try building. If the issue still happens. 3: Downgrade NDK to r12b. Let us know. Thanks.
Before all this started, I was not able to build a fresh android module. My original NDK was r9d, which I then upgraded to r13b. I also checked for all pre-requisites before coming here. Here are the results of your suggestions: 1. Downgraded to Node to 4.7.1. Re-built. Same fail message. 2. Upgraded Java to 1.8.0_111. Re-built. Same fail message. 3. Downgraded NDK to r12b. Re-built. Same fail message. --- [INFO] : Running the Android NDK ndk-build [ERROR] : Failed to run ndk-build [ERROR] : [ERROR] : jni/Android.mk:35: warning: overriding commands for target
/Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/build/generated/KrollGeneratedBindings.cpp' [ERROR] : jni/Android.mk:35: warning: ignoring old commands for target
/Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/build/generated/KrollGeneratedBindings.cpp' [ERROR] : warning: unknown warning option '-Wno-psabi' [-Wunknown-warning-option] [ERROR] : In file included from jni/com.ironstrong.bt.android.AndroidBluetoothIronstrongModule.cpp:12: [ERROR] : /Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/AndroidUtil.h:57:49: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 2017-01-05T22:43:31.969Z | ERROR | An uncaught exception was thrown!1. Downgraded NDK back to r9b. Re-built. Failed again. Different log though. 2. Downgraded to Node to 4.6.0. Re-built. Failed again. New abbreviated log: ------ {{Operating System Name = Mac OS X Version = 10.11.4 Architecture = 64bit # CPUs = 4 Memory = 17179869184 Node.js Node.js Version = 4.6.0 npm Version = 2.15.9 Titanium CLI CLI Version = 5.0.11 Titanium SDK SDK Version = 6.0.1.GA SDK Path = /Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA Target Platform = android [...] [INFO] : Running the Android NDK ndk-build [ERROR] : Failed to run ndk-build [ERROR] : [ERROR] : jni/Android.mk:35: warning: overriding commands for target
/Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/build/generated/KrollGeneratedBindings.cpp' [ERROR] : jni/Android.mk:35: warning: ignoring old commands for target
/Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/build/generated/KrollGeneratedBindings.cpp' [ERROR] : In file included from /Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/Proxy.h:11:0, [ERROR] : from jni/com.ironstrong.bt.android.AndroidBluetoothIronstrongModule.h:12, [ERROR] : from jni/com.ironstrong.bt.android.AndroidBluetoothIronstrongModule.cpp:10: [ERROR] : /Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/v8.h:345:1: error: expected unqualified-id before 'using' [ERROR] : /Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/v8.h:481:1: error: expected unqualified-id before 'using' [ERROR] : /Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/v8.h:882:1: error: expected unqualified-id before 'using' [ERROR] : /Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/v8.h:5424:35: error: 'virtual v8::EmbedderHeapTracer::~EmbedderHeapTracer()' declared virtual cannot be defaulted in the class body [ERROR] : make: *** [/Users/devtest/Documents/Appcelerator_Studio_Workspace/unedited-test-module/android/build/generated/obj/local/armeabi-v7a/objs/com.ironstrong.bt.android/com.ironstrong.bt.android.AndroidBluetoothIronstrongModule.o] Error 1}}Hello, does it work on previous SDK 6.0.0.GA? Can you run "appc ti info" and send the log as an attached file? Thanks.
Requested "appc ti info" log.
So this is strange. I created a blank android module template and indicated that I wanted to use 6.0.0GA. Then I tried to build it, and it ignored my GA request, opting to use 6.0.1 instead. Also attaching info log. ---- [INFO] : Running the Android NDK ndk-build [ERROR] : Failed to run ndk-build [ERROR] : [ERROR] : jni/Android.mk:35: warning: overriding commands for target
/Users/devtest/Documents/Appcelerator_Studio_Workspace/blank-6-0-0-ga/android/build/generated/KrollGeneratedBindings.cpp' [ERROR] : jni/Android.mk:35: warning: ignoring old commands for target
/Users/devtest/Documents/Appcelerator_Studio_Workspace/blank-6-0-0-ga/android/build/generated/KrollGeneratedBindings.cpp' [ERROR] : In file included from /Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/Proxy.h:11:0, [ERROR] : from jni/com.moduletest.android.Blank600GaModule.h:12, [ERROR] : from jni/com.moduletest.android.Blank600GaModule.cpp:10: [ERROR] : /Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/v8.h:345:1: error: expected unqualified-id before 'using' [ERROR] : /Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/v8.h:481:1: error: expected unqualified-id before 'using' [ERROR] : /Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/v8.h:882:1: error: expected unqualified-id before 'using' [ERROR] : /Users/devtest/Library/Application Support/Titanium/mobilesdk/osx/6.0.1.GA/android/native/include/v8.h:5424:35: error: 'virtual v8::EmbedderHeapTracer::~EmbedderHeapTracer()' declared virtual cannot be defaulted in the class body [ERROR] : make: *** [/Users/devtest/Documents/Appcelerator_Studio_Workspace/blank-6-0-0-ga/android/build/generated/obj/local/armeabi-v7a/objs/com.moduletest.android/com.moduletest.android.Blank600GaModule.o] Error 1titanium_mobile: https://github.com/appcelerator/titanium_mobile/pull/9003 v8_titanium: https://github.com/appcelerator/v8_titanium/pull/19
[~gmathews]: "Bump V8 version to 5.8.283.35" Does this force us to recompile Android modules again? Any speed improvements?
[~michael] Yes this will require modules to be re-compiled. Since the current V8 as of
6.0.4
is5.1
I would assume there will be performance gains moving to a later version, although I have not tested any benchmarks yet.[~eharris] You're right, bumped to
7.0.0
Verified the fix with SDK 7.0.0.v20171116084813. Closing.