Build error in OSX, branch 4389

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 error in OSX, branch 4389

Postby coder678 » Tue Feb 16, 2021 4:03 am

Hello

I have an error when building 4389 on OSX.
Code: Select all
[8:02:05] Still working on:
[8:02:05]   src/third_party/tflite/src
Syncing projects: 100% (125/125), done.                   
-------- Running "git config --get remote.origin.url" in "/Volumes/MyPassport/cef_build/code/chromium_git/chromium/src"...
--> Chromium URL: https://chromium.googlesource.com/chromium/src.git
-------- Running "git fetch" in "/Volumes/MyPassport/cef_build/code/chromium_git/chromium/src"...
error: RPC failed; curl 16 SSL_write() returned SYSCALL, errno = 32
fatal: the remote end hung up unexpectedly
Traceback (most recent call last):
  File "../automate/automate-git.py", line 1306, in <module>
    run("%s fetch" % (git_exe), chromium_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 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['git', 'fetch']' returned non-zero exit status 128


The build script is the following.
Code: Select all
#!/bin/bash
export CEF_USE_GN=1
export GN_DEFINES="is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome"
python ../automate/automate-git.py --branch=4389 --download-dir=/Volumes/MyPassport/cef_build/code/chromium_git --depot-tools-dir=/Volumes/MyPassport/cef_build/code/depot_tools --x64-build --no-distrib --no-build


System: MacOS 11.3 beta, XCode 12.4.
coder678
Techie
 
Posts: 35
Joined: Sun Jun 26, 2016 10:03 pm

Re: Build error in OSX, branch 4389

Postby magreenblatt » Tue Feb 16, 2021 10:31 am

Retry, it’s possibly a transient network error.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Build error in OSX, branch 4389

Postby coder678 » Tue Feb 16, 2021 3:31 pm

I tried multiple times. The error is same.
coder678
Techie
 
Posts: 35
Joined: Sun Jun 26, 2016 10:03 pm

Re: Build error in OSX, branch 4389

Postby magreenblatt » Tue Feb 16, 2021 3:40 pm

Is your git version reasonably current?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Build error in OSX, branch 4389

Postby coder678 » Wed Feb 17, 2021 12:49 am

Thank you. After updating git, the build was successful. Now I have another error.
Code: Select all
-------- Running "ninja -C out/Debug_GN_x64 cefclient" in "/Volumes/MyPassport/cef_build/code/chromium_git/chromium/src"...
ninja: Entering directory `out/Debug_GN_x64'
[9543/46714] ACTION //cef:cefclient_xibs_compile_ibtool(//build/toolchain/mac:clang_x64)
/* com.apple.ibtool.document.warnings */
/Volumes/MyPassport/cef_build/code/chromium_git/chromium/src/cef/tests/cefclient/resources/mac/English.lproj/MainMenu.xib:global: warning: This file is set to build for a version older than the deployment target. Functionality may be limited. [9]
[37414/46714] COPY_BUNDLE_DATA 'obj/cef/cefclient_helper_app_gpu_executable...r (GPU)' 'cefclient Helper (GPU).app/Contents/MacOS/cefclient Helper (GPU)'
FAILED: cefclient Helper (GPU).app/Contents/MacOS/cefclient Helper (GPU)
rm -rf 'cefclient Helper (GPU).app/Contents/MacOS/cefclient Helper (GPU)' && cp -Rc 'obj/cef/cefclient_helper_app_gpu_executable/cefclient Helper (GPU)' 'cefclient Helper (GPU).app/Contents/MacOS/cefclient Helper (GPU)'
cp: cefclient Helper (GPU).app/Contents/MacOS/cefclient Helper (GPU): clonefile failed: Operation not supported
[37423/46714] CXX obj/extensions/browser/api/alarms/alarms/alarm_manager.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "../automate/automate-git.py", line 1485, in <module>
    if options.buildlogfile else None)
  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 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-C', 'out/Debug_GN_x64', 'cefclient']' returned non-zero exit status 1


The script is:
Code: Select all
#!/bin/bash
export CEF_USE_GN=1
export GN_DEFINES="is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome"
python ../automate/automate-git.py --branch=4389 --download-dir=/Volumes/MyPassport/cef_build/code/chromium_git --x64-build --no-update
coder678
Techie
 
Posts: 35
Joined: Sun Jun 26, 2016 10:03 pm

Re: Build error in OSX, branch 4389

Postby magreenblatt » Wed Feb 17, 2021 10:56 am

Sounds like https://unix.stackexchange.com/question ... or-macos-x. Maybe an issue with your beta OS version.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Build error in OSX, branch 4389

Postby coder678 » Sat Feb 20, 2021 4:26 pm

I could build it successfully after I did it on MacBook, not on the external drive. I created projects in XCode. But if I press "Run" for cefsimple, it takes 1 min 36 s before the browser window appears, why?
MacBook Pro 2020, MacOS 11.2.1 release, XCode 12.4.
coder678
Techie
 
Posts: 35
Joined: Sun Jun 26, 2016 10:03 pm

Re: Build error in OSX, branch 4389

Postby magreenblatt » Sat Feb 20, 2021 5:23 pm

Debug or Release build? Do you have antivirus on your machine? Does it launch faster the 2nd+ time? How does the Sample App behave at the same version (you will need to grant it permission to run).
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Build error in OSX, branch 4389

Postby coder678 » Sat Feb 20, 2021 9:35 pm

It seems to be ok now, after I freed disk space and removed all unnecessary files from the machine.
coder678
Techie
 
Posts: 35
Joined: Sun Jun 26, 2016 10:03 pm

Re: Build error in OSX, branch 4389

Postby Satrajit » Wed Aug 11, 2021 1:40 pm

Code: Select all
    raise subprocess2.CalledProcessError(
subprocess2.CalledProcessError: Command 'git -c core.deltaBaseCacheLimit=2g fetch origin --no-tags' returned non-zero exit status 128 in /Volumes/T7/C/cef/4515/chromium/src

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Volumes/T7/C/cef/4515/depot_tools/gclient_scm.py", line 1048, in _Clone
    self._Run(clone_cmd, options, cwd=self._root_dir, retry=True,
  File "/Volumes/T7/C/cef/4515/depot_tools/gclient_scm.py", line 1388, in _Run
    gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs)
  File "/Volumes/T7/C/cef/4515/depot_tools/gclient_utils.py", line 672, in CheckCallAndFilter
    raise subprocess2.CalledProcessError(
subprocess2.CalledProcessError: Command 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/chromium/src.git /Volumes/T7/C/cef/4515/chromium/_gclient_src_oucznqdy' returned non-zero exit status 128 in /Volumes/T7/C/cef/4515/chromium
----------------------------------------
Error: Command 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/chromium/src.git /Volumes/T7/C/cef/4515/chromium/_gclient_src_oucznqdy' returned non-zero exit status 128 in /Volumes/T7/C/cef/4515/chromium


Warnings:
Conflicting directory /Volumes/T7/C/cef/4515/chromium/src moved to /Volumes/T7/C/cef/4515/chromium/_bad_scm/srclpj6aver.

Traceback (most recent call last):
  File "automate-git.py", line 1291, in <module>
    chromium_dir, depot_tools_dir)
  File "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 190, in check_call
    raise CalledProcessError(retcode, cmd)


Facing similar issues, cannot build CEF 4515 in external SSD
Satrajit
Mentor
 
Posts: 87
Joined: Wed Jan 09, 2019 6:11 am

Next

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 59 guests