chromium 执行命令:gn args out/Default
报如下错:
.gclient file in parent directory /home/×××××/chromium might not be the file you want to use
Waiting for editor on "/home/×××××/chromium/src/out/114la/args.gn"...
Generating files...
ERROR at //build/util/version.gni:29:11: Script returned non-zero exit code.
_result = exec_script("version.py",
^----------
Current dir: /home/×××××/chromium/src/out/114la/
Command: python -- /home//×××××/chromium/src/build/util/version.py -f ../../chrome/VERSION -t full = "@MAJOR@.@MINOR@.@BUILD@.@PATCH@" major = "@MAJOR@" minor = "@MINOR@" build = "@BUILD@" patch = "@PATCH@" remoting = "@REMOTING_PATCH"
Returned 1.
stderr:
Traceback (most recent call last):
File "/home/×××××/chromium/src/build/util/version.py", line 170, in <module>
sys.exit(main())
File "/home/×××××/chromium/src/build/util/version.py", line 143, in main
values = fetch_values(options.file, options.official)
File "/home/×××××/chromium/src/build/util/version.py", line 50, in fetch_values
fetch_values_from_file(values, file_name)
File "/home/×××××/chromium/src/build/util/version.py", line 26, in fetch_values_from_file
key, val = line.rstrip('\r\n').split('=', 1)
ValueError: need more than 1 value to unpack
See //remoting/BUILD.gn:7:1: whence it was imported.
import("//build/util/version.gni")
^--------------------------------
See //BUILD.gn:311:15: which caused the file to be included.
deps += [ "//remoting:remoting_all" ]
^------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
最后定位到错误原因:
在chrome目录下的VERSION文件,最后一行多了一个换行键。
报如下错:
.gclient file in parent directory /home/×××××/chromium might not be the file you want to use
Waiting for editor on "/home/×××××/chromium/src/out/114la/args.gn"...
Generating files...
ERROR at //build/util/version.gni:29:11: Script returned non-zero exit code.
_result = exec_script("version.py",
^----------
Current dir: /home/×××××/chromium/src/out/114la/
Command: python -- /home//×××××/chromium/src/build/util/version.py -f ../../chrome/VERSION -t full = "@MAJOR@.@MINOR@.@BUILD@.@PATCH@" major = "@MAJOR@" minor = "@MINOR@" build = "@BUILD@" patch = "@PATCH@" remoting = "@REMOTING_PATCH"
Returned 1.
stderr:
Traceback (most recent call last):
File "/home/×××××/chromium/src/build/util/version.py", line 170, in <module>
sys.exit(main())
File "/home/×××××/chromium/src/build/util/version.py", line 143, in main
values = fetch_values(options.file, options.official)
File "/home/×××××/chromium/src/build/util/version.py", line 50, in fetch_values
fetch_values_from_file(values, file_name)
File "/home/×××××/chromium/src/build/util/version.py", line 26, in fetch_values_from_file
key, val = line.rstrip('\r\n').split('=', 1)
ValueError: need more than 1 value to unpack
See //remoting/BUILD.gn:7:1: whence it was imported.
import("//build/util/version.gni")
^--------------------------------
See //BUILD.gn:311:15: which caused the file to be included.
deps += [ "//remoting:remoting_all" ]
^------------------------
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
最后定位到错误原因:
在chrome目录下的VERSION文件,最后一行多了一个换行键。