Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24297] Android native modules build is getting failed with Android NDK r13b

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2017-05-23T19:02:15.000+0000
Affected Version/sn/a
Fix Version/sRelease 7.0.0
ComponentsAndroid
Labelsandroid, module
ReporterBryant T.
AssigneeGary Mathews
Created2017-01-05T16:49:34.000+0000
Updated2017-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

FileDateSize
info-log.rtf2017-01-11T13:50:02.000+000059752
log.rtf2017-01-05T16:49:19.000+000034244

Comments

  1. Sharif AbuDarda 2017-01-05

    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.
  2. Bryant T. 2017-01-05

    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!
  3. Sharif AbuDarda 2017-01-06

  4. Bryant T. 2017-01-08

    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}}
  5. Sharif AbuDarda 2017-01-10

    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.
  6. Bryant T. 2017-01-11

    Requested "appc ti info" log.
  7. Bryant T. 2017-01-11

    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 1
  8. Gary Mathews 2017-05-01

    titanium_mobile: https://github.com/appcelerator/titanium_mobile/pull/9003 v8_titanium: https://github.com/appcelerator/v8_titanium/pull/19
  9. Michael Gangolf 2017-05-01

    [~gmathews]: "Bump V8 version to 5.8.283.35" Does this force us to recompile Android modules again? Any speed improvements?
  10. Gary Mathews 2017-05-01

    [~michael] Yes this will require modules to be re-compiled. Since the current V8 as of 6.0.4 is 5.1 I would assume there will be performance gains moving to a later version, although I have not tested any benchmarks yet.
  11. Gary Mathews 2017-08-25

    [~eharris] You're right, bumped to 7.0.0
  12. Lokesh Choudhary 2017-11-16

    Verified the fix with SDK 7.0.0.v20171116084813. Closing.

JSON Source