Errors while building android ICS

234 views
Skip to first unread message

srinivasan shanmugam

unread,
Apr 5, 2012, 3:07:14 AM4/5/12
to android-porting
Dear All,


I am facing the below problem while building the android ICS

appusony@ubuntu:~/rowboat-android$ make TARGET_PRODUCT=beagleboard
OMAPES=5.x
/bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/
bin/arm-linux-androideabi-gcc: No such file or directory
/bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/
bin/arm-linux-androideabi-gcc: No such file or directory
/bin/bash: prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/
bin/arm-linux-androideabi-gcc: No such file or directory
/bin/bash: bison: command not found
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.3
TARGET_PRODUCT=beagleboard
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IML74K
============================================
Checking build tools versions...
************************************************************
You are attempting to build with the incorrect version
of java.

Your version is: java version "1.6.0_20".
The correct version is: Java SE 1.6.

Please follow the machine setup instructions at
http://source.android.com/source/download.html
************************************************************
build/core/main.mk:131: *** stop. Stop.


But when i tried to install Java 6: using the below commands

$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid
partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk


I'm getting the below errors


appusony@ubuntu:~$ sudo apt-get install sun-java6-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jdk is not available, but is referred to by another
package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package sun-java6-jdk has no installation candidate


I followed the different ways in solving the above error from net,
but i was not able to succeed further

Could ne body pls kindly do the needful in resolving the above errors


Any help woud be greatly appreciated


Advanced thanks,
sriniva...@gmail.com

aulty

unread,
May 22, 2012, 5:40:31 AM5/22/12
to android...@googlegroups.com
I believe that the path to the stock arm cross compiler is prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/arm-linux-androideabi/bin/gcc as opposed to the one that it's trying to use in your make command.

This toolchain gets setup in build/envsetup.sh
toolchaindir=toolchain/arm-linux-androideabi-4.4.x/bin

Try: source build/envsetup.sh
and maybe running choosecombo and choosing beagleboard as the product.

Alternatively you should be able to specify a toolchain for android to use on the command line with TARGET_TOOLS_PREFIX=

HTH,
Matt

aulty

unread,
May 22, 2012, 5:44:02 AM5/22/12
to android...@googlegroups.com
Try running 'source build/envsetup.sh' (the toolchain to use gets setup in that script).
It's likely that toolchain its trying to use doesn't exist, that doesn't seem to be the default one, which is established in envsetup.sh
You can try running 'choosecombo' after the source command as well and choosing product as beagleboard.

You should be able to specify a custom toolchain with TARGET_TOOLS_PREFIX= on the command line.


On Thursday, April 5, 2012 8:07:14 AM UTC+1, srinivasan shanmugam wrote:

Alvin Wong

unread,
May 23, 2012, 11:59:36 AM5/23/12
to android-porting
Perhaps Ubuntu 10.04 LTS has become unsupported, so you may try
replacing "lucid" by "precise" (Ubuntu 12.04 LTS).

On Apr 5, 3:07 pm, srinivasan shanmugam <srinivasan....@gmail.com>
wrote:
> srinivasan....@gmail.com

Alvin Wong

unread,
May 23, 2012, 11:56:04 AM5/23/12
to android-porting
Hi,

I believe you shall read this http://source.android.com/source/initializing.html
for the procedure to install java6.

Good luck,
Alvin Wong

On Apr 5, 3:07 pm, srinivasan shanmugam <srinivasan....@gmail.com>
wrote:
> srinivasan....@gmail.com

Ron M

unread,
May 24, 2012, 1:30:40 AM5/24/12
to alvin...@gmail.com, android-porting
DO NOT switch to precise.
It is not supported "straight out of the box". You can work around it,
but it's not worth the pain if you are already using Ubuntu Lucid
(10.04)

Just go to Oracle (formerly sun) website, and download and install the
sun(oracle) JDK for your machine.

Note:
JDK version-7 is OK, and Open-JDK, which is ubuntu's default is also
sometimes OK - but you would have to disable the "error stop"
directive on
build/core/main.mk
( Search for something:
# Check for the correct version of java
java_version := $(shell java -version 2>&1 | head -n 1 | grep '^java
.*[ "]1\.6[\. "$$]')
)

-Ron
> --
> unsubscribe: android-porti...@googlegroups.com
> website: http://groups.google.com/group/android-porting
Reply all
Reply to author
Forward
0 new messages