Building with GCC

135 views
Skip to first unread message

aa...@correspondwith.me

unread,
Feb 13, 2018, 6:59:51 PM2/13/18
to v8-dev
I'm working on a RISC-V target for V8. Currently the LLVM toolchain for RISC-V is less mature and accessible than the GCC one (which is available upstream as of GCC 7.1 or thereabouts), so I'm wondering if and how I might could the V8 build to use GCC to compile V8 (so that I can run V8 as a whole in QEMU before getting the in-tree simulator up and running).

Thanks. :- )

Ben Noordhuis

unread,
Feb 14, 2018, 4:37:00 AM2/14/18
to v8-...@googlegroups.com
It's been some time since I last tried it but passing `is_clang=false
use_sysroot=false` to tools/dev/v8gen.py should do it.

Yang Guo

unread,
Feb 14, 2018, 5:22:49 AM2/14/18
to v8-...@googlegroups.com

I think you also need to disable cxx14.


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

aa...@correspondwith.me

unread,
Feb 14, 2018, 10:17:22 AM2/14/18
to v8-dev
Thanks, I'll give it a try!

aa...@correspondwith.me

unread,
Feb 14, 2018, 10:20:41 AM2/14/18
to v8-dev
I don't think that should be necessary, GCC has supported all of C++14 since version 6 (mid 2016), and all of C++17 since last year.

Nick K

unread,
Nov 27, 2019, 5:15:46 PM11/27/19
to v8-dev
Curious about the status of your efforts to port V8 to RISC-V. RISC-V backends are currently upstream in both the Clang/LLVM and GNU toolchains. Please let me know if/how I can contribute!

Yang Guo

unread,
Nov 28, 2019, 3:44:53 AM11/28/19
to v8-...@googlegroups.com
There are no plans to port V8 to RISC-V. If you are interested to implement and maintain, please reach out to hab...@chromium.org and hpa...@chromium.org.

Basic requirements are:
 - signing Google's CLA
 - commitment to maintain
 - a simulator (example) to execute generated code for cross-platform testing.

Cheers,

Yang

Wei Wu (吴伟)

unread,
Mar 25, 2020, 11:21:34 PM3/25/20
to v8-dev
Hi there,

FYI, we (PLCT group in Chinese Academy of Sciences) are working on this.
Hopefully we would finish porting V8 to RISC-V[0] before July, 2020[1], and
start to contribute to upstream & maintain.

WIP patches will be available at [2] in late April. All comments or suggestions are
welcome ;)

[0] both RV32 and RV64.
[1] Pass SunSpider, Octane and Kraken. Support for WASM is postponed to Nov, 2020.

On Thursday, November 28, 2019 at 4:44:53 PM UTC+8, Yang Guo wrote:
There are no plans to port V8 to RISC-V. If you are interested to implement and maintain, please reach out to hab...@chromium.org and hpa...@chromium.org.

Basic requirements are:
 - signing Google's CLA
 - commitment to maintain
 - a simulator (example) to execute generated code for cross-platform testing.

Cheers,

Yang

To unsubscribe from this group and stop receiving emails from it, send an email to v8-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages