Building Android Images

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Building Android Images

2,149 Views
kapilkumar
Contributor III

Hello everone

I am trying to build android images for sabre board. I am doing it using ubuntu14.04 & 32-bit operating system.

when i tried to execute the command :

   "make 2>&1 | tee build_sabresd_6dq_android.log"

it is showing me an error like

ERROR: prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/bin/x86_64-linux-ar only run on 64-bit linux

make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a] Error 1

Pl, help me to achieve at a solution for successful building android images.

Thanks & Best Regards to all

Kapil

0 Kudos
Reply
7 Replies

2,013 Views
gary_bisson
Senior Contributor III

Hi,

By looking at the AOSP build requirements you will see that you simply cannot build Android on a 32-bit OS:

Establishing a Build Environment | Android Open Source Project

Regards,

Gary

0 Kudos
Reply

2,013 Views
kapilkumar
Contributor III

Hi

i had done all the steps as stated int the document and for building android , i established the environment required.

0 Kudos
Reply

2,013 Views
gary_bisson
Senior Contributor III

Hi,

The second paragraph says:

"For Gingerbread (2.3.x) and newer versions, including the master branch, a 64-bit environment is required. Older versions can be compiled on 32-bit systems."

As a FYI, this is because the build system includes all the toolchains, those latter include 64-bit binaries that can't run on 32-bit OS.

Regards,

Gary

0 Kudos
Reply

2,013 Views
kapilkumar
Contributor III

Hi  Gary

DO you have any idea about building up on 32-bit OS ???

What changes i have to make during the building, if my requirement is to be tested on 32-bit OS?

Regards,

Kapil Kumar

0 Kudos
Reply

2,013 Views
gary_bisson
Senior Contributor III

Hi Kapil,

It is NOT possible for the reason I explained in my previous post. Sorry but you will have to switch to a 64-bit OS.

Regards,

Gary

0 Kudos
Reply

2,013 Views
kapilkumar
Contributor III

Okay Gary.I changed to 64-bit environment (ubuntu14.04).

But the thing is that when i am trying to execute the below command, my system halts at one point for longer time. Then, after a long wait, i shut down the system forcefully.

Command:

make 2>&1| tee build_ sabresd_6dq_android.log

Gary, FYI , i just wanted to tell you my system specification:

RAM (2GB)

HDD (500Gb).

currently, more than 20Gb space is free for building purpose.

I also tried only "make" command only instead of the above full command. Same problems as above stated, i am facing.

0 Kudos
Reply

2,013 Views
gary_bisson
Senior Contributor III

Hi Kapil,

I'm afraid your setup doesn't match the minimum requirements:

Requirements | Android Open Source Project

"you need at least 16GB of RAM/swap and 100GB or more of disk space in order to build the Android tree"

Regards,

Gary

0 Kudos
Reply