-
Notifications
You must be signed in to change notification settings - Fork 121
V8 6.7+ cannot be compiled on ARM/ARM64 #261
Comments
Is this due to the GN change? because it should build on both. An upstream issue link? |
@thalyssra, have not dug down enough to find out. The build fails due to missing |
Also, when I tried to crosscompile for ARM, the CFLAGS included |
@thalyssra, I've linked the upstream issue above. |
Let me poke someone I know who knows a bit more, I know he was looking into this a long time ago. |
@ignisf so, there were some upstream changes to gn (which is good!); I'm not sure how easy it would be to script to replace, however, you should be able to do the following to build a working binary.
The resulting binary I've only tested the build itself on arm64, I haven't tried to build libv8. |
Hello @steev, thank you for the ping |
Hi, I managed to build v8 version 6.7.288 on ARM64 (natively on Amazon's Graviton). Is there a way to contribute the binaries? For the record, the patches were quite involved:
At long last however, we finally managed to get those |
Hi everyone! I also managed to compile v8 for this gem for fully working rails application on AWS's Graviton c6g instance. As said before the main problem is that binaries (clang, gn & ninja) that gonna be used to compile v8 libraries have been built for x86 architecture. i've just tried to recompile them and substitute with original ones. I've consolidated all my work in Dockerfile in this repo: https://github.com/hypersleep/rails-on-arm That gives you fully-functional ruby on rails app with mini_racer on board. Hope it helps everybody! I think this process should to be fixed soon on gem build level or in v8 build system due to rising popularity of ARM servers. |
Hi everybody. Are there any updates on this issue? I came across this when assembling a |
Closing as this issue is completely sidestepped in libv8-node, which does have aarch64-linux and arm64-darwin builds. Also there is no chance in freezing hell this v8 version ever supports Apple Silicon, and we're not going to update this gem's v8 version. |
Upstream issue: https://bugs.chromium.org/p/v8/issues/detail?id=6458 go star it :)
The text was updated successfully, but these errors were encountered: