Building Android requires a x86-64 machine, it is not supported on arm. As
you've found, all of our prebuilt tools are x86-64, and I suspect there are
further issues even if you manage to replace them with arm equivalents, as
that hasn't been tested. There's limited support in Soong for Linux/arm64,
but that's for cross-compiling binaries for that configuration on an x86-64
system.

- Dan

On Tue, Jun 8, 2021 at 7:27 PM kkh <[email protected]> wrote:

> Hi,
>
> Anyone manage to build AOSP on arm host? After repo sync on
> android-11.0.0_r35, did the source envsetup.sh and lunch command, but it
> seem that the build tools is in x86.
>
> Error encountered
> */home/ubuntu/android/build/blueprint/microfactory/microfactory.bash: line
> 62: /home/ubuntu/android/prebuilts/go/linux-x86//bin/go: cannot execute
> binary file: Exec format error*
>
> *You're building on Linux*
>
> *Lunch menu... pick a combo:*
>
> *Which would you like? [aosp_arm-eng] *
> */home/ubuntu/android/build/blueprint/microfactory/microfactory.bash: line
> 62: /home/ubuntu/android/prebuilts/go/linux-x86//bin/go: cannot execute
> binary file: Exec format error*
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-building/19e0f12e-d416-4ac5-83ec-0a89afae7fb6n%40googlegroups.com
> <https://groups.google.com/d/msgid/android-building/19e0f12e-d416-4ac5-83ec-0a89afae7fb6n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/CALQgHdn6uwJM9QZcjndOb3W_YJCjxxrW_CR9Ug1Mn_SVXitnNQ%40mail.gmail.com.

Reply via email to