Hi !
I'm having some trouble building webrtc on my Mac (Yosemite, 10.10.2)
The error arises when I run:
The terminal output:
Running: /usr/local/opt/python/bin/python2.7 /Users/xxx/yyy/depot_tools/gclient.py config --spec 'solutions = [
{
"managed": False,
"name": "src",
"url": "
https://chromium.googlesource.com/external/webrtc.git",
"custom_deps": {},
"deps_file": "DEPS",
"safesync_url": "",
},
]
'
Running: /usr/local/opt/python/bin/python2.7 /Users/xxx/yyy/depot_tools/gclient.py sync
Syncing projects: 100% (3/3), done.
________ running '/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c import os,sys;script = os.path.join("trunk","check_root_dir.py");_ = os.system("%s %s" % (sys.executable,script)) if os.path.exists(script) else 0' in '/Users/xxx/yyy/tst'
________ running '/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u src/sync_chromium.py --target-revision 2c3ffb2355a27c32f45e508ef861416b820c823b' in '/Users/xxx/yyy/tst'
Running "gclient sync --force --revision src@2c3ffb2355a27c32f45e508ef861416b820c823b --gclientfile .gclient.tmp --delete_unversioned_trees --reset --upstream" in /Users/xxx/yyy/tst/src/chromium
Traceback (most recent call last):
File "src/sync_chromium.py", line 156, in <module>
sys.exit(main())
File "src/sync_chromium.py", line 147, in main
ret = subprocess.call(args, cwd=opts.chromium_dir, env=env)
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Error: Command /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u src/sync_chromium.py --target-revision 2c3ffb2355a27c32f45e508ef861416b820c823b returned non-zero exit status 1 in /Users/xxx/yyy/tst
Traceback (most recent call last):
File "/Users/xxx/yyy/depot_tools/fetch.py", line 334, in <module>
sys.exit(main())
File "/Users/xxx/yyy/depot_tools/fetch.py", line 330, in main
return run(options, spec, root)
File "/Users/xxx/yyy/depot_tools/fetch.py", line 324, in run
return checkout.init()
File "/Users/xxx/yyy/depot_tools/fetch.py", line 169, in init
super(GclientGitSvnCheckout, self).init()
File "/Users/xxx/yyy/depot_tools/fetch.py", line 136, in init
self.run_gclient(*sync_cmd)
File "/Users/xxx/yyy/depot_tools/fetch.py", line 76, in run_gclient
return self.run(cmd_prefix + cmd, **kwargs)
File "/Users/xxx/yyy/depot_tools/fetch.py", line 66, in run
return subprocess.check_call(cmd, **kwargs)
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('/usr/local/opt/python/bin/python2.7', '/Users/xxx/yyy/depot_tools/gclient.py', 'sync')' returned non-zero exit status 2
From the line "OSError: [Errno 2] No such file or directory" it seems that there is a path is wrong. it's trying to execute the following command:
$ gclient sync --force --revision src@2c3ffb2355a27c32f45e508ef861416b820c823b --gclientfile .gclient.tmp --delete_unversioned_trees --reset --upstream
on the directory: /Users/xxx/yyy/tst/src/chromium
And this seems to fail. If I do this myself on the terminal, on the correct folder, the code executes
$ cd src/chromium
$ gclient sync --force --revision src@2c3ffb2355a27c32f45e508ef861416b820c823b --gclientfile .gclient.tmp --delete_unversioned_trees --reset --upstream
until it fails:
________ running 'download_from_google_storage --no_resume --platform=win32 --no_auth --bucket chromium-gn -s src/buildtools/win/gn.exe.sha1' in '/Users/xxx/yyy/tst/src/chromium'
Traceback (most recent call last):
File "/Users/xxx/yyy/misc/depot_tools/gclient.py", line 2301, in <module>
sys.exit(Main(sys.argv[1:]))
File "/Users/xxx/yyy/misc/depot_tools/gclient.py", line 2289, in Main
return dispatcher.execute(OptionParser(), argv)
File "/Users/xxx/yyy/misc/depot_tools/subcommand.py", line 245, in execute
return command(parser, args[1:])
File "/Users/xxx/yyy/misc/depot_tools/gclient.py", line 2046, in CMDsync
ret = client.RunOnDeps('update', args)
File "/Users/xxx/yyy/misc/depot_tools/gclient.py", line 1531, in RunOnDeps
self.RunHooksRecursively(self._options)
File "/Users/xxx/yyy/misc/depot_tools/gclient.py", line 986, in RunHooksRecursively
hook, cwd=self.root.root_dir, always=True)
File "/Users/xxx/yyy/misc/depot_tools/gclient_utils.py", line 293, in CheckCallAndFilterAndHeader
return CheckCallAndFilter(args, **kwargs)
File "/Users/xxx/yyy/misc/depot_tools/gclient_utils.py", line 488, in CheckCallAndFilter
**kwargs)
File "/Users/xxx/yyy/misc/depot_tools/subprocess2.py", line 253, in __init__
% (str(e), kwargs.get('cwd'), args[0]))
OSError: Execution failed with error: [Errno 2] No such file or directory.
Check that /Users/xxx/yyy/misc/tst/src/chromium or download_from_google_storage exist and have execution permission.
I don't know how to build chromium, how to get across all these errors on compilation. It seems to me that they are related with the current directory that the command is running on, vs where they should run. So it's not finding some files ...
Any help would be very much appreciated and rewarded with a warm virtual hug
—N