Issue 5585 in v8: Can't build the v8 (with gn), neither on Linux, neither on Windows

333 views
Skip to first unread message

catalin… via monorail

unread,
Oct 29, 2016, 6:43:29 AM10/29/16
to v8-re...@googlegroups.com
Status: Untriaged
Owner: ----

New issue 5585 by catalin...@gmail.com: Can't build the v8 (with gn), neither on Linux, neither on Windows
https://bugs.chromium.org/p/v8/issues/detail?id=5585


OS: Linux, Windows
Architecture: x64, ia32

What steps will reproduce the problem on **Linux**?
1. So I cloned the depot_tools.
2. Did 'fetch v8'.
3. and then did (both give the same output)
'tools/dev/v8gen.py x64.release'
'tools/dev/v8gen.py ia32.release'
4. And then I get this Python error :

on Linux :

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 "/usr/lib/python2.7/subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['/usr/bin/python', '-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

*******************

on Windows :

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:\Python27\lib\subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['C:\\Python27\\python.exe', '-u', 'tool
s\\mb\\mb.py', 'gen', '-f', 'infra\\mb\\mb_config.pyl', '-m', 'developer_default
', '-b', 'ia32.release', 'out.gn/ia32.release']' returned non-zero exit status 1


**********


What is the expected output?
I need a healthy out.gn folder. (The folder is still built besides this error.)

What do you see instead?
I see an illy out.gn folder.
running `ninja -C out.gn/x64.release` it says : "ninja: error: loading 'build.ninja': No such file or directory".




--
You received this message because:
1. The project was configured to send all issue notifications to this address

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

joc… via monorail

unread,
Nov 4, 2016, 6:09:04 AM11/4/16
to v8-re...@googlegroups.com
Updates:
Components: Infrastructure
Owner: machenb...@chromium.org
Status: Assigned

Comment #1 on issue 5585 by joc...@chromium.org: Can't build the v8 (with gn), neither on Linux, neither on Windows
https://bugs.chromium.org/p/v8/issues/detail?id=5585#c1

it's a bit unfortunate that all our python scripts just say that the subprocess failed, but not why

machenb… via monorail

unread,
Nov 4, 2016, 6:25:04 AM11/4/16
to v8-re...@googlegroups.com

Comment #2 on issue 5585 by machenb...@chromium.org: Can't build the v8 (with gn), neither on Linux, neither on Windows
https://bugs.chromium.org/p/v8/issues/detail?id=5585#c2

@jochen: They say why if the verbosity option is added. See the "Hint" in the output above.

Please add the -vv option to v8gen.py and paste the output for better analysis.

I assume `fetch v8` returned without errors? I.e. all hooks were executed once? If in doubt please do an additional `gclient sync`.

math… via monorail

unread,
Jun 6, 2017, 8:40:15 AM6/6/17
to v8-re...@googlegroups.com

Comment #4 on issue 5585 by mat...@chromium.org: Can't build the v8 (with gn), neither on Linux, neither on Windows
https://bugs.chromium.org/p/v8/issues/detail?id=5585#c4

I’m running into the same problem while setting up a new Mac. FWIW, I have installed Xcode and have accepted its license agreement.

I’ve attached a log containing the output of `gclient sync` followed by `tools/dev/v8gen.py x64.release -vv`.

Attachments:
log.txt 6.2 KB

machenb… via monorail

unread,
Jun 6, 2017, 11:56:32 AM6/6/17
to v8-re...@googlegroups.com
Updates:
Cc: tha...@chromium.org

Comment #5 on issue 5585 by machenb...@chromium.org: Can't build the v8 (with gn), neither on Linux, neither on Windows
https://bugs.chromium.org/p/v8/issues/detail?id=5585#c5

The problem of comment 4 seems mac-specific and orthogonal to the original issue here. Maybe check https://cs.chromium.org/chromium/src/build/config/mac/mac_sdk.gni?q=build/config/mac/mac_sdk.gni+package:%5Echromium$&dr if you can set some other gn args?

+thakis, who might be more experienced with gn setup on mac.

math… via monorail

unread,
Jun 7, 2017, 5:49:16 AM6/7/17
to v8-re...@googlegroups.com

Comment #6 on issue 5585 by mat...@chromium.org: Can't build the v8 (with gn), neither on Linux, neither on Windows
https://bugs.chromium.org/p/v8/issues/detail?id=5585#c6

Finally managed to track this down.

Homebrew, for example, installs the command-line tools separately from Xcode:

==> Installing Command Line Tools (macOS Sierra version 10.12) for Xcode-8.3
==> /usr/bin/sudo /usr/sbin/softwareupdate -i Command\ Line\ Tools\ (macOS\ Sierra\ version\ 10.12)\ for\ Xcode-8.3

In that case, the tools are installed to `/Library/Developer/CommandLineTools` instead of `/Applications/Xcode.app/Contents/Developer`, and they are missing some directories needed by the V8 scripts.

If you’re getting this output, you have a problem:

$ xcode-select --print-path
/Library/Developer/CommandLineTools

What you want is this:

$ xcode-select --print-path
/Applications/Xcode.app/Contents/Developer

To get there, run `sudo rm -rf /Library/Developer/CommandLineTools`, and install Xcode afterwards.

1658370… via monorail

unread,
Feb 13, 2018, 2:20:56 AM2/13/18
to v8-re...@googlegroups.com

Comment #7 on issue 5585 by 1658370...@qq.com: Can't build the v8 (with gn), neither on Linux, neither on Windows
https://bugs.chromium.org/p/v8/issues/detail?id=5585#c7

Have you solved this problem, please? Did I have this problem compiled on win, V8?

machenb… via monorail

unread,
Feb 13, 2018, 9:44:16 AM2/13/18
to v8-re...@googlegroups.com
Updates:
Cc: machenb...@chromium.org
Owner: ----
Status: WontFix

Comment #8 on issue 5585 by machenb...@chromium.org: Can't build the v8 (with gn), neither on Linux, neither on Windows
https://bugs.chromium.org/p/v8/issues/detail?id=5585#c8

This isn't actionable without further information. E.g. please run above scripts with the -vv option as mentioned and paste the output. Or manually run GN and ninja.

Setting to wontfix for now. Please reopen with more information.
Reply all
Reply to author
Forward
0 new messages