AnsweredAssumed Answered

KK4.4.3 build failed at gcc check

Question asked by torus1000 on Mar 10, 2015
Latest reply on Mar 17, 2015 by SergioSolis

Hi,

 

I tried to build Android KK4.4.3 image on my 32bit ubuntu14.04 host but error occured at lunch command.

It seemed x86_64 gcc(64b) used instead of i686 gcc(32b).

Can anybody help me to fix gcc selection as i686?

 

Thanks.

---
[Commands]
...
$ cd ~/myandroid
$ source build/envsetup.sh
$ lunch sabresd_6dq-user
$ make PRODUCT-sabresd_6dq-user 2>&1 | tee build_sabresd_6dq_android.log

[lunch error message]
  /bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc: cannot execute binary file: Exec format error

[make error massages]
  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
  ...

[Misc]
$ uname -sm
  Linux i686

$ file prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc
  prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-gcc:
  ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped

Outcomes