Page 2 of 2

Re: Problem building 4951 branch in Windows 10

PostPosted: Tue May 03, 2022 4:19 am
by rjxray
I tried setting GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome is_component_build=true
But got assert(!is_component_build)

So instead tried setting GN_DEFINES=is_component_build=true proprietary_codecs=true ffmpeg_branding=Chrome
and am building with that

Is there anywhere I can find a list of the possible GN_DEFINES and their usages?
What GN_DEFINES are used for the official builds? I guess is_official_build=true but are there any others?

Re: Problem building 4951 branch in Windows 10

PostPosted: Tue May 03, 2022 4:25 am
by amaitland
Component builds are only for local debugging.

Official build args are listed at https://bitbucket.org/chromiumembedded/ ... figuration

Re: Problem building 4951 branch in Windows 10

PostPosted: Tue May 03, 2022 4:58 am
by rjxray
I've just realized the previous build failed because of LLVM ERROR: IO failure on output stream: no space on device.
I'll make some space and retry that

Re: Problem building 4951 branch in Windows 10

PostPosted: Tue May 03, 2022 12:04 pm
by rjxray
A build with GN_DEFINES set to is_official_build=true use_thin_lto=false proprietary_codecs=true ffmpeg_branding=Chrome works OK

So it seems use_thin_lto=false is now required

Re: Problem building 4951 branch in Windows 10

PostPosted: Thu Aug 11, 2022 2:06 am
by rjxray
I am now building 5060 branch and have hit the same issue with apache
Code: Select all
Running hooks:  29% (39/131) apache_win32
________ running 'python3 src/third_party/depot_tools/download_from_google_storage.py --no_resume --directory --recursive --no_auth --num_threads=16 --bucket chromium-apache-win32 src/third_party/apache-win32' in 'D:\CefBuild5060\chromium'
Access is denied.

Failed to fetch file gs://chromium-apache-win32/50699041060d14576ed7bacbd44be9af80eb902a for src/third_party/apache-win32\bin\api-ms-win-core-processthreads-l1-1-0.dll. [Err: Access is denied.

It appears this issue was transient previously and retrying the build might fix it.
However rerunning automate git does not retry this download.
Is there any way to force that without starting again from scratch?

Re: Problem building 4951 branch in Windows 10

PostPosted: Thu Aug 11, 2022 8:42 am
by magreenblatt
You can run "gclient runhooks" manually. If it otherwise succeeds you won't need the apache files for a CEF build. See also https://bitbucket.org/chromiumembedded/ ... e-failures

Re: Problem building 4951 branch in Windows 10

PostPosted: Sat Aug 13, 2022 3:18 am
by rjxray
I had already tried "gclient runhooks" which didn't appear to do anything.
So I tried "gclient sync --with_branch_heads" and then I could continue and build normally
Thanks for the help