I am facing some error while building the master branch of CEF. I followed the instructions on https://bitbucket.org/chromiumembedded/ ... ckStart.md. But after running create.bat I am getting this error after the patches get applied
- Code: Select all
Generating CEF project files...
________ running 'gn gen out\Debug_GN_x86 --ide=vs2017 --sln=cef --filters=//cef/*' in 'C:\Users\amaiti\Work\cef-project\master\chromium\src'
Traceback (most recent call last):
File "C:/Users/amaiti/Work/cef-project/master/chromium/src/build/compute_build_timestamp.py", line 120, in <module>
sys.exit(main())
File "C:/Users/amaiti/Work/cef-project/master/chromium/src/build/compute_build_timestamp.py", line 104, in main
last_commit_timestamp = int(open(lastchange_file).read())
IOError: [Errno 2] No such file or directory: 'C:\\Users\\amaiti\\Work\\cef-project\\master\\chromium\\src\\build\\util\\LASTCHANGE.committime'
ERROR at //build/timestamp.gni:20:19: Script returned non-zero exit code.
build_timestamp = exec_script("compute_build_timestamp.py",
^----------
Current dir: C:/Users/amaiti/Work/cef-project/master/chromium/src/out/Debug_GN_x86/
Command: C:/Users/amaiti/Work/cef-project/depot_tools/win_tools-2_7_6_bin/python/bin/python.exe -- C:/Users/amaiti/Work/cef-project/master/chromium/src/build/compute_build_timestamp.py default
Returned 1.
See //base/BUILD.gn:32:1: whence it was imported.
import("//build/timestamp.gni")
^-----------------------------
See //BUILD.gn:66:5: which caused the file to be included.
"//base:base_perftests",
^----------------------
Traceback (most recent call last):
File "tools\gclient_hook.py", line 133, in <module>
RunAction(src_dir, cmd)
File "C:\Users\amaiti\Work\cef-project\master\chromium\src\cef\tools\gclient_util.py", line 39, in RunAction
gclient_utils.CheckCallAndFilterAndHeader(command, cwd=dir, always=True)
File "C:\Users\amaiti\Work\cef-project\master\..\depot_tools\gclient_utils.py", line 314, in CheckCallAndFilterAndHeader
return CheckCallAndFilter(args, **kwargs)
File "C:\Users\amaiti\Work\cef-project\master\..\depot_tools\gclient_utils.py", line 576, in CheckCallAndFilter
rv, args, kwargs.get('cwd', None), None, None)
subprocess2.CalledProcessError: Command 'gn gen out\\Debug_GN_x86 --ide=vs2017 --sln=cef --filters=//cef/*' returned non-zero exit status 1 in C:\Users\amaiti\Work\cef-project\master\chromium\src
I tried to search on it a bit and saw there was a recent bug in chromium filed for this https://bugs.chromium.org/p/chromium/is ... ?id=875039. Though it says it is resolved, the error still occurs. I have that change in my chromium code. I tried running `gclient runhooks` but it fails due to some issue. Is there anything that needs to be changed in gclient_hook.py for this ?
Some help regarding this will be appreciated.
Thanks,
Ananyo