v8worker2
v8worker2 copied to clipboard
Error in build, assert error
OS: macOS 10.13
Traceback (most recent call last):
File "./build.py", line 152, in <module>
main()
File "./build.py", line 88, in main
lib_fn = Rebuild()
File "./build.py", line 103, in Rebuild
assert os.path.exists(gn_path)
AssertionError
$ ./build.py --use_ccache out_path None Rebuilding V8 Fetching dependencies. Traceback (most recent call last): File "./build.py", line 152, in <module> main() File "./build.py", line 88, in main lib_fn = Rebuild() File "./build.py", line 100, in Rebuild EnsureDeps(v8_path) File "./build.py", line 149, in EnsureDeps env=env) File "F:\Program Files (x86)\Python36-32\lib\subprocess.py", line 286, in check_call retcode = call(*popenargs, **kwargs) File "F:\Program Files (x86)\Python36-32\lib\subprocess.py", line 267, in call with Popen(*popenargs, **kwargs) as p: File "F:\Program Files (x86)\Python36-32\lib\subprocess.py", line 709, in __init__ restore_signals, start_new_session) File "F:\Program Files (x86)\Python36-32\lib\subprocess.py", line 997, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified
Got the same issue in windows
@flybikeGx
On my machine: 10.13.5
How about this? Worked for me.
'Install Xcode, launch it, accept the license agreement, and run sudo xcode-select -s /path/to/Xcode.app
to continue.'
__main__.SdkError: 'Install Xcode, launch it, accept the license agreement, and run `sudo xcode-select -s /path/to/Xcode.app` to continue.'
See //build/toolchain/mac/BUILD.gn:14:1: whence it was imported.
import("//build/config/mac/mac_sdk.gni")
^--------------------------------------
See //BUILD.gn:621:1: which caused the file to be included.
action("js2c") {
^---------------
Traceback (most recent call last):
File "./build.py", line 152, in <module>
main()
File "./build.py", line 88, in main
lib_fn = Rebuild()
File "./build.py", line 117, in Rebuild
env=env)
File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
On Windows at least, I found a workaround to the "The system cannot find the file specified" error message. In build.py in the EnsureDeps
function I've given the absolute path of the gclient.bat (might work with relative path) instead of just "gclient".
This shouldn't have been necessary, because the path of gclient is added to the local environnement's PATH. A true solution should be found in relation to the subprocess
module and its use of a local environment.
Hi,
the 2 issues reported are different. The first
File "./build.py", line 103, in Rebuild
assert os.path.exists(gn_path)
AssertionError
can be fixed by linking symbolically the previously installed deplot_tools
to the current repo.
On Mac I did ln -s /path /to/deplot_tools ./depot_tools
; after that the error presented by @qgervacio appeared but I was able to fix it with sudo xcode-select -s /Applications/Xcode.app
, so now it's building.