Cross compiling V8 for ARM on Windows

336 views
Skip to first unread message

Mihail Slavchev

unread,
Oct 7, 2013, 7:30:10 AM10/7/13
to v8-u...@googlegroups.com
Hello,

I am trying to compile V8 for ARM using cygwin and ndk-r9. I get the following error:

  CXX(host) /home/slavchev/test/node/deps/v8/out/android_arm.release/obj.host/v8_base.arm/src/platform-posix.o
  CXX(host) /home/slavchev/test/node/deps/v8/out/android_arm.release/obj.host/v8_base.arm/src/platform-linux.o
/tmp/cchi7mgX.s: Assembler messages:
/tmp/cchi7mgX.s:729: Error: no such instruction: `rev16 %ax,%ax'
/tmp/cchi7mgX.s:2111: Error: no such instruction: `rev16 %ax,%ax'
/tmp/cchi7mgX.s:2128: Error: no such instruction: `rev16 %ax,%ax'
/tmp/cchi7mgX.s:2145: Error: no such instruction: `rev %eax,%eax'
/tmp/cchi7mgX.s:2162: Error: no such instruction: `rev %eax,%eax'
tools/gyp/v8_base.arm.host.android_arm.mk:260: recipe for target `/home/slavchev/test/node/deps/v8/out/android_arm.release/obj.host/v8_base.arm/src/platform-posix.o' failed

I tried setting different arm architectures as follows

export CCFLAGS="-march=armv5"
and 
export CCFLAGS="-march=armv7"

but it didn't help.

My GYP knowledge is very poor and I am looking for a guide/article how to compile V8 for ARM on Windows. Any help is appreciated.


Thanks,
Mihail

Rodolph Perfetta

unread,
Oct 7, 2013, 8:40:40 AM10/7/13
to v8-u...@googlegroups.com
Have read the wiki: https://code.google.com/p/v8/wiki/BuildingWithGYP

Cheers,
Rodolph.


--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Mihail Slavchev

unread,
Oct 7, 2013, 9:57:54 AM10/7/13
to v8-u...@googlegroups.com
Hi Rodolph,

Thank you for the quick response. I've read the suggested wiki and http://code.google.com/p/v8/wiki/D8OnAndroid as well but I couldn't find any info about cross compiling V8 for ARM on Windows. There is info about cross compiling V8 for ARM on Linux, though. Unfortunately, this is not my scenario.

I start to think that cross compiling V8 for ARM on Windows is not supported option, though I don't see any reasons for this. I guess I am missing something.



You received this message because you are subscribed to a topic in the Google Groups "v8-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/v8-users/U1zIBW6mBZY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to v8-users+u...@googlegroups.com.

Jakob Kummerow

unread,
Oct 10, 2013, 4:08:18 AM10/10/13
to v8-u...@googlegroups.com
I've never heard of anyone trying to cross-compile V8 for ARM on Windows. I have no idea if it is possible. You're welcome to try it, and contribute patches and/or documentation if/when you find out anything. 
Reply all
Reply to author
Forward
0 new messages