How to build V8 on Linux using GCC instead of Clang?

2,245 views
Skip to first unread message

Ivan P.

unread,
Sep 27, 2016, 8:13:02 PM9/27/16
to v8-users
I have set up depot tools and checked out latest stable V8 version from latest stable Chromium (V8 ver. 5.3.332.45) like this.

fetch v8
cd v8
git checkout -b mybranch 5.3.332.45
gclient sync 

I have generated build files using 

gn args gn.out/test1 

and run build as 

ninja -C gn.out/test1

and I can see that V8 is being built using clang++.

I want to build using g++.

What should be changed, please advise.

Ivan P.

unread,
Sep 27, 2016, 8:15:47 PM9/27/16
to v8-users
Amendment: used ninja -v -C out.gn/test1
So I can see all commands executed in console output, and I can see it uses clang++.

среда, 28 сентября 2016 г., 3:13:02 UTC+3 пользователь Ivan P. написал:

Michael Achenbach

unread,
Sep 28, 2016, 8:36:30 AM9/28/16
to v8-users
You need this in your args.gn:
is_clang=false
use_sysroot=false

Ivan Pizhenko

unread,
Oct 11, 2016, 10:19:33 AM10/11/16
to v8-u...@googlegroups.com
Tried this. I have following args.gn 

is_debug=true
is_component_build=true
target_cpu="x64"
v8_target_cpu="x64"
v8_postmortem_support=true
is_clang=false
use_sysroot=false


and getting this error

Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
Package gmodule-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gmodule-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gmodule-2.0' found
Package gobject-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gobject-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gobject-2.0' found
Package gthread-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gthread-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gthread-2.0' found
Could not run pkg-config.

I am trying to build on the CentOS 7.
Updated OS with latest updates, installed package glib-devel.
What else is missing?
   

--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
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/l-atCAMVHZU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to v8-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jochen Eisinger

unread,
Oct 12, 2016, 3:20:08 AM10/12/16
to v8-u...@googlegroups.com
I assume that CentOS 7 doesn't have the required libraries to compile the latest version of V8.

To unsubscribe from this group and all its topics, send an email to v8-users+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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.

Ivan Pizhenko

unread,
Oct 12, 2016, 7:52:10 PM10/12/16
to v8-u...@googlegroups.com
I am attempting to build current "stable" version 5.3.332.45, which is not the very latest (unstable) one.
So any recommendations, what do I need to do to compile it on CentOS 7 with all recent updates using GCC?

George Popov

unread,
Apr 24, 2019, 5:06:36 AM4/24/19
to v8-users
Need to install glib2-devel to fix this error

вторник, 11 октября 2016 г., 17:19:33 UTC+3 пользователь Ivan P. написал:
To unsubscribe from this group and all its topics, send an email to v8-u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages