Build branch 3729 failed in should_use_hermetic_xcode.py

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.

Build branch 3729 failed in should_use_hermetic_xcode.py

Postby lypkiller » Mon Jan 20, 2020 4:20 am

I was trying to build cef branch 3729 with following settting:

Code: Select all
# export GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome use_jumbo_build=true
# export CEF_ARCHIVE_FORMAT=tar.bz2
# python automate/automate-git.py --download-dir=/Users/yongping.li/Downloads/cef_ffmpeg/code/chromium_git \
        --branch=3729 \
        --minimal-distrib --client-distrib --x64-build

...
...
...
57 patches total (57 applied, 0 skipped, 0 failed)

Generating CEF project files...
Creating /Users/yongping.li/Downloads/cef_ffmpeg/code/chromium_git/chromium/src/out/Debug_GN_x64 directory.
________ running 'gn gen out/Debug_GN_x64' in '/Users/yongping.li/Downloads/cef_ffmpeg/code/chromium_git/chromium/src'
ERROR at //build_overrides/build.gni:50:13: Script returned non-zero exit code.
  _result = exec_script("//build/mac/should_use_hermetic_xcode.py",
            ^----------
Current dir: /Users/yongping.li/Downloads/cef_ffmpeg/code/chromium_git/chromium/src/out/Debug_GN_x64/
Command: python /Users/yongping.li/Downloads/cef_ffmpeg/code/chromium_git/chromium/src/build/mac/should_use_hermetic_xcode.py mac
Returned 1.
stderr:

  File "/Users/yongping.li/Downloads/cef_ffmpeg/code/chromium_git/chromium/src/build/mac/should_use_hermetic_xcode.py", line 41
    print main()
             ^
SyntaxError: invalid syntax

See //build/toolchain/toolchain.gni:9:1: whence it was imported.
import("//build_overrides/build.gni")
^-----------------------------------
See //build/config/coverage/coverage.gni:5:1: whence it was imported.
import("//build/toolchain/toolchain.gni")
^---------------------------------------
See //build/config/sanitizers/sanitizers.gni:7:1: whence it was imported.
import("//build/config/coverage/coverage.gni")
^--------------------------------------------
See //build/config/compiler/compiler.gni:8:1: whence it was imported.
import("//build/config/sanitizers/sanitizers.gni")
^------------------------------------------------
See //BUILD.gn:11:1: whence it was imported.
import("//build/config/compiler/compiler.gni")
^--------------------------------------------
Traceback (most recent call last):
  File "/Users/yongping.li/Downloads/cef_ffmpeg/code/chromium_git/chromium/src/cef/tools/gclient_hook.py", line 132, in <module>
    RunAction(src_dir, cmd)
  File "/Users/yongping.li/Downloads/cef_ffmpeg/code/chromium_git/chromium/src/cef/tools/gclient_util.py", line 40, in RunAction
    gclient_utils.CheckCallAndFilter(command, cwd=dir, print_stdout=True, show_header=True, always_show_header=True)
  File "/Users/yongping.li/Downloads/cef_ffmpeg/code/chromium_git/depot_tools/gclient_utils.py", line 614, in CheckCallAndFilter
    rv, args, kwargs.get('cwd', None), None, None)
subprocess2.CalledProcessError: Command 'gn gen out/Debug_GN_x64' returned non-zero exit status 1 in /Users/yongping.li/Downloads/cef_ffmpeg/code/chromium_git/chromium/src
Traceback (most recent call last):
  File "automate/automate-git.py", line 1551, in <module>
    run('%s %s' % (python_exe, tool), cef_src_dir, depot_tools_dir)
  File "automate/automate-git.py", line 70, in run
    args, cwd=working_dir, env=env, shell=(sys.platform == 'win32'))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Users/yongping.li/virtualenv/p27/bin/python', '/Users/yongping.li/Downloads/cef_ffmpeg/code/chromium_git/chromium/src/cef/tools/gclient_hook.py']' returned non-zero exit status 1



I tried to run should_use_hermetic_xcode.py manully, it looks fine:
Code: Select all
# python /Users/yongping.li/Downloads/cef_ffmpeg/code/chromium_git/chromium/src/build/mac/should_use_hermetic_xcode.py mac
0


No sure why it failed during running automate-git.py, any suggestion?
lypkiller
Techie
 
Posts: 12
Joined: Mon Jan 20, 2020 4:14 am

Re: Build branch 3729 failed in should_use_hermetic_xcode.py

Postby Czarek » Wed Jan 22, 2020 4:56 am

Looks like you're using Python 3. The branch you build is old and doesn't support Python 3. Also don't use jumbo build option when building proprietary codecs as it's been causing troubles in the past.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 28 guests