How to build SpiderMonkey for Android arm64?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to build SpiderMonkey for Android arm64?

Joshua Astray
Hi, guys.

I'm finding a way to build SpiderMonkey for Android arm64 arch with NDKr10. I tried with:

configure --with-android-ndk=$NDK_ROOT \
             --with-android-sdk=$HOME/bin/android-sdk \
             --with-android-toolchain=$NDK_ROOT/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64 \
             --with-android-version=21 \
             --enable-application=mobile/android \
             --with-android-gnu-compiler-version=4.9 \
             --with-arch=armv8-a \
             --enable-android-libstdcxx \
             --target=aarch64-linux-android-4.9

It faild with "configure: error: installation or configuration problem: C compiler cannot create executables.". Seems like the gcc is not found.

So should I modify the .m4 and configure.in? And is there any information where I should modify? Any help is appreciated.

Thanks.
Joshua
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Fwd: How to build SpiderMonkey for Android arm64?

Sean Stangl
---------- Forwarded message ----------
From: Sean Stangl <[hidden email]>
Date: Wed, Feb 11, 2015 at 11:42 AM
Subject: Re: How to build SpiderMonkey for Android arm64?
To: Joshua Astray <[hidden email]>


ARM64 support hasn't landed in trunk yet. If you'd like, you can try our
development branch at https://github.com/sstangl/js-arm64. The fast JITs
aren't fully supported yet. To run most scripts, you will need to pass
"--no-asmjs --no-ion". We're mostly testing it on x86_64 with a simulator
(--enable-arm64-simulator), so if you notice problems on-device, please
file bugs!

If your Android system has ARMv7 libraries, you can also try to build
SpiderMonkey to target that arch. ARMv8 chips can run those executables as
well. You'll probably have to modify configure.in and introduce a new
configure argument. If you go this route, please upload your patch to
bugzilla!

Sean

On Tue, Feb 10, 2015 at 9:50 PM, Joshua Astray <[hidden email]>
wrote:

> Hi, guys.
>
> I'm finding a way to build SpiderMonkey for Android arm64 arch with
> NDKr10. I tried with:
>
> configure --with-android-ndk=$NDK_ROOT \
>              --with-android-sdk=$HOME/bin/android-sdk \
>
>  --with-android-toolchain=$NDK_ROOT/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64
> \
>              --with-android-version=21 \
>              --enable-application=mobile/android \
>              --with-android-gnu-compiler-version=4.9 \
>              --with-arch=armv8-a \
>              --enable-android-libstdcxx \
>              --target=aarch64-linux-android-4.9
>
> It faild with "configure: error: installation or configuration problem: C
> compiler cannot create executables.". Seems like the gcc is not found.
>
> So should I modify the .m4 and configure.in? And is there any information
> where I should modify? Any help is appreciated.
>
> Thanks.
> Joshua
> _______________________________________________
> dev-tech-js-engine mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/dev-tech-js-engine
>
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Re: How to build SpiderMonkey for Android arm64?

Joshua Astray
In reply to this post by Joshua Astray
OK. Thank you, Sean.
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine