This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[OMAP4470/4AJ.2.5P2] Android release build problem

Hi,

   The "userdebug" option can be built well on 4AJ.2.5P2,but fails with "user" option. The error message is "make: *** No rule to make target `out/target/common/obj/JAVA_LIBRARIES/framework2_intermediates/javalib.jar', needed by `out/target/product/blaze_tablet/dex_bootjars/system/framework/framework2.odex'.  Stop.
make: *** Waiting for unfinished jobs....".

   And the built steps are

    source build/envsetup.sh
    lunch blaze_tablet-user

 Anybody experienced this problem?

regards,

Sean

  • Hi Sean,

    Have you tried using make -j4

    If it doesn't help follow those steps ->
    1. Remove existing AOSP development keys:
    $ rm build/target/product/security/*.p*
    2. Create new keys (replace c,st,l,o,ou,cn,emailaddress with your actual values)
    $ ./development/tools/make_key testkey /C=US/ST=CAL/L=LOS/O=DemoOrg/OU=demoUnit/CN=Android/emailAddress=demo...@example.com
    $ ./development/tools/make_key shared /C=US/ST=CAL/L=LOS/O=DemoOrg/OU=demoUnit/CN=Android/emailAddress=demo...@example.com
    $ ./development/tools/make_key media  /C=US/ST=CAL/L=LOS/O=DemoOrg/OU=demoUnit/CN=Android/emailAddress=demo...@example.com
    $ ./development/tools/make_key platform  /C=US/ST=CAL/L=LOS/O=DemoOrg/OU=demoUnit/CN=Android/emailAddress=demo...@example.com
    3. Validate the generated Keys:
    $ cd /build/target/product/security
    $  openssl x509 -noout -subject -issuer -in shared.x509.pem 
    $  openssl x509 -noout -subject -issuer -in media.x509.pem
    $  openssl x509 -noout -subject -issuer -in platform.x509.pem
    $  openssl x509 -noout -subject -issuer -in testkey.x509.pem
    4. modify file "\build\tools\signapk\SignApk.java" and in "readPassword(File keyFile)" method return the password(private rsa key) you have used in step 2.
    5. Everything ready build the ROM: 
    $ source build/envsetup.sh
    $ lunch full_<product_name>-user eng 
    $ make dist -j32
    Regards,
    Boyko
  • Hi Boyko,

          I have also checked the code baseline with 4AJ.2.5P2 with user build. Also patched the solution by your suggestion to the baseline code. Still build error with the same error message. Somebody experienced the same problem(http://qnalist.com/questions/5198905/android-building-build-error-with-user-build-in-android-4-2-2-but-success-in-eng-build), but no resolution on this problem. I will continue on this problem. Anyway,thanks for your suggestion. 

    regards,

    Sean

  • Hi Sean,

    On what machine are you building the sources? Have you checked the java version and does  it have all the libraries that requires? Check for zombie processes in your os while building 

    Regards,

    Boyko

  • Hi Boyko,

           Can you suggest a comaptible JAVA version? Now the JAVA version I am using is jdk1.6.0_45.

          

    regards,

    Sean

  • Hi sean,

    Mine is: build 1.6.0_38-b05, but i am not sure if that is much of a difference.

    execute update-alternatives --config java and be sure to switch to /opt/java-6-oracle/bin/java  

    Regards,

    Boyko

  • Dear Sean,

    I got this issue before, and I cannot find a blaze_tablet-user in my lunch menu.

    The answer from local support is "Not Supported Yet".

    May I know how you put this support into the 4AJ.2.5P2?

    fone@fone-HP-Z220-CMT-Workstation:~/TI/OMAP/OMAP4/ANDROID/4AJ.2.5P2/mydroid$ lunch

    You're building on Linux

    Lunch menu... pick a combo:
    1. full-eng
    2. full_x86-eng
    3. vbox_x86-eng
    4. full_mips-eng
    5. full_grouper-userdebug
    6. full_tilapia-userdebug
    7. mini_armv7a_neon-userdebug
    8. mini_armv7a-userdebug
    9. mini_mips-userdebug
    10. mini_x86-userdebug
    11. full_mako-userdebug
    12. full_maguro-userdebug
    13. full_manta-userdebug
    14. full_toroplus-userdebug
    15. full_toro-userdebug
    16. blaze_tablet-userdebug
    17. blaze_tablet-eng
    18. full_blaze-userdebug
    19. full_blaze-eng
    20. full_omap5sevm-userdebug
    21. full_omap5sevm-eng
    22. full_omap5panda-eng
    23. full_omap5panda-userdebug
    24. full_panda-userdebug

    Which would you like? [full-eng]

    Thank you.

  • Hi Fone,

             I don't place the blaze_tablet-user combo into the menu. Just lunch blaze_tablet-user and environment will be set up as following.

    4AJ.2.5P2/mydroid$ lunch blaze_tablet-user

    ============================================
    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION=4.2.2
    TARGET_PRODUCT=blaze_tablet
    TARGET_BUILD_VARIANT=user
    TARGET_BUILD_TYPE=release
    TARGET_BUILD_APPS=
    TARGET_ARCH=arm
    TARGET_ARCH_VARIANT=armv7-a-neon
    HOST_ARCH=x86
    HOST_OS=linux
    HOST_OS_EXTRA=Linux-2.6.32-67-generic-x86_64-with-Ubuntu-10.04-lucid
    HOST_BUILD_TYPE=release
    BUILD_ID=JDQ39
    OUT_DIR=out
    ============================================

    So,do you mean that blaze_tablet-user should be added into the combo menu?

    regards,

    Sean

  • Hi Boyko,

            My machine info is with 4cores with Ubuntu 10.04 LTS and one core info is as following

            processor       : 0
           vendor_id       : GenuineIntel
           cpu family      : 6
            model           : 60
            model name      : Intel(R) Core(TM) i5-4460  CPU @ 3.20GHz
           stepping        : 3
           cpu MHz         : 800.000
            cache size      : 6144 KB
            physical id     : 0
            siblings        : 4
             core id         : 0
            cpu cores       : 4
            apicid          : 0
            initial apicid  : 0
            fpu             : yes
            fpu_exception   : yes
            cpuid level     : 13
            wp              : yes
            flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx    fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm abm ida arat tpr_shadow vnmi flexpriority ept vpid
            bogomips        : 6385.23
            clflush size    : 64
            cache_alignment : 64
            address sizes   : 39 bits physical, 48 bits virtual
             power management:


     So, the build steps are

            source ./build/envsetup.sh

            lunch blaze_tablet-user

            make -j4

    ==================================================

        

    regards,

    Sean

  • Hi Boyko,

            I just compiled 4AJ.2.1 with the same compiled environment and it can be compiled with user option.

    ============================================
    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION=4.1.1
    TARGET_PRODUCT=blaze_tablet
    TARGET_BUILD_VARIANT=user
    TARGET_BUILD_TYPE=release
    TARGET_BUILD_APPS=
    TARGET_ARCH=arm
    TARGET_ARCH_VARIANT=armv7-a-neon
    HOST_ARCH=x86
    HOST_OS=linux
    HOST_OS_EXTRA=Linux-2.6.32-41-generic-x86_64-with-Ubuntu-10.04-lucid
    HOST_BUILD_TYPE=release
    BUILD_ID=MR1
    OUT_DIR=out
    ============================================

           Can I know your OS type/version with 4AJ.2.5P2 user well build?

    regards,

    Sean

  • Dear Sean,

    Mostly I use the combo menu to set, but only except user build.

    Since I cannot find it in the combo, it seems not verified yet.

    I can pass the build after below modification, and I would like to know if any side effect through this thread.

    remove framework2 in /build/core/dex_preopt.mk

    6 # TODO: replace it with device's BOOTCLASSPATH
    7 DEXPREOPT_BOOT_JARS := core:core-junit:bouncycastle:ext:framework:framework2:ds:telephony-comm on:mms-common:android.policy:services:apache-xml

    Best Regards.

  • Hi Fone,


            Thanks.

             From your suggestion, I rechecked and didn't find "framework2" in the dex_preopt.mk of 4AJ.2.1 baseline code. 

             Maybe that's why it can build well on 4AJ.2.1.  Thanks a lot.

    regards,

    Sean