v8 build error

608 views
Skip to first unread message

Joe Harrington

unread,
Feb 7, 2016, 11:56:02 AM2/7/16
to v8-users
I'm new to building v8 and i'm getting this error when I try build gyp_v8 (using win 10/visual c++ 2015 community):
updating projects from gyp files
python: can't open file '../tools/clang/scripts/update.py' : [Errno 2] no such file or directory
gyp: call to 'python ../tools/clang/scripts/update.py --print-revision' returned exit status 2 while in C:\all.gyp

How do I fix this?


Jakob Kummerow

unread,
Feb 8, 2016, 3:48:02 AM2/8/16
to v8-users
How did you check out V8? Did you follow the instructions at https://github.com/v8/v8/wiki/Using%20Git#how-to-start?

(My guess would be that you simply "git clone"d the main repository. Doing so wouldn't run "gclient sync", so you'd end up missing all third-party dependencies, one of which is tools/clang/* .)

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

Joe Harrington

unread,
Feb 8, 2016, 4:18:10 AM2/8/16
to v8-users
Followed the instructions on the page and have yet to get to where it makes the build files. :(

Jakob Kummerow

unread,
Feb 8, 2016, 4:23:02 AM2/8/16
to v8-users

On Mon, Feb 8, 2016 at 10:18 AM, Joe Harrington <jharrin...@gmail.com> wrote:
Followed the instructions on the page and have yet to get to where it makes the build files. :(

Joe Harrington

unread,
Feb 8, 2016, 9:23:27 AM2/8/16
to v8-users

C:\Users\JH\Documents\Libs\depot_tools>python.exe v8\build\gyp_v8 -Dtarget_arch=x64 -Dcomponent=shared_library
Traceback (most recent call last):
  File "v8\build\gyp_v8", line 121, in <module>
    gyp_environment.set_environment()
  File "C:\Users\JH\Documents\Libs\depot_tools\v8\build\gyp_environment.py", line 54, in set_environment
    vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs()
  File "C:\Users\JH\Documents\Libs\depot_tools\v8\build\vs_toolchain.py", line 40, in SetEnvironmentAndGetRuntimeDllDirs
    Update()
  File "C:\Users\JH\Documents\Libs\depot_tools\v8\build\vs_toolchain.py", line 226, in Update
    subprocess.check_call(get_toolchain_args)
  File "C:\Users\JH\Documents\Libs\python_27\lib\subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\JH\\Documents\\Libs\\python_27\\python.exe', 'C:\\Users\\JH\\Documents\\Libs\\depot_tools\\win_toolchain\\get_toolchain_if_necessary.py', '--output-json', 'C:\\Users\\JH\\Documents\\Libs\\depot_tools\\v8\\build\\win_toolchain.json', '5a85cf1ce842f7cc96b9d17039a445a9dc9cf0dd']' returned non-zero exit status 1

C:\Users\Joe Harrington\Documents\Libs\depot_tools>

Restarted. Again followed the directions. Again fail. No matter what I do I get errors. :(

Jakob Kummerow

unread,
Feb 8, 2016, 10:15:10 AM2/8/16
to v8-users
On Mon, Feb 8, 2016 at 3:23 PM, Joe Harrington <jharrin...@gmail.com> wrote:

C:\Users\JH\Documents\Libs\depot_tools>python.exe v8\build\gyp_v8 -Dtarget_arch=x64 -Dcomponent=shared_library

That link ^ tells you to "Run set DEPOT_TOOLS_WIN_TOOLCHAIN=0, or set that variable in your global environment." Does that help?

Traceback (most recent call last):
  File "v8\build\gyp_v8", line 121, in <module>
    gyp_environment.set_environment()
  File "C:\Users\JH\Documents\Libs\depot_tools\v8\build\gyp_environment.py", line 54, in set_environment
    vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs()
  File "C:\Users\JH\Documents\Libs\depot_tools\v8\build\vs_toolchain.py", line 40, in SetEnvironmentAndGetRuntimeDllDirs
    Update()
  File "C:\Users\JH\Documents\Libs\depot_tools\v8\build\vs_toolchain.py", line 226, in Update
    subprocess.check_call(get_toolchain_args)
  File "C:\Users\JH\Documents\Libs\python_27\lib\subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\JH\\Documents\\Libs\\python_27\\python.exe', 'C:\\Users\\JH\\Documents\\Libs\\depot_tools\\win_toolchain\\get_toolchain_if_necessary.py', '--output-json', 'C:\\Users\\JH\\Documents\\Libs\\depot_tools\\v8\\build\\win_toolchain.json', '5a85cf1ce842f7cc96b9d17039a445a9dc9cf0dd']' returned non-zero exit status 1

C:\Users\Joe Harrington\Documents\Libs\depot_tools>

Restarted. Again followed the directions. Again fail. No matter what I do I get errors. :(

--

Joe Harrington

unread,
Feb 8, 2016, 10:38:13 AM2/8/16
to v8-u...@googlegroups.com
No.

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

Joe Harrington

unread,
Feb 8, 2016, 10:39:03 AM2/8/16
to v8-users
No.

Jakob Kummerow

unread,
Feb 8, 2016, 11:24:27 AM2/8/16
to v8-users
Well, please double-check for typos. If you look around

  File "C:\Users\JH\Documents\Libs\depot_tools\v8\build\vs_toolchain.py", line 40, in SetEnvironmentAndGetRuntimeDllDirs

you'll see that a few lines before it checks for that environment variable, and won't proceed to the code that later fails for you if that variable is set to 0. I don't see why that mechanism wouldn't be working. (Whereas get_toolchain_if_necessary.py can't possibly work for you; so DEPOT_TOOLS_WIN_TOOLCHAIN=0 should ensure that it's never even executed.)

Joe Harrington

unread,
Feb 8, 2016, 10:35:18 PM2/8/16
to v8-users
Installed to root of drive, reset all environment paths, and all problems went away. I think it was having problem with long pathname. :/
Reply all
Reply to author
Forward
0 new messages