Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23996

Android: Can't package android modules with NDK r13 & r14

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 5.5.1
    • Fix Version/s: Release 7.0.0
    • Component/s: Android
    • Environment:

      Environment:
      Appc Studio : 4.7.1.201609100950
      Ti SDK : 5.5.1.GA
      Ti CLI : 5.0.9
      Alloy : 1.9.2
      MAC El Capitan : 10.11.6
      Appc NPM : 4.2.7
      Appc CLI : 5.5.0
      Node: 4.6.0
      NDK : r13

      Description

      Steps to reproduce:

      1. Make sure you have android NDK r13 downloaded & set in the studio preferences.
      2. Create an android module.
      3. Package the android module from studio or CLI.

      Actual results:

      1. Module packaging fails.

      Command
        /usr/local/bin/node /Users/lchoudhary/.appcelerator/install/5.5.0/package/node_modules/titanium/lib/titanium.js build run --platform android --project-dir /Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/android --build-only -l trace
       
      [INFO]  javac Max Memory: 256M
      [INFO]  javac Source: 1.6
      [INFO]  javac Target: 1.6
      [INFO]  dx Max Memory: 1024M
      [INFO]  buildBinClassesDir: /Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/android/build/classes
      [INFO]  Assets Dir: /Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/assets
      [INFO]  Documentation Dir: /Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/documentation
      [INFO]  Example Dir: /Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/example
      [INFO]  Platform Dir: /Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/android/platform
      [INFO]  Resources Dir: /Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/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.8.0_101.jdk/Contents/Home/bin/javac "-J-Xmx256M" "-encoding" "utf8" "-classpath" "/Users/lchoudhary/Desktop/android-sdk-macosx/platforms/android-23/android.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/lib/closure-compiler.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/lib/titanium-debug.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/lib/titanium-profiler.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/lib/titanium-verify.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-accelerometer.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-analytics.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-android.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-app.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-appcompat.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-calendar.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-cardview.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-contacts.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-database.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-filesystem.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-geolocation.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-gesture.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-locale.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-map.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-media.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-network.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-platform.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-ui.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-utils.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-xml.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/android-support-v4.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/android-support-v7-appcompat.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/aps-analytics.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/cardview-v7-23.0.1.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/freemarker.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/jaxen-1.1.1.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/json_simple-1.1.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/kroll-apt.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/kroll-common.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/kroll-v8.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/nineoldandroids-appc-2.4.0.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/ti-commons-codec-1.3.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/titanium.jar" "-d" "/Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/android/build/classes" "-target" "1.6" "-g" "-source" "1.6" "@/Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/android/java-sources.txt" "-processor" "org.appcelerator.kroll.annotations.generator.KrollJSONGenerator" "-s" "/Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/android/build/generated/json" "-Akroll.jsonFile=mod551.json" "-Akroll.jsonPackage=org.appcelerator.titanium.bindings" "-Akroll.checkTiContext=true"
      Generating runtime bindings
      [INFO]  Generate v8 bindings: /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/bin/java "-classpath" "/Users/lchoudhary/Desktop/android-sdk-macosx/platforms/android-23/android.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/lib/closure-compiler.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/lib/titanium-debug.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/lib/titanium-profiler.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/lib/titanium-verify.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-accelerometer.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-analytics.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-android.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-app.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-appcompat.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-calendar.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-cardview.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-contacts.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-database.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-filesystem.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-geolocation.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-gesture.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-locale.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-map.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-media.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-network.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-platform.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-ui.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-utils.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/modules/titanium-xml.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/android-support-v4.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/android-support-v7-appcompat.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/aps-analytics.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/cardview-v7-23.0.1.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/freemarker.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/jaxen-1.1.1.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/json_simple-1.1.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/kroll-apt.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/kroll-common.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/kroll-v8.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/nineoldandroids-appc-2.4.0.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/ti-commons-codec-1.3.jar:/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/titanium.jar" "org.appcelerator.kroll.annotations.generator.KrollBindingGenerator" "/Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/android/build/generated/jni" "true" "com.app.mod551" "/Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/android/build/generated/json/org/appcelerator/titanium/bindings/mod551.json"
      Producing [ModuleName]Bootstrap files using /Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/android/build/generated/json/org/appcelerator/titanium/bindings/mod551.json
      Generating BootstrapJS.cpp from bootstrap.js
      Running the stock Android NDK ndk-build
      [INFO]  Starting directory: /Users/lchoudhary/Desktop
      [INFO]  New directory: /Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/android/build/generated
      [ERROR] Failed to run ndk-build
      [ERROR]   
      [ERROR] jni/Android.mk:35: warning: overriding commands for target `/Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/android/build/generated/KrollGeneratedBindings.cpp'
      [ERROR] jni/Android.mk:35: warning: ignoring old commands for target `/Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/android/build/generated/KrollGeneratedBindings.cpp'
      [ERROR] jni/Android.mk:35: warning: overriding commands for target `/Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/android/build/generated/KrollGeneratedBindings.cpp'
      [ERROR] jni/Android.mk:35: warning: ignoring old commands for target `/Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/android/build/generated/KrollGeneratedBindings.cpp'
      [ERROR] warning: unknown warning option '-Wno-psabi' [-Wunknown-warning-option]
      [ERROR] In file included from jni/com.app.mod551.ExampleProxy.cpp:12:
      [ERROR] /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/native/include/AndroidUtil.h:57:49: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
       
      /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/sprintf/lib/sprintf.js:231
      				throw new Error('[sprintf] ' + _fmt);
                ^
      Error: [sprintf] %ld,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__),                                       ^~~~~~~~~~~,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.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.app.mod551.ExampleProxy.cpp:129:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security],                        LOGE(TAG, error);,                                  ^~~~~,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__),                                       ^~~~~~~~~~~,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.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.app.mod551.ExampleProxy.cpp:194:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security],                        LOGE(TAG, error);,                                  ^~~~~,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__),                                       ^~~~~~~~~~~,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.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.app.mod551.ExampleProxy.cpp:246:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security],                        LOGE(TAG, error);,                                  ^~~~~,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__),                                       ^~~~~~~~~~~,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.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.app.mod551.ExampleProxy.cpp:314:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security],                        LOGE(TAG, error);,                                  ^~~~~,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__),                                       ^~~~~~~~~~~,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.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.app.mod551.ExampleProxy.cpp:373:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security],                        LOGE(TAG, error);,                                  ^~~~~,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__),                                       ^~~~~~~~~~~,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.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/com.app.mod551.Mod551Module.cpp:12:,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.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/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__),                                       ^~~~~~~~~~~,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.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.app.mod551.Mod551Module.cpp:130:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security],                        LOGE(TAG, error);,                                  ^~~~~,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__),                                       ^~~~~~~~~~~,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.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.app.mod551.Mod551Module.cpp:185:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security],                        LOGE(TAG, error);,                                  ^~~~~,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__),                                       ^~~~~~~~~~~,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.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.app.mod551.Mod551Module.cpp:244:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security],                        LOGE(TAG, error);,                                  ^~~~~,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__),                                       ^~~~~~~~~~~,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.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/../Mod551Bootstrap.cpp:12:,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.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/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/native/include/AndroidUtil.h:34:40: note: expanded from macro 'LOGE',#define LOGE(tag, ...) LOG(ERROR, tag, __VA_ARGS__),                                       ^~~~~~~~~~~,/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.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/../Mod551Bootstrap.cpp:17:,/Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/android/build/generated/KrollGeneratedBindings.gperf:14:8: error: forward declaration of struct cannot have a nested name specifier,struct titanium::bindings::BindEntry;,       ^~~~~~~~~~~~~~~~~~~~,2 warnings and 1 error generated.,make: *** [/Users/lchoudhary/Desktop/workspaces/workspace_2016/mod551/android/build/generated/obj/local/armeabi/objs/com.app.mod551/__/Mod551Bootstrap.o] Error 1"
          at Function.str_format.parse (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/sprintf/lib/sprintf.js:231:11)
          at str_format (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/sprintf/lib/sprintf.js:75:48)
          at str_format.format (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/sprintf/lib/sprintf.js:163:22)
          at str_format (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/sprintf/lib/sprintf.js:77:28)
          at [object Object].patchedLog [as log] (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/cli/commands/build.js:391:76)
          at target.(anonymous function) (/Users/lchoudhary/.appcelerator/install/5.5.0/package/node_modules/titanium/node_modules/winston/lib/winston/common.js:54:18)
          at Array.forEach (native)
          at AndroidModuleBuilder.<anonymous> (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/cli/commands/_buildModule.js:1073:31)
          at ChildProcess.<anonymous> (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/lib/subprocess.js:60:3)
      ---------------------------------------------
          at Object.run (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/lib/subprocess.js:59:8)
          at AndroidModuleBuilder.tasks (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/cli/commands/_buildModule.js:1060:21)
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:718:13
          at Immediate.iterate (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:262:13)
          at processImmediate [as _immediateCallback] (timers.js:383:17)
      ---------------------------------------------
          at Object.setImmediate (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:194:9)
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:272:35
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:44:16
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:723:17
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:167:37
          at AndroidModuleBuilder.<anonymous> (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/cli/commands/_buildModule.js:1051:4)
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:718:13
          at iterate (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:262:13)
          at async.forEachOfSeries.async.eachOfSeries (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:281:9)
      ---------------------------------------------
          at Object.setImmediate (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:194:9)
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:272:35
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:44:16
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:723:17
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:167:37
          at AndroidModuleBuilder.jsToC (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/cli/commands/_buildModule.js:1021:2)
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:718:13
          at Immediate.iterate (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:262:13)
      ---------------------------------------------
          at Object.setImmediate (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:194:9)
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:272:35
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:44:16
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:723:17
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:167:37
          at AndroidModuleBuilder.compileJS (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/cli/commands/_buildModule.js:901:10)
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:718:13
          at Immediate.iterate (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:262:13)
      ---------------------------------------------
          at Object.setImmediate (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:194:9)
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:272:35
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:44:16
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:723:17
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:167:37
          at AndroidModuleBuilder.compileJsClosure (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/cli/commands/_buildModule.js:821:10)
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:718:13
          at iterate (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:262:13)
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:274:29
      ---------------------------------------------
          at Object.setImmediate (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:194:9)
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:272:35
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:44:16
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:723:17
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:167:37
          at AndroidModuleBuilder.nativeContext.moduleId (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/cli/commands/_buildModule.js:778:4)
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:718:13
          at Immediate.iterate (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:262:13)
      ---------------------------------------------
          at Object.setImmediate (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:194:9)
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:272:35
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:44:16
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:723:17
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:167:37
          at AndroidModuleBuilder.<anonymous> (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/cli/commands/_buildModule.js:747:4)
          at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:718:13
          at iterate (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:262:13)
          at async.forEachOfSeries.async.eachOfSeries (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/node_modules/async/lib/async.js:281:9)
      ---------------------------------------------
          at Object.run (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/node_modules/node-appc/lib/subprocess.js:59:8)
          at AndroidModuleBuilder.<anonymous> (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA/android/cli/commands/_buildModule.js:474:20)
          at /Users/lchoudhary/.appcelerator/install/5.5.0/package/node_modules/titanium/lib/hook.js:256:13
          at /Users/lchoudhary/.appcelerator/install/5.5.0/package/node_modules/titanium/node_modules/async/lib/async.js:697:13
          at /Users/lchoudhary/.appcelerator/install/5.5.0/package/node_modules/titanium/node_modules/async/lib/async.js:52:16
          at iterate (/Users/lchoudhary/.appcelerator/install/5.5.0/package/node_modules/titanium/node_modules/async/lib/async.js:263:24)
          at async.forEachOfSeries.async.eachOfSeries (/Users/lchoudhary/.appcelerator/install/5.5.0/package/node_modules/titanium/node_modules/async/lib/async.js:284:9)
          at _parallel (/Users/lchoudhary/.appcelerator/install/5.5.0/package/node_modules/titanium/node_modules/async/lib/async.js:688:9)
          at Object.async.series (/Users/lchoudhary/.appcelerator/install/5.5.0/package/node_modules/titanium/node_modules/async/lib/async.js:710:9)
      

      Expected results:

      1. Module packaging should be successfull

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                lchoudhary Lokesh Choudhary
                Reviewer:
                Lokesh Choudhary
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-10173
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code