Error while building cef: LASTCHANGE.committime file missing

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Error while building cef: LASTCHANGE.committime file missing

Postby ananyo2012 » Tue Sep 25, 2018 7:35 am

Hi all,

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
ananyo2012
Techie
 
Posts: 23
Joined: Tue Jul 03, 2018 4:57 am

Re: Error while building cef: LASTCHANGE.committime file mis

Postby magreenblatt » Tue Sep 25, 2018 7:38 am

What was the first error/failure that you got while downloading CEF/Chromium?
magreenblatt
Site Admin
 
Posts: 10474
Joined: Fri May 29, 2009 6:57 pm

Re: Error while building cef: LASTCHANGE.committime file mis

Postby ananyo2012 » Wed Sep 26, 2018 1:38 am

I didn't get any error while downloading CEF/Chromium. This was when I tried to run create.bat. After the patches were applied it threw this error. It is being used in lastchange.py , but the file is missing. Supposedly this should be generated before running the gn command but it isn't generated.
ananyo2012
Techie
 
Posts: 23
Joined: Tue Jul 03, 2018 4:57 am

Re: Error while building cef: LASTCHANGE.committime file mis

Postby asmasm » Thu Oct 18, 2018 7:02 am

run command: python src\build\util\lastchange.py -o LASTCHANGE
asmasm
Newbie
 
Posts: 1
Joined: Thu Oct 18, 2018 6:59 am

Re: Error while building cef: LASTCHANGE.committime file mis

Postby anhcomdr » Sat May 11, 2019 11:37 pm

Reply from asmasm is a correct answer.
You can go to cd C:\code\chromium_git\chromium\src\build\util and run this command : python lastchange.py -o LASTCHANGE
The file LASTCHANGE.committime will be generated and you can go back to 'create.bat' step
anhcomdr
Newbie
 
Posts: 3
Joined: Sat May 11, 2019 11:33 pm

Re: Error while building cef: LASTCHANGE.committime file mis

Postby fangxx » Sun Sep 15, 2019 8:55 pm

gclient sync or runhooks will do that for you.
fangxx
Newbie
 
Posts: 1
Joined: Sun Sep 15, 2019 8:50 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 29 guests