Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6553] Android: Modules: Unable to build Bump module

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2011-12-13T16:43:56.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-50, Release 1.8.0.1, Release 2.0.0
ComponentsAndroid
Labelsbranch-v8, merge-1.8.0.1, verified-1.8.0.1
ReporterJeff English
AssigneeBill Dawson
Created2011-12-09T17:52:02.000+0000
Updated2012-10-17T14:53:58.000+0000

Description

Building the Bump 2.0 module for Android throws an error during the build. The build output is as follows:
JEnglish-MBP:bump jenglish$ ant
Buildfile: /Users/jenglish/titanium_mobile_modules/android/bump/build.xml

init:
    [mkdir] Created dir: /Users/jenglish/titanium_mobile_modules/android/bump/build/classes
    [mkdir] Created dir: /Users/jenglish/titanium_mobile_modules/android/bump/dist

process.annotations:
    [mkdir] Created dir: /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/json
    [javac] Compiling 2 source files to /Users/jenglish/titanium_mobile_modules/android/bump/build/classes
    [javac] Note: [KrollBindingGen] Running Kroll binding generator.
    [javac] Note: [KrollBindingGen] No binding data found, creating new data file: org.appcelerator.titanium.bindings/bump.json
    [javac] Note: [KrollBindingGen] Found binding for module bump
    [javac] Note: [KrollBindingGen] Generating JSON: /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/json/org/appcelerator/titanium/bindings/bump.json
    [javac] warning: The following options were not recognized by any processor: '[kroll.checkTiContext]'
    [javac] Note: /Users/jenglish/titanium_mobile_modules/android/bump/src/ti/modules/titanium/bump/BumpModule.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

generate.rhino.bindings:
     [java] Generating /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/java/ti/bump/BumpModulePrototype.java
     [java] Generating /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/java/bumpGeneratedBindings.java

generate.rhino.idswitch:
     [echo] Generating IDs for /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/java/bumpGeneratedBindings.java
     [echo] Generating IDs for /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/java/ti/bump/BumpModulePrototype.java

generate.v8.bindings:
     [java] Generating /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/jni/ti.bump.BumpModule.h
     [java] Generating /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/jni/ti.bump.BumpModule.cpp

generate.bindings:

pre.compile:

ndk.build:
     [copy] Copying 1 file to /Users/jenglish/titanium_mobile_modules/android/bump/build/generated
     [copy] Copying 1 file to /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/jni
     [exec] jni/Android.mk:24: warning: overriding commands for target /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/KrollGeneratedBindings.cpp'
     [exec] jni/Android.mk:24: warning: ignoring old commands for target /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/KrollGeneratedBindings.cpp'
     [exec] jni/Android.mk:27: warning: overriding commands for target /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/BootstrapJS.cpp'
     [exec] jni/Android.mk:27: warning: ignoring old commands for target /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/BootstrapJS.cpp'
     [exec] Compile++ thumb  : ti.bump <= ti.bump.BumpModule.cpp
     [exec] gperf -L C++ -E -t "/Users/jenglish/titanium_mobile_modules/android/bump/build/generated/KrollGeneratedBindings.gperf" > "/Users/jenglish/titanium_mobile_modules/android/bump/build/generated/KrollGeneratedBindings.cpp"
     [exec] "/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/module/android/js2c.py" "/Users/jenglish/titanium_mobile_modules/android/bump/build/generated/BootstrapJS.cpp" "/Users/jenglish/titanium_mobile_modules/android/bump/build/generated/bootstrap.js"
     [exec] Compile++ thumb  : ti.bump <= BumpBootstrap.cpp
     [exec] In file included from jni/../BumpBootstrap.cpp:17:
     [exec] /Users/jenglish/titanium_mobile_modules/android/bump/build/generated/KrollGeneratedBindings.gperf:13: warning: declaration 'struct titanium::bindings::BindEntry' does not declare anything
     [exec] jni/../BumpBootstrap.cpp: In function 'v8::Handle<v8::Value> Bump_getBinding(const v8::Arguments&)':
     [exec] jni/../BumpBootstrap.cpp:47: error: '::BumpBindings' has not been declared
     [exec] jni/../BumpBootstrap.cpp: In function 'void Bump_dispose()':
     [exec] jni/../BumpBootstrap.cpp:92: error: '::BumpBindings' has not been declared
     [exec] make: *** [/Users/jenglish/titanium_mobile_modules/android/bump/build/generated/obj/local/armeabi/objs/ti.bump/__/BumpBootstrap.o] Error 1

BUILD FAILED
/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/module/android/build.xml:226: exec returned: 2

Comments

  1. Natalie Huynh 2011-12-19

    Tested with OSX 10.6.8 with 1.8.0.1.RC3, Builds Successfully, need to verify in 1.9.0 before closing
  2. Wilson Luu 2012-01-11

    Closing bug. Already verified fix on 1.8.0.1
  3. Amanda Glosson 2012-10-17

    Any ideas what I could be doing wrong if I am still experiencing this error with SDK 2.1.2 (Android V8) on windows 7 ? This is the log from building my module:
       Buildfile: C:\Users\AmandaMa\TitaniumModulesWorkspace\build.xml
       init:
       process.annotations:
           [javac] Compiling 2 source files to C:\Users\AmandaMa\TitaniumModulesWorkspace\build\classes
           [javac] Note: [KrollBindingGen] Running Kroll binding generator.
           [javac] Note: [KrollBindingGen] Succesfully loaded existing binding data: C:/Users/AmandaMa/TitaniumModulesWorkspace/build/generated/json/org/appcelerator/titanium/bindings/titaniummodulesworkspace.json
           [javac] Note: [KrollBindingGen] Found binding for module BBSwiperStateChangeListener
           [javac] Note: [KrollBindingGen] Found binding for proxy Swiper
           [javac] Note: [KrollBindingGen] Generating JSON: file:/C:/Users/AmandaMa/TitaniumModulesWorkspace/build/generated/json/org/appcelerator/titanium/bindings/titaniummodulesworkspace.json
           [javac] warning: The following options were not recognized by any processor: '[kroll.checkTiContext]'
       generate.rhino.bindings:
            [java] Generating C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\java\com\blackbaud\RoamDataModuleTest\ExampleProxyPrototype.java
            [java] Generating C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\java\com\blackbaud\RoamDataModuleTest\BBSwiperStateChangeListenerPrototype.java
            [java] Generating C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\java\com\blackbaud\RoamDataModuleTest\TitaniummodulesworkspaceModulePrototype.java
            [java] Generating C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\java\com\blackbaud\RoamDataModuleTest\BBSwiperStateChangeListenerModulePrototype.java
            [java] Generating C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\java\com\blackbaud\RoamDataModuleTest\SwiperProxyPrototype.java
            [java] Generating C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\java\titaniummodulesworkspaceGeneratedBindings.java
       generate.rhino.idswitch:
            [echo] Generating IDs for C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\java\com\blackbaud\RoamDataModuleTest\BBSwiperStateChangeListenerBootstrap.java
            [echo] Generating IDs for C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\java\com\blackbaud\RoamDataModuleTest\BBSwiperStateChangeListenerModulePrototype.java
            [echo] Generating IDs for C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\java\com\blackbaud\RoamDataModuleTest\BBSwiperStateChangeListenerPrototype.java
            [echo] Generating IDs for C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\java\com\blackbaud\RoamDataModuleTest\ExampleProxyPrototype.java
            [echo] Generating IDs for C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\java\com\blackbaud\RoamDataModuleTest\SwiperProxyPrototype.java
            [echo] Generating IDs for C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\java\com\blackbaud\RoamDataModuleTest\TitaniummodulesworkspaceBootstrap.java
            [echo] Generating IDs for C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\java\com\blackbaud\RoamDataModuleTest\TitaniummodulesworkspaceModulePrototype.java
            [echo] Generating IDs for C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\java\titaniummodulesworkspaceGeneratedBindings.java
       generate.v8.bindings:
            [java] Generating C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\jni\com.blackbaud.RoamDataModuleTest.ExampleProxy.h
            [java] Generating C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\jni\com.blackbaud.RoamDataModuleTest.ExampleProxy.cpp
            [java] Generating C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\jni\com.blackbaud.RoamDataModuleTest.BBSwiperStateChangeListener.h
            [java] Generating C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\jni\com.blackbaud.RoamDataModuleTest.BBSwiperStateChangeListener.cpp
            [java] Generating C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\jni\com.blackbaud.RoamDataModuleTest.TitaniummodulesworkspaceModule.h
            [java] Generating C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\jni\com.blackbaud.RoamDataModuleTest.TitaniummodulesworkspaceModule.cpp
            [java] Generating C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\jni\com.blackbaud.RoamDataModuleTest.BBSwiperStateChangeListenerModule.h
            [java] Generating C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\jni\com.blackbaud.RoamDataModuleTest.BBSwiperStateChangeListenerModule.cpp
            [java] Generating C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\jni\com.blackbaud.RoamDataModuleTest.SwiperProxy.h
            [java] Generating C:\Users\AmandaMa\TitaniumModulesWorkspace\build\generated\jni\com.blackbaud.RoamDataModuleTest.SwiperProxy.cpp
       generate.bindings:
       pre.compile:
       js.compile:
       ndk.build:
            [copy] Copying 57 files to C:\Users\AmandaMa\AppData\Local\Temp\AmandaMa\titaniummodulesworkspace-generated
            [exec] jni/Android.mk:24: warning: overriding commands for target C:/Users/AmandaMa/AppData/Local/Temp/AmandaMa/titaniummodulesworkspace-generated/KrollGeneratedBindings.cpp'
            [exec] jni/Android.mk:24: warning: ignoring old commands for target C:/Users/AmandaMa/AppData/Local/Temp/AmandaMa/titaniummodulesworkspace-generated/KrollGeneratedBindings.cpp'
            [exec] jni/Android.mk:27: warning: overriding commands for target C:/Users/AmandaMa/AppData/Local/Temp/AmandaMa/titaniummodulesworkspace-generated/BootstrapJS.cpp'
            [exec] jni/Android.mk:27: warning: ignoring old commands for target C:/Users/AmandaMa/AppData/Local/Temp/AmandaMa/titaniummodulesworkspace-generated/BootstrapJS.cpp'
            [exec] jni/Android.mk:24: warning: overriding commands for target C:/Users/AmandaMa/AppData/Local/Temp/AmandaMa/titaniummodulesworkspace-generated/KrollGeneratedBindings.cpp'
            [exec] jni/Android.mk:24: warning: ignoring old commands for target C:/Users/AmandaMa/AppData/Local/Temp/AmandaMa/titaniummodulesworkspace-generated/KrollGeneratedBindings.cpp'
            [exec] jni/Android.mk:27: warning: overriding commands for target C:/Users/AmandaMa/AppData/Local/Temp/AmandaMa/titaniummodulesworkspace-generated/BootstrapJS.cpp'
            [exec] jni/Android.mk:27: warning: ignoring old commands for target C:/Users/AmandaMa/AppData/Local/Temp/AmandaMa/titaniummodulesworkspace-generated/BootstrapJS.cpp'
            [exec] "Compile++ thumb : com.blackbaud.RoamDataModuleTest <= com.blackbaud.RoamDataModuleTest.BBSwiperStateChangeListener.cpp
            [exec] In file included from jni/com.blackbaud.RoamDataModuleTest.BBSwiperStateChangeListener.h:10:0,
            [exec]                  from jni/com.blackbaud.RoamDataModuleTest.BBSwiperStateChangeListener.cpp:10:
            [exec] C:/Android/android-ndk-r8b/platforms/android-3/arch-arm/usr/include/jni.h:592:13: note: the mangling of 'va_list' has changed in GCC 4.4
            [exec] "Compile++ thumb : com.blackbaud.RoamDataModuleTest <= com.blackbaud.RoamDataModuleTest.BBSwiperStateChangeListenerModule.cpp
            [exec] In file included from jni/com.blackbaud.RoamDataModuleTest.BBSwiperStateChangeListenerModule.h:10:0,
            [exec]                  from jni/com.blackbaud.RoamDataModuleTest.BBSwiperStateChangeListenerModule.cpp:10:
            [exec] C:/Android/android-ndk-r8b/platforms/android-3/arch-arm/usr/include/jni.h:592:13: note: the mangling of 'va_list' has changed in GCC 4.4
            [exec] "Compile++ thumb : com.blackbaud.RoamDataModuleTest <= com.blackbaud.RoamDataModuleTest.ExampleProxy.cpp
            [exec] In file included from jni/com.blackbaud.RoamDataModuleTest.ExampleProxy.h:10:0,
            [exec]                  from jni/com.blackbaud.RoamDataModuleTest.ExampleProxy.cpp:10:
            [exec] C:/Android/android-ndk-r8b/platforms/android-3/arch-arm/usr/include/jni.h:592:13: note: the mangling of 'va_list' has changed in GCC 4.4
            [exec] "Compile++ thumb : com.blackbaud.RoamDataModuleTest <= com.blackbaud.RoamDataModuleTest.SwiperProxy.cpp
            [exec] In file included from jni/com.blackbaud.RoamDataModuleTest.SwiperProxy.h:10:0,
            [exec]                  from jni/com.blackbaud.RoamDataModuleTest.SwiperProxy.cpp:10:
            [exec] C:/Android/android-ndk-r8b/platforms/android-3/arch-arm/usr/include/jni.h:592:13: note: the mangling of 'va_list' has changed in GCC 4.4
            [exec] "Compile++ thumb : com.blackbaud.RoamDataModuleTest <= com.blackbaud.RoamDataModuleTest.TitaniummodulesworkspaceModule.cpp
            [exec] In file included from jni/com.blackbaud.RoamDataModuleTest.TitaniummodulesworkspaceModule.h:10:0,
            [exec]                  from jni/com.blackbaud.RoamDataModuleTest.TitaniummodulesworkspaceModule.cpp:10:
            [exec] C:/Android/android-ndk-r8b/platforms/android-3/arch-arm/usr/include/jni.h:592:13: note: the mangling of 'va_list' has changed in GCC 4.4
            [exec] "Compile++ thumb : com.blackbaud.RoamDataModuleTest <= BBSwiperStateChangeListenerBootstrap.cpp
            [exec] In file included from jni/../BBSwiperStateChangeListenerBootstrap.cpp:9:0:
            [exec] C:/Android/android-ndk-r8b/platforms/android-3/arch-arm/usr/include/jni.h:592:13: note: the mangling of 'va_list' has changed in GCC 4.4
            [exec] In file included from jni/../BBSwiperStateChangeListenerBootstrap.cpp:17:0:
            [exec] C:/Users/AmandaMa/AppData/Local/Temp/AmandaMa/titaniummodulesworkspace-generated/KrollGeneratedBindings.gperf:14:28: warning: declaration 'struct titanium::bindings::BindEntry' does not declare anything [enabled by default]
            [exec] jni/../BBSwiperStateChangeListenerBootstrap.cpp: In function 'v8::Handle<v8::Value> BBSwiperStateChangeListener_getBinding(const v8::Arguments&)':
            [exec] jni/../BBSwiperStateChangeListenerBootstrap.cpp:47:48: error: '::BBSwiperStateChangeListenerBindings' has not been declared
            [exec] jni/../BBSwiperStateChangeListenerBootstrap.cpp: In function 'void BBSwiperStateChangeListener_dispose()':
            [exec] jni/../BBSwiperStateChangeListenerBootstrap.cpp:92:6: error: '::BBSwiperStateChangeListenerBindings' has not been declared
            [exec] jni/../BBSwiperStateChangeListenerBootstrap.cpp: In function 'void Java_com_blackbaud_RoamDataModuleTest_BBSwiperStateChangeListenerBootstrap_nativeBootstrap(JNIEnv*, jobject)':
            [exec] jni/../BBSwiperStateChangeListenerBootstrap.cpp:115:49: error: '::BBSwiperStateChangeListenerBindings' has not been declared
            [exec] make: *** [C:\Users\AmandaMa\AppData\Local\Temp\/AmandaMa/titaniummodulesworkspace-generated/obj/local/armeabi/objs/com.blackbaud.RoamDataModuleTest/__/BBSwiperStateChangeListenerBootstrap.o] Error 1
       
       BUILD FAILED
       C:\Users\AmandaMa\AppData\Roaming\Titanium\mobilesdk\win32\2.1.2.GA\module\android\build.xml:362: The following error occurred while executing this line:
       C:\Users\AmandaMa\AppData\Roaming\Titanium\mobilesdk\win32\2.1.2.GA\module\android\build.xml:317: exec returned: 2
       
       Total time: 6 seconds
       
  4. Amanda Glosson 2012-10-17

    I built the same module code against SDK 2.0.2 and it built fine. strange.

JSON Source