Error gn gen on win10

1,053 views
Skip to first unread message

尚二蛋

unread,
Apr 1, 2019, 2:38:04 AM4/1/19
to Chromium-discuss
Hi 

   
  • I executed the gn gen command, and the command line indicated that the file[LASTCHANGE.committime] was missing.

    • I entered the directory and found a file[LASTCHANGE.dummy] with similar name.

      • Please help me analyze the cause of the problem.

    • The following is the detailed error information:

E:\Source\src>gn gen out/Default
Traceback (most recent call last):
 File "E:/Source/src/build/compute_build_timestamp.py", line 122, in <module>
   sys.exit(main())
 File "E:/Source/src/build/compute_build_timestamp.py", line 106, in main
   last_commit_timestamp = int(open(lastchange_file).read())
IOError: [Errno 2] No such file or directory: 'E:\\Source\\src\\build\\util\\LASTCHANGE.committime'
ERROR at //build/timestamp.gni:31:19: Script returned non-zero exit code.
build_timestamp = exec_script(compute_build_timestamp,
                 ^----------
Current dir: E:/Source/src/out/Default/
Command: E:/Tools/depot_tools/win_tools-2_7_6_bin/python/bin/python.exe E:/Source/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:68:5: which caused the file to be included.
   "//base:base_unittests",
   ^----------------------
E:\Source\src>


尚二蛋

unread,
Apr 1, 2019, 3:20:27 AM4/1/19
to Chromium-discuss
test

在 2019年4月1日星期一 UTC+8下午2:38:04,尚二蛋写道:

Михаил Юрьевич Брызгалов

unread,
May 10, 2020, 3:59:14 AM5/10/20
to Chromium-discuss
In the folder "..\chromium_git\chromium\src\build" must exist the file named "LASTCHANGE.dummy.committime" with content like "1585884836".

When the file "LASTCHANGE.dummy.committime" does not exist try to exec command in this dir:
"lastchange.py LASTCHANGE.dummy" or  "python lastchange.py LASTCHANGE.dummy" (if files associations do not contain handler for *.py).
The file "LASTCHANGE.dummy.committime" must be created after  script "lastchange.py" passed.

Rename the "LASTCHANGE.dummy.committime" to "LASTCHANGE.committime".

понедельник, 1 апреля 2019 г., 10:38:04 UTC+4 пользователь 尚二蛋 написал:

kosit la-orngsri

unread,
May 10, 2020, 4:14:06 AM5/10/20
to Chromium-discuss
สวัสดี

เมื่อ วันจันทร์ที่ 1 เมษายน ค.ศ. 2019 13 นาฬิกา 38 นาที 04 วินาที UTC+7, 尚二蛋 เขียนว่า:
Reply all
Reply to author
Forward
0 new messages