Problems generating project files for V8

175 views
Skip to first unread message

Osman Zakir

unread,
Nov 30, 2018, 8:40:57 AM11/30/18
to v8-users
I tried to generate project files to build V8 by following the instructions in this blog post on Medium: https://medium.com/dailyjs/how-to-build-v8-on-windows-and-not-go-mad-6347c69aacd4 .  When I ran the command python tools/dev/v8gen.py x64.release as documented there, I got this error:
Hint: You can raise verbosity (-vv) to see the output of failed commands.
Traceback (most recent call last):
  File "tools/dev/v8gen.py", line 304, in <module>
    sys.exit(gen.main())
  File "tools/dev/v8gen.py", line 298, in main
    return self._options.func()
  File "tools/dev/v8gen.py", line 166, in cmd_gen
    gn_outdir,
  File "tools/dev/v8gen.py", line 208, in _call_cmd
    stderr=subprocess.STDOUT,
  File "C:\v8\depot_tools\win_tools-2_7_6_bin\python\bin\lib\subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['C:\\v8\\depot_tools\\win_tools-2_7_6_bin\\python\\bin\\python.exe', '-u', 'tools\\mb\\mb.py', 'gen', '-f', 'infra\\mb\\mb_config.pyl', '-m', 'developer_default', '-b', 'x64.release', 'out.gn/x64.release']' returned non-zero exit status 1
I need some help here. Thanks in advance for any replies and help. I'm using Windows 10 Home, with both Python 2.7 and Python 3.7. The install of the former is placed higher and then I have the depot_tools higher than that (in the PATH variable).

Armel Asselin

unread,
Aug 1, 2020, 4:50:36 PM8/1/20
to v8-users
I get the same error, did you find a solution?

Regards

Armel Asselin

unread,
Aug 2, 2020, 9:00:50 AM8/2/20
to v8-users
When I dive the the executed python code, it fails on an assert inside the function to copy the CRT.

While I wrote that, a miracle happened, I finally found what was wrong: I had a removed installation of Visual Studio Enterprise, but the uninstaller tool let the Enterprise/Common folder empty.
After removing manually the Enterprise folder, the v8gen script executed normally !
Reply all
Reply to author
Forward
0 new messages