I can't gclient sync to 100%,98%has done and no error,runhooks is faild

357 views
Skip to first unread message

å¼ åŗ†é¾™

unread,
Apr 1, 2014, 11:32:47ā€ÆPM4/1/14
to chromi...@chromium.org
i use the windows7 64, and i want to check the code and buid it
my .gclent like :
solutions = [
Ā  { "name" Ā  Ā  Ā  Ā : "36.0.1917.1",
Ā  Ā  "url" Ā  Ā  Ā  Ā  : "http://src.chromium.org/svn/releases/36.0.1917.1",
Ā  Ā  "deps_file" Ā  : "DEPS",
Ā  Ā  "managed" Ā  Ā  : True,
Ā  Ā  "custom_deps" : {
"src/third_party/WebKit/LayoutTests": None,
"src/chrome/tools/test/reference_build/chrome": None,
"src/chrome_frame/tools/test/reference_build/chrome": None,
"src/chrome/tools/test/reference_build/chrome_linux": None,
"src/chrome/tools/test/reference_build/chrome_mac": None,
"src/third_party/hunspell_dictionaries": None,
Ā  Ā  },
Ā  Ā  "safesync_url": "",
Ā  },
]
cache_dir = None

when i gclient sync,it go to the 99% like this:

Syncing projects: Ā 99% (102/103), done.ird_party/yasm/binaries

sometimes it is 98% when i change the custom_deps

and no errors .

when i gclient runhooksĀ 
some errors like this:
Exception: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range(128)
i don't know why and i want tobuid

Scott Hess

unread,
Apr 1, 2014, 11:36:35ā€ÆPM4/1/14
to mumul...@gmail.com, Chromium-dev
Usually, doing "gclient sync --jobs=1" helps me figure out which thing is going wrong. Ā When the parallel jobs are running, the output sometimes doesn't really relate to the job that's hanging.

[You may also have luck looking at your process list to see what's going on. Ā Sometimes there will be an obvious command-line which is checking out a very big sub-project, such as blink.]

-scott



--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Scott Graham

unread,
Apr 1, 2014, 11:40:39ā€ÆPM4/1/14
to mumul...@gmail.com, chromium-dev
Unfortunately that's a Python bug related to having non-ascii file extensions, there's some details here:Ā https://groups.google.com/a/chromium.org/d/msg/chromium-dev/Taetx0xAxTk/5W1i4WG2me0J

I don't think anyone has worked around it yet.


On Tue, Apr 1, 2014 at 8:32 PM, å¼ åŗ†é¾™ <mumul...@gmail.com> wrote:

--

å¼ åŗ†é¾™

unread,
Apr 1, 2014, 11:48:11ā€ÆPM4/1/14
to chromi...@chromium.org
the gclient runhooks :
________ running 'E:\depot_tools\python276_bin\python.exe src/build/download_nacl_toolchains.py --no-arm-trusted --keep' in 'E:\chromium'
E:\chromium\src\native_client\toolchain\.tars\toolchain_win_x86.tar.bz2 is already up to date.
E:\chromium\src\native_client\toolchain\.tars\toolchain_win_x86.tar.bz2 is already up to date.
win_x86: already up to date.
E:\chromium\src\native_client\toolchain\.tars\naclsdk_win_x86.tgz is already up to date.
E:\chromium\src\native_client\toolchain\.tars\naclsdk_win_x86.tgz is already up to date.
win_x86_newlib: already up to date.
E:\chromium\src\native_client\toolchain\.tars\naclsdk_pnacl_win_x86.tgz is already up to date.
E:\chromium\src\native_client\toolchain\.tars\naclsdk_pnacl_win_x86.tgz is already up to date.
pnacl_win_x86: already up to date.
E:\chromium\src\native_client\toolchain\.tars\naclsdk_pnacl_translator.tgz is already up to date.
E:\chromium\src\native_client\toolchain\.tars\naclsdk_pnacl_translator.tgz is already up to date.
pnacl_translator: already up to date.

________ running 'E:\depot_tools\python276_bin\python.exe src/build/linux/install-arm-sysroot.py --linux-only' in 'E:\chromium'

________ running 'E:\depot_tools\python276_bin\python.exe src/chrome/installer/linux/sysroot_scripts/install-debian.wheezy.sysroot.py --linux-only -
Ā in 'E:\chromium'

________ running 'E:\depot_tools\python276_bin\python.exe src/chrome/installer/linux/sysroot_scripts/install-debian.wheezy.sysroot.py --linux-only -
in 'E:\chromium'

________ running 'E:\depot_tools\python276_bin\python.exe src/tools/clang/scripts/update.py --if-needed' in 'E:\chromium'
Skipping Clang update (clang=1 was not set in GYP_DEFINES).

________ running 'E:\depot_tools\python276_bin\python.exe src/build/util/lastchange.py -o src/build/util/LASTCHANGE' in 'E:\chromium'

________ running 'E:\depot_tools\python276_bin\python.exe src/build/util/lastchange.py -s src/third_party/WebKit -o src/build/util/LASTCHANGE.blink'
mium'

________ running 'download_from_google_storage --no_resume --platform=win32 --no_auth --bucket chromium-gn -s src/tools/gn/bin/win/gn.exe.sha1' in '


________ running 'download_from_google_storage --no_resume --platform=darwin --no_auth --bucket chromium-gn -s src/tools/gn/bin/mac/gn.sha1' in 'E:\

________ running 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-gn -s src/tools/gn/bin/linux/gn.sha1' in 'E

________ running 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-gn -s src/tools/gn/bin/linux/gn32.sha1' in
'

________ running 'download_from_google_storage --no_resume --platform=win32 --no_auth --bucket chromium-clang-format -s src/third_party/clang_format
ng-format.exe.sha1' in 'E:\chromium'

________ running 'download_from_google_storage --no_resume --platform=darwin --no_auth --bucket chromium-clang-format -s src/third_party/clang_forma
ang-format.sha1' in 'E:\chromium'

________ running 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format -s src/third_party/clang_forma
clang-format.sha1' in 'E:\chromium'

________ running 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-eu-strip -s src/build/linux/bin/eu-strip.sh
hromium'

________ running 'E:\depot_tools\python276_bin\python.exe src/build/gyp_chromium' in 'E:\chromium'
Enabled Psyco JIT.
Updating projects from gyp files...
Exception: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range(128)
Traceback (most recent call last):
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 469, in CallLoadTargetBuildFile
Ā  Ā  includes, depth, check, False)
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 385, in LoadTargetBuildFile
Ā  Ā  build_file_data, PHASE_EARLY, variables, build_file_path)
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 1234, in ProcessVariablesAndConditionsInDict
Ā  Ā  build_file)
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 1249, in ProcessVariablesAndConditionsInList
Ā  Ā  ProcessVariablesAndConditionsInDict(item, phase, variables, build_file)
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 1208, in ProcessVariablesAndConditionsInDict
Ā  Ā  ProcessConditionsInDict(the_dict, phase, variables, build_file)
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 1085, in ProcessConditionsInDict
Ā  Ā  variables, build_file)
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 1234, in ProcessVariablesAndConditionsInDict
Ā  Ā  build_file)
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 1249, in ProcessVariablesAndConditionsInList
Ā  Ā  ProcessVariablesAndConditionsInDict(item, phase, variables, build_file)
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 1234, in ProcessVariablesAndConditionsInDict
Ā  Ā  build_file)
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 1253, in ProcessVariablesAndConditionsInList
Ā  Ā  expanded = ExpandVariables(item, phase, variables, build_file)
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 873, in ExpandVariables
Ā  Ā  replacement = str(py_module.DoMain(parsed_contents[1:])).rstrip()
Ā  File "E:\chromium\src\tools\grit\grit_info.py", line 138, in DoMain
Ā  Ā  options.target_platform)
Ā  File "E:\chromium\src\tools\grit\grit_info.py", line 81, in Inputs
Ā  Ā  node.RunPreSubstitutionGatherer()
Ā  File "E:\chromium\src\tools\grit\grit\node\structure.py", line 229, in RunPreSubstitutionGatherer
Ā  Ā  self.gatherer.Parse()
Ā  File "E:\chromium\src\tools\grit\grit\gather\chrome_html.py", line 352, in Parse
Ā  Ā  filename_expansion_function=self.filename_expansion_function)
Ā  File "E:\chromium\src\tools\grit\grit\format\html_inline.py", line 370, in InlineToString
Ā  Ā  filename_expansion_function=filename_expansion_function).inlined_data
Ā  File "E:\chromium\src\tools\grit\grit\format\html_inline.py", line 330, in DoInline
Ā  Ā  flat_text)
Ā  File "E:\chromium\src\tools\grit\grit\format\html_inline.py", line 329, in <lambda>
Ā  Ā  lambda m: InlineCSSFile(m, '<style>%s</style>'),
Ā  File "E:\chromium\src\tools\grit\grit\format\html_inline.py", line 281, in InlineCSSFile
Ā  Ā  filepath)
Ā  File "E:\chromium\src\tools\grit\grit\format\html_inline.py", line 257, in InlineCSSText
Ā  Ā  text = InlineCSSImages(text, filepath)
Ā  File "E:\chromium\src\tools\grit\grit\format\html_inline.py", line 293, in InlineCSSImages
Ā  Ā  text)
Ā  File "E:\depot_tools\python276_bin\lib\re.py", line 151, in sub
Ā  Ā  return _compile(pattern, flags).sub(repl, string, count)
Ā  File "E:\chromium\src\tools\grit\grit\format\html_inline.py", line 292, in <lambda>
Ā  Ā  lambda m: InlineCSSUrls(m, filepath),
Ā  File "E:\chromium\src\tools\grit\grit\format\html_inline.py", line 300, in InlineCSSUrls
Ā  Ā  src_match.group(0))
Ā  File "E:\depot_tools\python276_bin\lib\re.py", line 151, in sub
Ā  Ā  return _compile(pattern, flags).sub(repl, string, count)
Ā  File "E:\chromium\src\tools\grit\grit\format\html_inline.py", line 299, in <lambda>
Ā  Ā  lambda m: SrcReplace(m, filepath),
Ā  File "E:\chromium\src\tools\grit\grit\format\html_inline.py", line 164, in SrcReplace
Ā  Ā  filename_expansion_function=filename_expansion_function)
Ā  File "E:\chromium\src\tools\grit\grit\format\html_inline.py", line 112, in SrcInlineAsDataURL
Ā  Ā  mimetype = FixupMimeType(mimetypes.guess_type(filename)[0]) or 'text/plain'
Ā  File "E:\depot_tools\python276_bin\lib\mimetypes.py", line 297, in guess_type
Ā  Ā  init()
Ā  File "E:\depot_tools\python276_bin\lib\mimetypes.py", line 358, in init
Ā  Ā  db.reaError processing node <?xml version="1.0" encoding="UTF-8"?>
<structure file="css/menu.css" flattenhtml="true" name="IDR_WEBUI_CSS_MENU" type="chrome_html" />
Exception: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range(128)
Traceback (most recent call last):
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 469, in CallLoadTargetBuildFile
Ā  Ā  includes, depth, check, False)
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 385, in LoadTargetBuildFile
Ā  Ā  build_file_data, PHASE_EARLY, variables, build_file_path)
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 1234, in ProcessVariablesAndConditionsInDict
Ā  Ā  build_file)
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 1249, in ProcessVariablesAndConditionsInList
Ā  Ā  ProcessVariablesAndConditionsInDict(item, phase, variables, build_file)
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 1234, in ProcessVariablesAndConditionsInDict
Ā  Ā  build_file)
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 1249, in ProcessVariablesAndConditionsInList
Ā  Ā  ProcessVariablesAndConditionsInDict(item, phase, variables, build_file)
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 1234, in ProcessVariablesAndConditionsInDict
Ā  Ā  build_file)
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 1253, in ProcessVariablesAndConditionsInList
Ā  Ā  expanded = ExpandVariables(item, phase, variables, build_file)
Ā  File "E:\chromium\src\tools\gyp\pylib\gyp\input.py", line 873, in ExpandVariables
Ā  Ā  replacement = str(py_module.DoMain(parsed_contents[1:])).rstrip()
Ā  File "E:\chromium\src\tools\grit\grit_info.py", line 138, in DoMain
Ā  Ā  options.target_platform)
Ā  File "E:\chromium\src\tools\grit\grit_info.py", line 81, in Inputs
Ā  Ā  node.RunPreSubstitutionGatherer()
Ā  File "E:\chromium\src\tools\grit\grit\node\structure.py", line 229, in RunPreSubstitutionGatherer
Ā  Ā  self.gatherer.Parse()
Ā  File "E:\chromium\src\tools\grit\grit\gather\chrome_html.py", line 352, in Parse
Ā  Ā  filename_expansion_function=self.filename_expansion_function)
Ā  File "E:\chromium\src\tools\grit\grit\format\html_inline.py", line 370, in InlineToString
Ā  Ā  filename_expansion_function=filename_expansion_function).inlined_data
Ā  File "E:\chromium\src\tools\grit\grit\format\html_inline.py", line 345, in DoInline
Ā  Ā  flat_text = InlineCSSImages(flat_text)
Ā  File "E:\chromium\src\tools\grit\grit\format\html_inline.py", line 293, in InlineCSSImages
Ā  Ā  text)
Ā  File "E:\depot_tools\python276_bin\lib\re.py", line 151, in sub
Ā  Ā  return _compile(pattern, flags).sub(repl, string, count)
Ā  File "E:\chromium\src\tools\grit\grit\format\html_inline.py", line 292, in <lambda>
Ā  Ā  lambda m: InlineCSSUrls(m, filepath),
Ā  File "E:\chromium\src\tools\grit\grit\format\html_inline.py", line 300, in InlineCSSUrls
Ā  Ā  src_match.group(0))
Ā  File "E:\depot_tools\python276_bin\lib\re.py", line 151, in sub
Ā  Ā  return _compile(pattern, flags).sub(repl, string, count)
Ā  File "E:\chromium\src\tools\grit\grit\format\html_inline.py", line 299, in <lambda>
Ā  Ā  lambda m: SrcReplace(m, filepath),
Ā  File "E:\chromium\src\tools\grit\grit\format\html_inline.py", line 164, in SrcReplace
Ā  Ā  filename_expansion_function=filename_expansion_function)
Ā  File "E:\chromium\src\tools\grit\grit\format\html_inline.py", line 112, in SrcInlineAsDataURL
Ā  Ā  mimetype = FixupMimeType(mimetypes.guess_type(filename)[0]) or 'text/plain'
Ā  File "E:\depot_tools\python276_bin\lib\mimetypes.py", line 297, in guess_type
Ā  Ā  init()
Ā  File "E:\depot_tools\python276_bin\lib\mimetypes.py", line 358, in init
Ā  Ā  db.read_windows_registry()
Ā  File "E:\depot_tools\python276_bin\lib\mimetypes.py", line 258, in read_windows_registry
Ā  Ā  for subkeyname in enum_types(hkcr):
Ā  File "E:\depot_tools\python276_bin\lib\mimetypes.py", line 249, in enum_types
Ā  Ā  ctype = ctype.encode(default_encoding) # omit in 3.x!
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range(128)

Error processing node <?xml version="1.0" encoding="UTF-8"?>
<structure allowexternalscript="true" file="bookmark_manager/main.html" flattenhtml="true" name="IDR_BOOKMARK_MANAGER_MAIN" type="chrome_html" />
d_windows_registry()
Ā  File "E:\depot_tools\python276_bin\lib\mimetypes.py", line 258, in read_windows_registry
Ā  Ā  for subkeyname in enum_types(hkcr):
Ā  File "E:\depot_tools\python276_bin\lib\mimetypes.py", line 249, in enum_types
Ā  Ā  ctype = ctype.encode(default_encoding) # omit in 3.x!
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range(128)

Error: Command E:\depot_tools\python276_bin\python.exe src/build/gyp_chromium returned non-zero exit status 1 in E:\chromium
Hook ''E:\depot_tools\python276_bin\python.exe' src/build/gyp_chromium' took 23.22 secs


åœØ 2014幓4꜈2ę—„ę˜ŸęœŸäø‰UTC+8äøŠåˆ11ę—¶32分47ē§’ļ¼Œå¼ åŗ†é¾™å†™é“ļ¼š

å¼ åŗ†é¾™

unread,
Apr 2, 2014, 12:15:33ā€ÆAM4/2/14
to chromi...@chromium.org, mumul...@gmail.com
wa oh :
that is ok to 100%,but when i runhooks ,the error has :
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range(128)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range(128)
can you help me?

åœØ 2014幓4꜈2ę—„ę˜ŸęœŸäø‰UTC+8äøŠåˆ11ę—¶36分35ē§’ļ¼ŒScott Hess写道ļ¼š

Scott Hess

unread,
Apr 2, 2014, 12:28:22ā€ÆAM4/2/14
to mumul...@gmail.com, Chromium-dev
Sorry, your original email said 100%, 99%, and 98%, so I thought you were hanging in sync. Ā If you're running to completion and getting some other error, that's not what I was trying to address, and scottmg's point will be more useful.

-scott

YUN LI

unread,
Apr 18, 2014, 9:19:09ā€ÆAM4/18/14
to chromi...@chromium.org
Here is the patch for fixing this issue. It really works for me. :-)

Bicen Zhu

unread,
Apr 1, 2018, 6:34:01ā€ÆAM4/1/18
to Chromium-dev
The bug still existw in recent depot_tools. Why was the fix not merged?Ā 
Reply all
Reply to author
Forward
0 new messages