ricardoquesada / Spidermonkey

SpiderMonkey

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build for android arm64 error

YanKawaYu opened this issue · comments

commented

I'm trying to build Spidermonkey for android arm64. Here is what I added to build.sh in directory 'build-android':

TOOLS_ARCH=arm-linux-androideabi
TARGET_NAME=arm-linux-androideabi
CPU_ARCH=armv8-a
RELEASE_ARCH_DIR=arm64-v8a
GCC_VERSION=4.9
TOOLNAME_PREFIX=arm-linux-androideabi
build_with_arch

But somehow I got an error below:

/opt/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld: error: /var/folders/r2/lwdsvm0s1wbcd_hvk_n970080000gn/T//ccYDd7hQ.o: unknown CPU architecture
collect2: error: ld returned 1 exit status
configure: failed program was:

line 8916 "configure"

include "confdefs.h"

include

int main() {
int *foo = new int;
; return 0; }

Is there any place that I wrote wrong? Thank you very much!

No idea. I haven't tried it on android64... but I know it compiles ok iOS64.

commented

Thank you for replying! I'll keep trying.