{ "id": "120117", "key": "TIMOB-15263", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15695", "description": "2013 Sprint 20", "name": "2013 Sprint 20", "archived": true, "released": true, "releaseDate": "2013-10-04" }, { "id": "15697", "description": "2013 Sprint 20 Core", "name": "2013 Sprint 20 Core", "archived": true, "released": true, "releaseDate": "2013-10-04" }, { "id": "15747", "description": "Release 3.1.4", "name": "Release 3.1.4", "archived": true, "released": false }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-09-27T22:40:15.000+0000", "created": "2013-09-17T22:33:20.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "module", "qe-3.1.3", "triage" ], "versions": [], "issuelinks": [ { "id": "32033", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "112241", "key": "TIMOB-13395", "fields": { "summary": "Android: native modules broken with android-ndk-r8e", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mlangston", "key": "mlangston", "displayName": "Matt Langston", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-01-08T17:53:45.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Compiling a Titanium SDK or a Titanium Android module with the latest Android NDK (r9) which was released in July does not work.\r\n\r\nI believe that in your C++ code generation, you are creating invalid C++ which may have been previously allowed, but is now an error by the current version of the Android gcc compiler.\r\n\r\nWe need access to the latest NDK and gcc toolchain for access to the latest and greatest Android features.\r\n\r\nThe bug is easy to reproduce. Just download the latest Android NDK and create a brand new Titanium module for Android (following your documentation). Below are the steps and the failure output.\r\n\r\n{code}\r\nexport ANDROID_SDK_ROOT=/Library/Frameworks/Android/android-sdk/\r\nexport ANDROID_NDK_ROOT=/Library/Frameworks/Android/android-ndk-r9/\r\nexport ANDROID_NDK=/Library/Frameworks/Android/android-ndk-r9/\r\n\r\n1. Compile SDK\r\n# run scons\r\nscons\r\n\r\n2. Create and compile module\r\n~/Library/Application\\ Support/Titanium/mobilesdk/osx/3.1.2.GA/titanium.py create --platform=android --type=module --name=testr9 --id=co.lanica.testr9 --android=$ANDROID_SDK_ROOT\r\n\r\n# run ant\r\nant\r\n\r\n\r\nBuildfile: /Users/ewing/Source/LANICA/APPC/BUGS/AndroidModule_r9/testr9/build.xml\r\n\r\npython.set.exec:\r\n\r\npython.check:\r\n [echo] Testing for Python\r\n [exec] Python 2.7.2\r\n\r\ninit:\r\n [mkdir] Created dir: /Users/ewing/Source/LANICA/APPC/BUGS/AndroidModule_r9/testr9/build/classes\r\n [mkdir] Created dir: /Users/ewing/Source/LANICA/APPC/BUGS/AndroidModule_r9/testr9/dist\r\n\r\nprocess.annotations:\r\n [mkdir] Created dir: /Users/ewing/Source/LANICA/APPC/BUGS/AndroidModule_r9/testr9/build/generated/json\r\n [javac] Compiling 2 source files to /Users/ewing/Source/LANICA/APPC/BUGS/AndroidModule_r9/testr9/build/classes\r\n [javac] org/appcelerator/titanium/view/TiUIView.class(org/appcelerator/titanium/view:TiUIView.class): warning: Cannot find annotation method 'value()' in type 'android.annotation.SuppressLint': class file for android.annotation.SuppressLint not found\r\n [javac] org/appcelerator/titanium/TiApplication.class(org/appcelerator/titanium:TiApplication.class): warning: Cannot find annotation method 'value()' in type 'android.annotation.SuppressLint'\r\n [javac] Note: [KrollBindingGen] Running Kroll binding generator.\r\n [javac] Note: [KrollBindingGen] No binding data found, creating new data file: org.appcelerator.titanium.bindings/testr9.json\r\n [javac] Note: [KrollBindingGen] Found binding for proxy Example\r\n [javac] Note: [KrollBindingGen] Found binding for module Testr9\r\n [javac] Note: [KrollBindingGen] Generating JSON: /Users/ewing/Source/LANICA/APPC/BUGS/AndroidModule_r9/testr9/build/generated/json/org/appcelerator/titanium/bindings/testr9.json\r\n [javac] warning: The following options were not recognized by any processor: '[kroll.checkTiContext]'\r\n [javac] org/appcelerator/titanium/view/TiUIView.class(org/appcelerator/titanium/view:TiUIView.class): warning: Cannot find annotation method 'value()' in type 'android.annotation.SuppressLint': class file for android.annotation.SuppressLint not found\r\n [javac] org/appcelerator/titanium/TiApplication.class(org/appcelerator/titanium:TiApplication.class): warning: Cannot find annotation method 'value()' in type 'android.annotation.SuppressLint'\r\n [javac] Note: /Users/ewing/Source/LANICA/APPC/BUGS/AndroidModule_r9/testr9/src/co/lanica/testr9/ExampleProxy.java uses or overrides a deprecated API.\r\n [javac] Note: Recompile with -Xlint:deprecation for details.\r\n [javac] 2 warnings\r\n\r\ngenerate.v8.bindings:\r\n [java] Generating /Users/ewing/Source/LANICA/APPC/BUGS/AndroidModule_r9/testr9/build/generated/jni/co.lanica.testr9.Testr9Module.h\r\n [java] Generating /Users/ewing/Source/LANICA/APPC/BUGS/AndroidModule_r9/testr9/build/generated/jni/co.lanica.testr9.Testr9Module.cpp\r\n [java] Generating /Users/ewing/Source/LANICA/APPC/BUGS/AndroidModule_r9/testr9/build/generated/jni/co.lanica.testr9.ExampleProxy.h\r\n [java] Generating /Users/ewing/Source/LANICA/APPC/BUGS/AndroidModule_r9/testr9/build/generated/jni/co.lanica.testr9.ExampleProxy.cpp\r\n\r\ngenerate.bindings:\r\n\r\npre.compile:\r\n\r\njs.compile:\r\n\r\nndk.build:\r\n [copy] Copying 1 file to /Users/ewing/Source/LANICA/APPC/BUGS/AndroidModule_r9/testr9/build/generated\r\n [copy] Copying 1 file to /Users/ewing/Source/LANICA/APPC/BUGS/AndroidModule_r9/testr9/build/generated/jni\r\n [mkdir] Created dir: /var/folders/w0/6ybnr6311nsb21462hkpf3400000gn/T/ewing/testr9-generated\r\n [copy] Copying 11 files to /var/folders/w0/6ybnr6311nsb21462hkpf3400000gn/T/ewing/testr9-generated\r\n [exec] Android NDK: WARNING:jni/Android.mk:co.lanica.testr9: non-system libraries in linker flags: -lkroll-v8 \r\n [exec] Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES \r\n [exec] Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the \r\n [exec] Android NDK: current module \r\n [exec] Android NDK: WARNING:jni/Android.mk:co.lanica.testr9: non-system libraries in linker flags: -lkroll-v8 \r\n [exec] Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES \r\n [exec] Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the \r\n [exec] Android NDK: current module \r\n [exec] Android NDK: WARNING:jni/Android.mk:co.lanica.testr9: non-system libraries in linker flags: -lkroll-v8 \r\n [exec] Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES \r\n [exec] Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the \r\n [exec] Android NDK: current module \r\n [exec] jni/Android.mk:32: warning: overriding commands for target `/private/var/folders/w0/6ybnr6311nsb21462hkpf3400000gn/T/ewing/testr9-generated/KrollGeneratedBindings.cpp'\r\n [exec] jni/Android.mk:32: warning: ignoring old commands for target `/private/var/folders/w0/6ybnr6311nsb21462hkpf3400000gn/T/ewing/testr9-generated/KrollGeneratedBindings.cpp'\r\n [exec] jni/Android.mk:35: warning: overriding commands for target `/private/var/folders/w0/6ybnr6311nsb21462hkpf3400000gn/T/ewing/testr9-generated/BootstrapJS.cpp'\r\n [exec] jni/Android.mk:35: warning: ignoring old commands for target `/private/var/folders/w0/6ybnr6311nsb21462hkpf3400000gn/T/ewing/testr9-generated/BootstrapJS.cpp'\r\n [exec] jni/Android.mk:32: warning: overriding commands for target `/private/var/folders/w0/6ybnr6311nsb21462hkpf3400000gn/T/ewing/testr9-generated/KrollGeneratedBindings.cpp'\r\n [exec] jni/Android.mk:32: warning: ignoring old commands for target `/private/var/folders/w0/6ybnr6311nsb21462hkpf3400000gn/T/ewing/testr9-generated/KrollGeneratedBindings.cpp'\r\n [exec] jni/Android.mk:35: warning: overriding commands for target `/private/var/folders/w0/6ybnr6311nsb21462hkpf3400000gn/T/ewing/testr9-generated/BootstrapJS.cpp'\r\n [exec] jni/Android.mk:35: warning: ignoring old commands for target `/private/var/folders/w0/6ybnr6311nsb21462hkpf3400000gn/T/ewing/testr9-generated/BootstrapJS.cpp'\r\n [exec] Compile++ thumb : co.lanica.testr9 <= co.lanica.testr9.ExampleProxy.cpp\r\n [exec] In file included from jni/co.lanica.testr9.ExampleProxy.cpp:12:0:\r\n [exec] /Users/ewing/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.GA/android/native/include/AndroidUtil.h: In destructor 'titanium::LogTimer::~LogTimer()':\r\n [exec] /Users/ewing/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.GA/android/native/include/AndroidUtil.h:57:3: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat]\r\n [exec] jni/co.lanica.testr9.ExampleProxy.cpp: In static member function 'static v8::Handle co::lanica::testr9::testr9::ExampleProxy::setMessage(const v8::Arguments&)':\r\n [exec] jni/co.lanica.testr9.ExampleProxy.cpp:129:4: error: format not a string literal and no format arguments [-Werror=format-security]\r\n [exec] jni/co.lanica.testr9.ExampleProxy.cpp: In static member function 'static v8::Handle co::lanica::testr9::testr9::ExampleProxy::getMessage(const v8::Arguments&)':\r\n [exec] jni/co.lanica.testr9.ExampleProxy.cpp:194:4: error: format not a string literal and no format arguments [-Werror=format-security]\r\n [exec] jni/co.lanica.testr9.ExampleProxy.cpp: In static member function 'static v8::Handle co::lanica::testr9::testr9::ExampleProxy::printMessage(const v8::Arguments&)':\r\n [exec] jni/co.lanica.testr9.ExampleProxy.cpp:246:4: error: format not a string literal and no format arguments [-Werror=format-security]\r\n [exec] jni/co.lanica.testr9.ExampleProxy.cpp: In static member function 'static v8::Handle co::lanica::testr9::testr9::ExampleProxy::getter_message(v8::Local, const v8::AccessorInfo&)':\r\n [exec] jni/co.lanica.testr9.ExampleProxy.cpp:314:4: error: format not a string literal and no format arguments [-Werror=format-security]\r\n [exec] jni/co.lanica.testr9.ExampleProxy.cpp: In static member function 'static void co::lanica::testr9::testr9::ExampleProxy::setter_message(v8::Local, v8::Local, const v8::AccessorInfo&)':\r\n [exec] jni/co.lanica.testr9.ExampleProxy.cpp:373:4: error: format not a string literal and no format arguments [-Werror=format-security]\r\n [exec] cc1plus: some warnings being treated as errors\r\n [exec] \r\n [exec] make: *** [/var/folders/w0/6ybnr6311nsb21462hkpf3400000gn/T//ewing/testr9-generated/obj/local/armeabi/objs/co.lanica.testr9/co.lanica.testr9.ExampleProxy.o] Error 1\r\n\r\nBUILD FAILED\r\n/Users/ewing/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.GA/module/android/build.xml:326: The following error occurred while executing this line:\r\n/Users/ewing/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.GA/module/android/build.xml:281: exec returned: 2\r\n\r\nTotal time: 7 seconds\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Titanium SDK and Modules will not compile with (latest) Android NDK r9", "creator": { "name": "ewing", "key": "ewing", "displayName": "Eric Wing", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ewing", "key": "ewing", "displayName": "Eric Wing", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS X 10.8 with Android NDK r9", "comment": { "comments": [ { "id": "272020", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified the *issue exists* with:\r\nAppcelerator Studio, build: 3.1.3.201309132456\r\nTitanium SDK, build:3.1.3.GA\r\nandroid-ndk-r9\r\n{code}\r\nBUILD FAILED\r\n.............esdk/osx/3.1.3.GA/module/android/build.xml:326: The following error occurred while executing this line:\r\n................/osx/3.1.3.GA/module/android/build.xml:281: exec returned: 2\r\n\r\n{code}\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-19T21:40:44.000+0000", "updated": "2013-09-19T22:05:35.000+0000" }, { "id": "272106", "author": { "name": "ivanicob", "key": "ivanicob", "displayName": "Ivan Carlos", "active": true, "timeZone": "America/Fortaleza" }, "body": "Tested and verified the issue exists with:\r\nTitanium Studio, build: 3.1.3.201309132423\r\nTitanium SDK, build:3.1.1.GA\r\nADT Version: 22.2.1.v201309180102-833290\r\nEclipse C/C++ Development Tools Version: 8.0.2.201202111925\r\nandroid-ndk-r9\r\n\r\nBUILD FAILED\r\n/Library/Application Support/Titanium/mobilesdk/osx/3.1.1.GA/module/android/build.xml:326: The following error occurred while executing this line:\r\n/Library/Application Support/Titanium/mobilesdk/osx/3.1.1.GA/module/android/build.xml:281: exec returned: 2", "updateAuthor": { "name": "ivanicob", "key": "ivanicob", "displayName": "Ivan Carlos", "active": true, "timeZone": "America/Fortaleza" }, "created": "2013-09-20T13:15:18.000+0000", "updated": "2013-09-20T13:15:18.000+0000" }, { "id": "273107", "author": { "name": "mlangston", "key": "mlangston", "displayName": "Matt Langston", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The android-ndk-r9 changed ndk-build defaults to compile code with format string protection. This means NDK r9 changed a compiler warning into an error. The simple fix is to change the error back into a warning by setting LOCAL_DISABLE_FORMAT_STRING_CHECKS=true in the module's Android.mk.\r\n\r\nA more extensive and robust fix would be to go through all of our native code and change the logging statements from \"char *\" to \"const char *\", which although straightforward would entail many changes. I decided that our time is better spent focussing on ti.next than and making this more significant change.", "updateAuthor": { "name": "mlangston", "key": "mlangston", "displayName": "Matt Langston", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-27T01:18:19.000+0000", "updated": "2013-09-27T01:25:27.000+0000" }, { "id": "273109", "author": { "name": "mlangston", "key": "mlangston", "displayName": "Matt Langston", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/4743\r\n3_1_X: https://github.com/appcelerator/titanium_mobile/pull/4744\r\n\r\nThis ticket also fixes a bug (with no ticket) whereby the Titanium SDK itself cannot compile using NDK r9 due to the same issue as this bug.\r\n\r\nHere are the test case steps:\r\n\r\n1. Create a native Android module:\r\n\r\n~/Library/Application\\ Support/Titanium/mobilesdk/osx/3.1.3.GA/titanium.py create --platform=android --type=module --name=timob15263 --id=com.appcelerator.timob15263 --android=$ANDROID_SDK_HOME\r\n\r\n2. cd timob15263\r\n\r\n3. ant\r\n\r\n4. The build will fail with this error:\r\n\r\n{code}\r\n...\r\n [exec] jni/co.lanica.timob15263.ExampleProxy.cpp: In static member function 'static v8::Handle co::lanica::timob15263::timob15263::ExampleProxy::setMessage(const v8::Arguments&)':\r\n [exec] jni/co.lanica.timob15263.ExampleProxy.cpp:129:4: error: format not a string literal and no format arguments [-Werror=format-security]\r\n [exec] jni/co.lanica.timob15263.ExampleProxy.cpp: In static member function 'static v8::Handle co::lanica::timob15263::timob15263::ExampleProxy::getMessage(const v8::Arguments&)':\r\n [exec] jni/co.lanica.timob15263.ExampleProxy.cpp:194:4: error: format not a string literal and no format arguments [-Werror=format-security]\r\n [exec] jni/co.lanica.timob15263.ExampleProxy.cpp: In static member function 'static v8::Handle co::lanica::timob15263::timob15263::ExampleProxy::printMessage(const v8::Arguments&)':\r\n [exec] jni/co.lanica.timob15263.ExampleProxy.cpp:246:4: error: format not a string literal and no format arguments [-Werror=format-security]\r\n [exec] jni/co.lanica.timob15263.ExampleProxy.cpp: In static member function 'static v8::Handle co::lanica::timob15263::timob15263::ExampleProxy::getter_message(v8::Local, const v8::AccessorInfo&)':\r\n [exec] jni/co.lanica.timob15263.ExampleProxy.cpp:314:4: error: format not a string literal and no format arguments [-Werror=format-security]\r\n [exec] jni/co.lanica.timob15263.ExampleProxy.cpp: In static member function 'static void co::lanica::timob15263::timob15263::ExampleProxy::setter_message(v8::Local, v8::Local, const v8::AccessorInfo&)':\r\n [exec] jni/co.lanica.timob15263.ExampleProxy.cpp:373:4: error: format not a string literal and no format arguments [-Werror=format-security]\r\n [exec] cc1plus: some warnings being treated as errors\r\n [exec] \r\n [exec] make: *** [/var/folders/1c/9hxn8r1j0z98tk3_j1qfq7240000gn/T//matt/timob15263-generated/obj/local/armeabi/objs/co.lanica.timob15263/co.lanica.timob15263.ExampleProxy.o] Error 1\r\n\r\nBUILD FAILED\r\n...\r\n{code}\r\n\r\n5. Apply the fix for this bug.\r\n\r\n6. cd ..\r\n\r\n7. rm -rf timob15263\r\n\r\n8. Repeat steps 1 through 3 and the build will succeed, which demonstrates the bug has been fixed.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-27T01:24:41.000+0000", "updated": "2013-09-27T22:11:13.000+0000" }, { "id": "279835", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Followed Matt's test steps & the build was successfull.\r\nClosing.\r\n\r\nEnvironment:\r\nAppcel Studio : 3.2.0.201311150806\r\nTi SDK : 3.2.0.v20131114184328\r\nMac OSX : 10.8.5\r\nAlloy : 1.3.0\r\nCLI - 3.2.0", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-15T19:31:06.000+0000", "updated": "2013-11-15T19:31:06.000+0000" }, { "id": "295169", "author": { "name": "sara.jul26@gmail.com", "key": "sara.jul26@gmail.com", "displayName": "Saravanan", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I get this following warning:\r\n\r\nndk.build:\r\n [copy] Copying 1 file to C:\\Users\\saravanan\\Documents\\Titanium_Studio_Workspace\\calc\\build\\generated\r\n [copy] Copying 1 file to C:\\Users\\saravanan\\Documents\\Titanium_Studio_Workspace\\calc\\build\\generated\\jni\r\n [copy] Copying 11 files to C:\\Users\\SARAVA~1\\AppData\\Local\\Temp\\saravanan\\calc-generated\r\n [exec] Android NDK: WARNING:jni/Android.mk:com.test.calc: non-system libraries in linker flags: -lkroll-v8 \r\n [exec] Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES \r\n [exec] Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the \r\n [exec] Android NDK: current module \r\n [exec] jni/Android.mk:32: warning: overriding commands for target `C:/Users/SARAVA~1/AppData/Local/Temp/saravanan/calc-generated/KrollGeneratedBindings.cpp'\r\n [exec] jni/Android.mk:32: warning: ignoring old commands for target `C:/Users/SARAVA~1/AppData/Local/Temp/saravanan/calc-generated/KrollGeneratedBindings.cpp'\r\n [exec] jni/Android.mk:35: warning: overriding commands for target `C:/Users/SARAVA~1/AppData/Local/Temp/saravanan/calc-generated/BootstrapJS.cpp'\r\n [exec] jni/Android.mk:35: warning: ignoring old commands for target `C:/Users/SARAVA~1/AppData/Local/Temp/saravanan/calc-generated/BootstrapJS.cpp'\r\n [exec] Android NDK: WARNING:jni/Android.mk:com.test.calc: non-system libraries in linker flags: -lkroll-v8 \r\n [exec] Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES \r\n [exec] Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the \r\n [exec] Android NDK: current module \r\n [exec] jni/Android.mk:32: warning: overriding commands for target `C:/Users/SARAVA~1/AppData/Local/Temp/saravanan/calc-generated/KrollGeneratedBindings.cpp'\r\n [exec] jni/Android.mk:32: warning: ignoring old commands for target `C:/Users/SARAVA~1/AppData/Local/Temp/saravanan/calc-generated/KrollGeneratedBindings.cpp'\r\n [exec] jni/Android.mk:35: warning: overriding commands for target `C:/Users/SARAVA~1/AppData/Local/Temp/saravanan/calc-generated/BootstrapJS.cpp'\r\n [exec] jni/Android.mk:35: warning: ignoring old commands for target `C:/Users/SARAVA~1/AppData/Local/Temp/saravanan/calc-generated/BootstrapJS.cpp'\r\n [exec] Android NDK: WARNING:jni/Android.mk:com.test.calc: non-system libraries in linker flags: -lkroll-v8 \r\n [exec] Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES \r\n [exec] Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the \r\n [exec] Android NDK: current module \r\n [exec] [armeabi] Compile++ thumb: com.test.calc <= com.test.calc.CalcModule.cpp\r\n [exec] In file included from jni/com.test.calc.CalcModule.cpp:12:0:\r\n [exec] C:\\Users\\saravanan\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.1.3.GA/android/native/include/AndroidUtil.h: In destructor 'titanium::LogTimer::~LogTimer()':\r\n [exec] C:\\Users\\saravanan\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.1.3.GA/android/native/include/AndroidUtil.h:57:3: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat]\r\n [exec] jni/com.test.calc.CalcModule.cpp: In static member function 'static v8::Handle com::test::calc::CalcModule::example(const v8::Arguments&)':\r\n [exec] jni/com.test.calc.CalcModule.cpp:130:4: error: format not a string literal and no format arguments [-Werror=format-security]\r\n [exec] jni/com.test.calc.CalcModule.cpp: In static member function 'static v8::Handle com::test::calc::CalcModule::getter_exampleProp(v8::Local, const v8::AccessorInfo&)':\r\n [exec] jni/com.test.calc.CalcModule.cpp:185:4: error: format not a string literal and no format arguments [-Werror=format-security]\r\n [exec] jni/com.test.calc.CalcModule.cpp: In static member function 'static void com::test::calc::CalcModule::setter_exampleProp(v8::Local, v8::Local, const v8::AccessorInfo&)':\r\n [exec] jni/com.test.calc.CalcModule.cpp:244:4: error: format not a string literal and no format arguments [-Werror=format-security]\r\n [exec] cc1plus.exe: some warnings being treated as errors\r\n [exec] make.exe: *** [C:\\Users\\SARAVA~1\\AppData\\Local\\Temp\\/saravanan/calc-generated/obj/local/armeabi/objs/com.test.calc/com.test.calc.CalcModule.o] Error 1\r\n\r\nEnvironment:\r\nAppcel Studio: 3.2.1.201402041146\r\nTi SDK: 3.1.3 GA\r\nWindows 7 64-bit\r\n", "updateAuthor": { "name": "sara.jul26@gmail.com", "key": "sara.jul26@gmail.com", "displayName": "Saravanan", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-01T14:05:31.000+0000", "updated": "2014-03-01T14:05:31.000+0000" }, { "id": "295170", "author": { "name": "sara.jul26@gmail.com", "key": "sara.jul26@gmail.com", "displayName": "Saravanan", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Sorry, In 3.2.1. GA it is fixed. ", "updateAuthor": { "name": "sara.jul26@gmail.com", "key": "sara.jul26@gmail.com", "displayName": "Saravanan", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-01T14:13:31.000+0000", "updated": "2014-03-01T14:13:31.000+0000" }, { "id": "295633", "author": { "name": "dmegarry", "key": "dmegarry", "displayName": "Dennis Megarry", "active": true, "timeZone": "America/Havana" }, "body": "This issue is not fixed on the Windows 64bit version (3.2.1.201402041146 with all updates).. \r\n\r\nBuildfile: C:\\Users\\dmegarry_2\\Downloads\\TitaniumAnimator-master\\android\\build.xml\r\npython.set.exec:\r\npython.check:\r\n [echo] Testing for Python\r\n [exec] Python 2.7.6\r\ninit:\r\nprocess.annotations:\r\ngenerate.v8.bindings:\r\n [java] Generating C:\\Users\\dmegarry_2\\Downloads\\TitaniumAnimator-master\\android\\build\\generated\\jni\\com.animecyc.animator.AnimatorModule.h\r\n [java] Generating C:\\Users\\dmegarry_2\\Downloads\\TitaniumAnimator-master\\android\\build\\generated\\jni\\com.animecyc.animator.AnimatorModule.cpp\r\ngenerate.bindings:\r\npre.compile:\r\njs.compile:\r\nndk.build:\r\n [copy] Copying 9 files to C:\\Users\\DMEGAR~1\\AppData\\Local\\Temp\\dmegarry_2\\animator-generated\r\n [exec] Android NDK: WARNING:jni/Android.mk:com.animecyc.animator: non-system libraries in linker flags: -lkroll-v8 \r\n [exec] Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES jni/Android.mk:35: warning: overriding commands for target `C:/Users/DMEGAR~1/AppData/Local/Temp/dmegarry_2/animator-generated/KrollGeneratedBindings.cpp'\r\n [exec] jni/Android.mk:35: warning: ignoring old commands for target `C:/Users/DMEGAR~1/AppData/Local/Temp/dmegarry_2/animator-generated/KrollGeneratedBindings.cpp'Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the \r\n [exec] Android NDK: current module \r\n [exec] jni/Android.mk:38: warning: overriding commands for target `C:/Users/DMEGAR~1/AppData/Local/Temp/dmegarry_2/animator-generated/BootstrapJS.cpp'\r\n [exec] jni/Android.mk:38: warning: ignoring old commands for target `C:/Users/DMEGAR~1/AppData/Local/Temp/dmegarry_2/animator-generated/BootstrapJS.cpp'\r\n [exec] jni/Android.mk:35: warning: overriding commands for target `C:/Users/DMEGAR~1/AppData/Local/Temp/dmegarry_2/animator-generated/KrollGeneratedBindings.cpp'\r\n [exec] jni/Android.mk:35: warning: ignoring old commands for target `C:/Users/DMEGAR~1/AppData/Local/Temp/dmegarry_2/animator-generated/KrollGeneratedBindings.cpp'\r\n [exec] jni/Android.mk:38: warning: overriding commands for target `C:/Users/DMEGAR~1/AppData/Local/Temp/dmegarry_2/animator-generated/BootstrapJS.cpp'\r\n [exec] jni/Android.mk:38: warning: ignoring old commands for target `C:/Users/DMEGAR~1/AppData/Local/Temp/dmegarry_2/animator-generated/BootstrapJS.cpp'\r\n [exec] Android NDK: WARNING:jni/Android.mk:com.animecyc.animator: non-system libraries in linker flags: -lkroll-v8 \r\n [exec] Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES \r\n [exec] Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the \r\n [exec] Android NDK: current module \r\n [exec] Android NDK: WARNING:jni/Android.mk:com.animecyc.animator: non-system libraries in linker flags: -lkroll-v8 \r\n [exec] Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES \r\n [exec] Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the \r\n [exec] Android NDK: current module \r\n [exec] [armeabi] Compile++ thumb: com.animecyc.animator <= com.animecyc.animator.AnimatorModule.cpp\r\n [exec] 'gperf' is not recognized as an internal or external command,\r\n [exec] operable program or batch file.\r\n [exec] make.exe: *** [C:/Users/DMEGAR~1/AppData/Local/Temp/dmegarry_2/animator-generated/KrollGeneratedBindings.cpp] Error 1\r\n [exec] make.exe: *** Deleting file `C:/Users/DMEGAR~1/AppData/Local/Temp/dmegarry_2/animator-generated/KrollGeneratedBindings.cpp'\r\n [exec] gperf -L C++ -E -t \"C:/Users/DMEGAR~1/AppData/Local/Temp/dmegarry_2/animator-generated/KrollGeneratedBindings.gperf\" > \"C:/Users/DMEGAR~1/AppData/Local/Temp/dmegarry_2/animator-generated/KrollGeneratedBindings.cpp\"\r\n\r\nBUILD FAILED\r\nC:\\Users\\dmegarry_2\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.2.1.GA\\module\\android\\build.xml:326: The following error occurred while executing this line:\r\nC:\\Users\\dmegarry_2\\AppData\\Roaming\\Titanium\\mobilesdk\\win32\\3.2.1.GA\\module\\android\\build.xml:281: exec returned: 2\r\n\r\nTotal time: 2 seconds", "updateAuthor": { "name": "dmegarry", "key": "dmegarry", "displayName": "Dennis Megarry", "active": true, "timeZone": "America/Havana" }, "created": "2014-03-04T22:05:32.000+0000", "updated": "2014-03-04T22:05:32.000+0000" }, { "id": "295643", "author": { "name": "dmegarry", "key": "dmegarry", "displayName": "Dennis Megarry", "active": true, "timeZone": "America/Havana" }, "updateAuthor": { "name": "dmegarry", "key": "dmegarry", "displayName": "Dennis Megarry", "active": true, "timeZone": "America/Havana" }, "created": "2014-03-04T22:26:38.000+0000", "updated": "2014-03-04T22:26:38.000+0000" }, { "id": "300171", "author": { "name": "reyjexter", "key": "reyjexter", "displayName": "Rey Bumalay", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Same here. I do have this problem on windows 7 Ti Mobile 3.2.2.GA.\r\n\r\nI also checked and LOCAL_DISABLE_FORMAT_STRING_CHECKS=true is being generated on Android.mk file.\r\n\r\n", "updateAuthor": { "name": "reyjexter", "key": "reyjexter", "displayName": "Rey Bumalay", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-08T01:32:06.000+0000", "updated": "2014-04-08T01:32:06.000+0000" }, { "id": "338369", "author": { "name": "atticoos", "key": "atticoos", "displayName": "Atticus White", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Having issues as well. Using the latest 3.4.1.GA, as well as the versions discussed in this thread (3.2.1.GA, 3.2.2.GA).\r\n\r\nI create a project with `ti create -t module -p android` and build right after creating it. It throws a lot of warnings, and then throws a ton of syntax errors:\r\n [exec] In file included from jni/com.atticoos.titanium.okhttp.ExampleProxy.cpp:10:0:\r\n [exec] jni/com.atticoos.titanium.okhttp.ExampleProxy.h:22:1: error: expected class-name before '{' token\r\n [exec] jni/com.atticoos.titanium.okhttp.ExampleProxy.cpp: In constructor 'com::atticoos::titanium::okhttp::titaniumokhttp::ExampleProxy::ExampleProxy(jobject)':\r\n [exec] jni/com.atticoos.titanium.okhttp.ExampleProxy.cpp:38:65: error: expected class-name before '(' token\r\n [exec] jni/com.atticoos.titanium.okhttp.ExampleProxy.cpp:38:65: error: expected '{' before '(' token\r\n [exec] jni/com.atticoos.titanium.okhttp.ExampleProxy.cpp: At global scope:\r\n [exec] jni/com.atticoos.titanium.okhttp.ExampleProxy.cpp:39:1: error: expected constructor, destructor, or type conversion before '{' token\r\n [exec] jni/com.atticoos.titanium.okhttp.ExampleProxy.cpp: In static member function 'static void com::atticoos::titanium::okhttp::titaniumokhttp::ExampleProxy::dispose()':\r\n\r\n\r\n and the list goes on", "updateAuthor": { "name": "atticoos", "key": "atticoos", "displayName": "Atticus White", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-08T17:53:45.000+0000", "updated": "2015-01-08T17:53:45.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }