Problem getting V8 sources

312 views
Skip to first unread message

Ivan P.

unread,
Sep 14, 2016, 10:11:45 AM9/14/16
to v8-users
I am attempting to get V8 sources to build on Windows, using VS2013. OS is Win2008 Server R2 x64.
I have downloaded and updated depot_tools.

Then I have started new cmd shell and did following:

L:\>path L:\depot_tools;%PATH%

L:\>mkdir v8-build

L:\>cd v8-build

L:\v8-build>fetch v8
Running: 'L:\depot_tools\python276_bin\python.exe' 'L:\depot_tools\gclient.py' root
Running: 'L:\depot_tools\python276_bin\python.exe' 'L:\depot_tools\gclient.py' config --spec 'solutions = [
  {
    "managed": False,
    "name": "v8",
    "custom_deps": {},
    "deps_file": "DEPS",
    "safesync_url": "",
  },
]
'
Running: 'L:\depot_tools\python276_bin\python.exe' 'L:\depot_tools\gclient.py' sync --with_branch_heads
Error: Command 'L:\\depot_tools\\python276_bin\\python.exe v8/gypfiles/landmines.py' returned non-zero exit status 1 in
L:\v8-build
Traceback (most recent call last):
  File "L:\depot_tools\\fetch.py", line 353, in <module>
    sys.exit(main())
  File "L:\depot_tools\\fetch.py", line 348, in main
    return run(options, spec, root)
  File "L:\depot_tools\\fetch.py", line 342, in run
    return checkout.init()
  File "L:\depot_tools\\fetch.py", line 142, in init
    self.run_gclient(*sync_cmd)
  File "L:\depot_tools\\fetch.py", line 76, in run_gclient
    return self.run(cmd_prefix + cmd, **kwargs)
  File "L:\depot_tools\\fetch.py", line 66, in run
    return subprocess.check_output(cmd, **kwargs)
  File "L:\depot_tools\python276_bin\lib\subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '('L:\\depot_tools\\python276_bin\\python.exe', 'L:\\depot_tools\\gclient.py', 'sync', '--with_branch_heads')' returned non-zero exit status 2

What this error means and how to get rid of it?

Jochen Eisinger

unread,
Sep 15, 2016, 3:12:46 AM9/15/16
to v8-users
If you manually run L:\\depot_tools\\python276_bin\\python.exe v8/gypfiles/landmines.py what error message do you get?

--
--
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/d/optout.

Ivan Pizhenko

unread,
Sep 15, 2016, 9:29:55 AM9/15/16
to v8-u...@googlegroups.com
I get the same error:


L:\v8-build>L:\\depot_tools\\python276_bin\\python.exe v8/gypfiles/landmines.py





Traceback (most recent call last):
  File "v8/gypfiles/landmines.py", line 245, in <module>
    sys.exit(main())
  File "v8/gypfiles/landmines.py", line 232, in main
    gyp_environment.set_environment()
  File "L:\v8-build\v8\gypfiles\gyp_environment.py", line 60, in set_environment
    vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs()
  File "L:\v8-build\v8\gypfiles\vs_toolchain.py", line 44, in SetEnvironmentAndGetRuntimeDllDirs
    Update()
  File "L:\v8-build\v8\gypfiles\vs_toolchain.py", line 323, in Update
    subprocess.check_call(get_toolchain_args)
  File "L:\depot_tools\python276_bin\lib\subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['L:\\depot_tools\\python276_bin\\python.exe', 'L:\\depot_tools\\win_toolchain\\
get_toolchain_if_necessary.py', '--output-json', 'L:\\v8-build\\v8\\gypfiles\\win_toolchain.json', '03a4e939cd325d6bc521
6af41b92d02dda1366a6']' returned non-zero exit status 1

To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscribe@googlegroups.com.

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

--
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/sY-ToMUC_4I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to v8-users+unsubscribe@googlegroups.com.

Ivan Pizhenko

unread,
Sep 15, 2016, 9:44:47 AM9/15/16
to v8-u...@googlegroups.com
Actually, differs a bit but still similar to previous one.

Jochen Eisinger

unread,
Sep 16, 2016, 1:07:22 AM9/16/16
to v8-u...@googlegroups.com
Please set the env variable DEPOT_TOOLS_WIN_TOOLCHAIN to 0 and try again

On Thu, Sep 15, 2016 at 3:44 PM Ivan Pizhenko <ivan.p...@gmail.com> wrote:
Actually, differs a bit but still similar to previous one.

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

Ivan Pizhenko

unread,
Sep 16, 2016, 2:30:09 AM9/16/16
to v8-u...@googlegroups.com
Got following output, seems like update succeeded, please confirm.
Will I be able to build it with VS2013 now?

L:\v8-build>set DEPOT_TOOLS_WIN_TOOLCHAIN=0

L:\v8-build>gclient sync
Syncing projects: 100% (23/23), done.

________ running 'L:\depot_tools\python276_bin\python.exe v8/gypfiles/landmines.py' in 'L:\v8-build'
Clobbering due to missing landmines file.

________ running 'download_from_google_storage --no_resume --platform=win32 --no_auth --bucket chromium-clang-format -s
v8/buildtools/win/clang-format.exe.sha1' in 'L:\v8-build'
0> Downloading v8/buildtools/win/clang-format.exe...
Success!
Downloading 1 files took 11.732000 second(s)
Hook 'download_from_google_storage --no_resume --platform=win32 --no_auth --bucket chromium-clang-format -s v8/buildtool
s/win/clang-format.exe.sha1' took 11.92 secs

________ running 'download_from_google_storage --no_resume --platform=darwin --no_auth --bucket chromium-clang-format -s
 v8/buildtools/mac/clang-format.sha1' in 'L:\v8-build'
The current platform doesn't match "darwin", skipping.

________ running 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format -s
 v8/buildtools/linux64/clang-format.sha1' in 'L:\v8-build'
The current platform doesn't match "linux*", skipping.

________ running 'L:\depot_tools\python276_bin\python.exe v8/tools/gcmole/download_gcmole_tools.py' in 'L:\v8-build'
Skipping gcmole download as gcmole is not set in gyp flags.

________ running 'L:\depot_tools\python276_bin\python.exe v8/tools/jsfunfuzz/download_jsfunfuzz.py' in 'L:\v8-build'
Skipping jsfunfuzz download as jsfunfuzz is not set in gyp flags.

________ running 'download_from_google_storage --no_resume --platform=win32 --no_auth --bucket chromium-luci -d v8/tools
/luci-go/win64' in 'L:\v8-build'
0> Downloading v8/tools/luci-go/win64\isolate.exe...
Success!
Downloading 1 files took 12.466000 second(s)
Hook 'download_from_google_storage --no_resume --platform=win32 --no_auth --bucket chromium-luci -d v8/tools/luci-go/win
64' took 12.62 secs

________ running 'download_from_google_storage --no_resume --platform=darwin --no_auth --bucket chromium-luci -d v8/tool
s/luci-go/mac64' in 'L:\v8-build'
The current platform doesn't match "darwin", skipping.

________ running 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-luci -d v8/tool
s/luci-go/linux64' in 'L:\v8-build'
The current platform doesn't match "linux*", skipping.

________ running 'download_from_google_storage --no_resume --platform=win32 --no_auth --bucket chromium-gn -s v8/buildto
ols/win/gn.exe.sha1' in 'L:\v8-build'
0> Downloading v8/buildtools/win/gn.exe...
Success!
Downloading 1 files took 10.441000 second(s)
Hook 'download_from_google_storage --no_resume --platform=win32 --no_auth --bucket chromium-gn -s v8/buildtools/win/gn.e
xe.sha1' took 10.62 secs

________ running 'download_from_google_storage --no_resume --platform=darwin --no_auth --bucket chromium-gn -s v8/buildt
ools/mac/gn.sha1' in 'L:\v8-build'
The current platform doesn't match "darwin", skipping.

________ running 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-gn -s v8/buildt
ools/linux64/gn.sha1' in 'L:\v8-build'
The current platform doesn't match "linux*", skipping.

________ running 'download_from_google_storage --no_resume --no_auth -u --bucket v8-wasm-fuzzer -s v8/test/fuzzer/wasm.t
ar.gz.sha1' in 'L:\v8-build'
0> Downloading v8/test/fuzzer/wasm.tar.gz...
0> Extracting 646 entries from v8/test/fuzzer/wasm.tar.gz to v8/test/fuzzer/wasm
Success!
Downloading 1 files took 12.357000 second(s)
Hook 'download_from_google_storage --no_resume --no_auth -u --bucket v8-wasm-fuzzer -s v8/test/fuzzer/wasm.tar.gz.sha1'
took 12.53 secs

________ running 'download_from_google_storage --no_resume --no_auth -u --bucket v8-wasm-asmjs-fuzzer -s v8/test/fuzzer/
wasm_asmjs.tar.gz.sha1' in 'L:\v8-build'
0> Downloading v8/test/fuzzer/wasm_asmjs.tar.gz...
0> Extracting 172 entries from v8/test/fuzzer/wasm_asmjs.tar.gz to v8/test/fuzzer/wasm_asmjs
Success!
Downloading 1 files took 13.356000 second(s)
Hook 'download_from_google_storage --no_resume --no_auth -u --bucket v8-wasm-asmjs-fuzzer -s v8/test/fuzzer/wasm_asmjs.t
ar.gz.sha1' took 14.25 secs

________ running 'L:\depot_tools\python276_bin\python.exe v8/build/linux/sysroot_scripts/install-sysroot.py --running-as
-hook' in 'L:\v8-build'

________ running 'L:\depot_tools\python276_bin\python.exe v8/third_party/instrumented_libraries/scripts/download_binarie
s.py' in 'L:\v8-build'

________ running 'L:\depot_tools\python276_bin\python.exe v8/gypfiles/vs_toolchain.py update' in 'L:\v8-build'

________ running 'L:\depot_tools\python276_bin\python.exe v8/third_party/binutils/download.py' in 'L:\v8-build'

________ running 'L:\depot_tools\python276_bin\python.exe v8/gypfiles/download_gold_plugin.py' in 'L:\v8-build'
Gold plugin download not supported on windows.

________ running 'L:\depot_tools\python276_bin\python.exe v8/tools/clang/scripts/update.py --if-needed' in 'L:\v8-build'


________ running 'L:\depot_tools\python276_bin\python.exe v8/gypfiles/gyp_v8 --running-as-hook' in 'L:\v8-build'
GYP is now disabled by default in runhooks.

If you really want to run this, either run
`python gypfiles/gyp_v8` explicitly by hand
or set the environment variable GYP_CHROMIUM_NO_ACTION=0.



2016-09-16 8:07 GMT+03:00 Jochen Eisinger <joc...@chromium.org>:
Please set the env variable DEPOT_TOOLS_WIN_TOOLCHAIN to 0 and try again

On Thu, Sep 15, 2016 at 3:44 PM Ivan Pizhenko <ivan.p...@gmail.com> wrote:
Actually, differs a bit but still similar to previous one.

--
--
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+unsubscribe@googlegroups.com.

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

--
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/sY-ToMUC_4I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to v8-users+unsubscribe@googlegroups.com.

Jochen Eisinger

unread,
Sep 16, 2016, 2:35:34 AM9/16/16
to v8-u...@googlegroups.com

Maybe? I'm using vs2015, no idea whether 2013 C++11 support is enough


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/d/optout.
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/sY-ToMUC_4I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to v8-users+u...@googlegroups.com.
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,
Sep 16, 2016, 8:17:05 AM9/16/16
to v8-u...@googlegroups.com
And which previous stable version can be surely built with VS2013? 
I don't need very latest version, but I need something stable and buildable with VS2013.

To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
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/sY-ToMUC_4I/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.

--
--
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+unsubscribe@googlegroups.com.

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

--
--
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/sY-ToMUC_4I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to v8-users+unsubscribe@googlegroups.com.

Ivan Pizhenko

unread,
Sep 16, 2016, 8:26:29 AM9/16/16
to v8-u...@googlegroups.com
And how to configure build to use exactly VS2013?
I have both VS2015 and VS2013 installed on the machine, but I need to use VS2013.
However, after I have used 
python tools/dev/v8gen.py x64.release
it seems to generate build parameters that use VS2015. 
So what do I need to do to point it to the VS2013?

Ivan Pizhenko

unread,
Sep 16, 2016, 9:40:47 AM9/16/16
to v8-u...@googlegroups.com
Switched to VS2013 by using
L:\v8-build\v8>set GYP_MSVS_VERSION=2013

Ivan Pizhenko

unread,
Sep 16, 2016, 9:43:42 AM9/16/16
to v8-u...@googlegroups.com
Still following question: the build has produced me bunch of executables like d8.exe, but I need to embed V8 into my application and therefore I need either DLL or LIB, which are not generated - I have searched x64.release directory for LIB files and all it found are following:
options_sources.lib
gmock.lib
gmock_main.lib
gtest.lib
icui18n.lib
icuuc.lib

but there are no v8_base.lib, v8_snapshot.lib and so on.

How to force build to generare V8 libs?   

Pavel Medvedev

unread,
Sep 18, 2016, 3:45:22 AM9/18/16
to v8-users
Hi Ivan,

I may suggest to try pre-built Nuget packages for V8:

https://www.nuget.org/packages/v8-v120-x86/
https://www.nuget.org/packages/v8-v120-x64/
https://www.nuget.org/packages/v8-v140-x86/
https://www.nuget.org/packages/v8-v140-x64/

I have created them recently in order to manage V8 build issues on Windows.

I use GYP in a Python script to build V8 libraries and Nuget packages, as you can see at https://github.com/pmed/v8-nuget

Ivan Pizhenko

unread,
Sep 19, 2016, 12:11:13 AM9/19/16
to v8-u...@googlegroups.com
Thank you Pavel. This may be useful for me.

--

Jochen Eisinger

unread,
Sep 20, 2016, 3:19:55 AM9/20/16
to v8-u...@googlegroups.com
To get dll files, you'll need to set component=shared_library in your GYP_DEFINES env variable, or set is_component_build = true in your gn args, depending on which build system you use.

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.
Reply all
Reply to author
Forward
0 new messages