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.

make error while building Android ICS

i'm getting error while building the Android ICS...below is the screen short after giving:

$make TARGET_PRODUCT=omap3evm OMAPES=5.x -j4

:

currently im using Ubuntu 10.04 and changed the java from open jdk to sun jdk by the following commands :

$sudo add-apt-repository ppa:ferramroberto/java

$sudo apt-get update

$sudo apt-get install sun-java6-jdk

is there any problem with the java which i am using??
  • root@livin:/media/Celebrations/android/ICS# ls -la /etc/alternatives/java*
    lrwxrwxrwx 1 root root 36 2012-07-26 10:40 /etc/alternatives/java -> /usr/lib/jvm/java-6-sun/jre/bin/java
    lrwxrwxrwx 1 root root 46 2012-07-26 10:40 /etc/alternatives/java.1.gz -> /usr/lib/jvm/java-6-sun/jre/man/man1/java.1.gz
    lrwxrwxrwx 1 root root 33 2012-07-26 10:40 /etc/alternatives/javac -> /usr/lib/jvm/java-6-sun/bin/javac
    lrwxrwxrwx 1 root root 43 2012-07-26 10:40 /etc/alternatives/javac.1.gz -> /usr/lib/jvm/java-6-sun/man/man1/javac.1.gz
    lrwxrwxrwx 1 root root 35 2012-07-26 10:40 /etc/alternatives/javadoc -> /usr/lib/jvm/java-6-sun/bin/javadoc
    lrwxrwxrwx 1 root root 45 2012-07-26 10:40 /etc/alternatives/javadoc.1.gz -> /usr/lib/jvm/java-6-sun/man/man1/javadoc.1.gz
    lrwxrwxrwx 1 root root 33 2012-07-26 10:40 /etc/alternatives/javah -> /usr/lib/jvm/java-6-sun/bin/javah
    lrwxrwxrwx 1 root root 43 2012-07-26 10:40 /etc/alternatives/javah.1.gz -> /usr/lib/jvm/java-6-sun/man/man1/javah.1.gz
    lrwxrwxrwx 1 root root 33 2012-07-23 11:51 /etc/alternatives/javap -> /usr/lib/jvm/java-6-sun/bin/javap
    lrwxrwxrwx 1 root root 43 2012-07-23 11:51 /etc/alternatives/javap.1.gz -> /usr/lib/jvm/java-6-sun/man/man1/javap.1.gz
    lrwxrwxrwx 1 root root 40 2012-07-23 11:51 /etc/alternatives/java-rmi.cgi -> /usr/lib/jvm/java-6-sun/bin/java-rmi.cgi
    lrwxrwxrwx 1 root root 39 2012-07-23 11:51 /etc/alternatives/java_vm -> /usr/lib/jvm/java-6-sun/jre/bin/java_vm
    lrwxrwxrwx 1 root root 38 2012-07-26 10:25 /etc/alternatives/javaws -> /usr/lib/jvm/java-6-sun/jre/bin/javaws
    lrwxrwxrwx 1 root root 48 2012-07-26 10:25 /etc/alternatives/javaws.1.gz -> /usr/lib/jvm/java-6-sun/jre/man/man1/javaws.1.gz

  • 2 Comments,

    1. It must not be, but check using correct Ubuntu version, 32bits or 64 bits, ICS is compiled in 64Bits unless instructions includes steps for 32 bits modifications, or using correct Java 32bits or 64 bits.

    2. For Sun Java documentation is downloaded apart from regular installation and it was included in Ubuntu repository but it makes references to download it from site. I haven't check how it is handled in the repository you mentioned.

  • i am using ubuntu 32 bit 10.04 version ..........when i  tried to install sun.java i have got the messege that that the package has been removed from the Ubuntu mainline  repository .....further it was found that due to licence issue Ubuntu has removed it and prefer open jdk over sun.jdk.

    Is there something which i have to modify ?or do i have to change the current java?

  • Hello Manuel,

                          Thank for your reply,

                   Last time i'm builded Android 2.3.4 Gingerbread  File system with same Ubuntu version 32 bit with  open jdk   its builted successfully..

                   But in ICS Building time showing  "make error  Unfinished job" ..

                if problem with JDK it will not Start building, i want know clearly this error related to JDK or Ubuntu version .

    Wating for you are Reply

    Thanks in advance 

    Livin Sunny

  • If you made Java installation changes after previous error you must remove the out directory for Android compilation this to remove previous compilation files with the other Java version.

    From GB I started to use Ubuntu 64Bits, for ICS the same Ubuntu 64Bits installation, never tried with 32Bits or the modification to use it, if you are in Ubuntu 10.04 it works ok for GB, but for ICS I moved to Ubuntu 11.04 64Bits, I compiled both GB and ICS with this.

    Like Ubuntu removed Sun Java from their repository it is necessary to do a manual installation, you need to check that downloaded Java version matches with 32 Bits or 64 Bits version you are using for Ubuntu, in this case it will be 64Bits.

    https://wiki.ubuntu.com/LucidLynx/ReleaseNotes/Java6Transition

    following "For more help" link

    https://help.ubuntu.com/community/Java

    Then if you are downloading from Ubuntu site Ubuntu 11.04 today it will not install any Java version by default, after installing Oracle's Java manually it will not register all the binaries, manually instructions only registers the "java" not "javac" or other Java binaries and compilation will break because of this. Then it is needed to run previously shared script to proper register the binaries. Read next link about redirecting binaries.

    http://e2e.ti.com/support/embedded/android/f/509/p/202090/718544.aspx#718544

    I imagine you are using DevKit from next link, Android requirements must be the same, I have some time since I installed GB and ICS for DevKit but procedure should be similar and uses Ubuntu 64Bits.

    http://processors.wiki.ti.com/index.php/TI-Android-ICS-4.0.3-DevKit-3.0.0_DevelopersGuide

    I found some other links that could help with this compilation issues, for example removing -j<n> and other comments.

    http://e2e.ti.com/support/embedded/android/f/509/p/122865/439172.aspx

  • Hello Manuel,

                          Thanks for your quick reply.i have successfully installed the java and build the ICS filesystem by removing the -j<n> ....Thanks once again....