Build fails on Windows 10 with error subprocess.CalledProcessError: Command [...] returned non-zero exit status 1. Similar to #582. Issue was supposedly solved in #475.
Full console output available here.
Traceback (most recent call last):
File "ungoogled_packaging\build.py", line 187, in <module>
main()
File "ungoogled_packaging\build.py", line 164, in main
buildkit.patches.patch_paths_by_bundle(bundle), source_tree, patch_bin_path=None)
File "C:\Users\marshmallow\Documents\GitHub\ungoogled-chromium\build\src\ungoogled_packaging\buildkit\patches.py", line 95, in apply_patches
subprocess.run(cmd, check=True)
File "C:\Users\marshmallow\Python 3.7.1\lib\subprocess.py", line 481, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['C:\\Users\\marshmallow\\Documents\\GitHub\\ungoogled-chromium\\build\\src\\third_party\\git\\usr\\bin\\patch.exe', '-p1', '--ignore-whitespace', '-i', 'C:\\Users\\marshmallow\\Documents\\GitHub\\ungoogled-chromium\\build\\src\\ungoogled_packaging\\patches\\ungoogled-chromium\\windows\\windows-fix-building-without-safebrowsing.patch', '-d', 'C:\\Users\\marshmallow\\Documents\\GitHub\\ungoogled-chromium\\build\\src', '--no-backup-if-mismatch', '--forward']' returned non-zero exit status 1.
71.0.3578.98-2windowswindowsWindows 10 (64-bit)Visual Studio Community 2017 C++ toolsVisual C++ core desktop featuresJust-In-Time debuggerVC++ 2017 version 15.9 v14.16 latest v141 toolsC++ profiling toolsWindows 10 SDK (10.0.17763.0)Visual C++ tools for CMakeVisual C++ ATL for x86 and x64Test Adapter for Boost.TestTest Adapter for Google TestVisual C++ MFC for x86 and x64Visual Studio Community 2017 with the above sub-componentsDebugging Tools For Windows for Windows 10 SDKPython 2.7.15, Python 3.7.1 and 7-Zippip install pypiwin32PYTHON user environment variable pointing to Python 2.7.15Run the commands below in ungoogled-chromium Git repository in cmd.exe as administrator:
mkdir build\src
py get_package.py windows build\src\ungoogled_packaging
cd build\src
py ungoogled_packaging\build.py
can someone create an OVA for the windows 64bit build of latest version 71.x and upload it?
@hydrogenpi It's failing
same error, i think the problem with the extraction of the chromium-71.0.3578.98.tar.xz or the file itself even manual extraction for it with winrar stops with errors and freeze every thing it touches the file explorer the winrar
the process from the script messed up my ssd now i have 2 src folder in the same location properties says it's about 900mb folder the delete process which takes half an hour says it's about 12gb and chkdsk command doesn't help


My issue with 71.0.3578.98-2 is not about extracting the file, that works fine however, like what happens to @yikjin it fails to patch a bunch of files down the line:
`
patching file chrome/browser/chrome_browser_main_win.cc
Hunk #2 FAILED at 394.
Hunk #3 succeeded at 548 with fuzz 1 (offset -4 lines).
1 out of 3 hunks FAILED -- saving rejects to file chrome/browser/chrome_browser_main_win.cc.rej
patching file chrome/browser/extensions/BUILD.gn
Hunk #1 succeeded at 776 (offset -32 lines).
patching file chrome/browser/prefs/browser_prefs.cc
Hunk #1 succeeded at 111 (offset 2 lines).
Hunk #2 FAILED at 300.
Hunk #3 FAILED at 503.
Hunk #4 succeeded at 586 (offset 16 lines).
Hunk #5 FAILED at 710.
3 out of 5 hunks FAILED -- saving rejects to file chrome/browser/prefs/browser_prefs.cc.rej
patching file chrome/browser/profiles/off_the_record_profile_io_data.cc
Hunk #1 FAILED at 177.
1 out of 1 hunk FAILED -- saving rejects to file chrome/browser/profiles/off_the_record_profile_io_data.cc.rej
patching file chrome/browser/profiles/profile_impl_io_data.cc
Hunk #1 FAILED at 378.
1 out of 1 hunk FAILED -- saving rejects to file chrome/browser/profiles/profile_impl_io_data.cc.rej
patching file chrome/browser/ui/BUILD.gn
Hunk #1 succeeded at 381 (offset -460 lines).
Hunk #2 succeeded at 2145 (offset -421 lines).
patching file chrome/browser/ui/browser_dialogs.h
Hunk #2 succeeded at 292 (offset 1 line).
patching file chrome/browser/ui/webui/settings/chrome_cleanup_handler.cc
Hunk #1 succeeded at 281 (offset 6 lines).
patching file chrome/browser/ui/webui/settings/md_settings_ui.cc
Hunk #2 succeeded at 256 (offset 2 lines).
patching file chrome/common/safe_browsing/BUILD.gn
Hunk #1 FAILED at 95.
1 out of 1 hunk FAILED -- saving rejects to file chrome/common/safe_browsing/BUILD.gn.rej
patching file chrome/renderer/url_loader_throttle_provider_impl.cc
Hunk #1 succeeded at 112 (offset 2 lines).
Hunk #2 succeeded at 166 with fuzz 2 (offset 9 lines).
Traceback (most recent call last):
File "ungoogled_packaging\build.py", line 187, in <module>
main()
File "ungoogled_packaging\build.py", line 164, in main
buildkit.patches.patch_paths_by_bundle(bundle), source_tree, patch_bin_path=None)
File "C:\Users\TCB13\Desktop\ungoogled-chromium-71.0.3578.98-2\build\src\ungoogled_packaging\buildkit\patches.py", line 95, in apply_patches
subprocess.run(cmd, check=True)
File "C:\Program Files\Python36\lib\subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['C:\\Users\\TCB13\\Desktop\\ungoogled-chromium-71.0.3578.98-2\\build\\src\\third_party\\git\\usr\\bin\\patch.exe', '-p1', '--ignore-whitespace', '-i', 'C:\\Users\\TCB13\\Desktop\\ungoogled-chromium-71.0.3578.98-2\\build\\src\\ungoogled_packaging\\patches\\ungoogled-chromium\\windows\\windows-fix-building-without-safebrowsing.patch', '-d', 'C:\\Users\\TCB13\\Desktop\\ungoogled-chromium-71.0.3578.98-2\\build\\src', '--no-backup-if-mismatch', '--forward']' returned non-zero exit status 1.
Apparently disabling the Safe Browsing patch seems to make the build work, according to this.
@arutr Disabling that patches seem to work...
Update: Also installed depot_tools from https://storage.googleapis.com/chrome-infra/depot_tools.zip (as explained here https://chromium.googlesource.com/chromium/src/+/64.0.3282.168/docs/windows_build_instructions.md#install). -- useless tried with it and without it, same result bellow.
Here is my current build process, you might want to take a look @yikjin :
(All commands bellow run as Admin)
gpedit.msc > Local Group Policy Editor; Browse the following path Computer Configuration > Administrative Templates > Windows Components > Windows Defender Antivirus; Double-click theTurn off Windows Defender Antivirus policy; SelectEnabled` and apply your changesWindows Update, right-click on the process, click on Properties and select Disabledpip install pypiwin32- Microsoft.VisualStudio.Workload.NativeDesktop
- microsoft.visualstudio.component.debugger.justintime
- microsoft.visualstudio.component.vc.diagnostictools
- microsoft.visualstudio.component.vc.cmake.project
- microsoft.visualstudio.component.vc.testadapterforboosttest
- microsoft.visualstudio.component.vc.testadapterforgoogletest
- microsoft.component.vc.runtime.ucrtsdk
- microsoft.visualstudio.component.vc.atlmfc
- microsoft.visualstudio.component.vc.cli.support
- microsoft.visualstudio.component.vc.140
- component.linux.cmake
Settings > Apps & features > Windows SDK 10.0.17763.132 > Modify and enable Debugging Tools For Windowsc:\ungoogled-chromium-71.0.3578.98-2DEPOT_TOOLS_WIN_TOOLCHAIN with value 0C:\ungoogled-chromium-71.0.3578.98-2\config_bundles\windows\patch_order.listC:\ungoogled-chromium-71.0.3578.98-2\config_bundles\common\patch_order.listC:\ungoogled-chromium-71.0.3578.98-2\patches for safe and delete all files related to safe searchmkdir build\src
py get_package.py windows build\src\ungoogled_packaging
cd build\src
safe inside build\src and also remove any files therepy ungoogled_packaging\build.pyIt goes almost until the end (15581/19963) and then:
In file included from ../..\third_party/skia/include/core/../private/SkOnce.h:13:
../..\third_party/skia/include/core/SkTypes.h(13,10): fatal error: 'SkUserConfig.h' file not found
#include "SkUserConfig.h"
^~~~~~~~~~~~~~~~
1 warning and 1 error generated.
[15581/19963] CXX obj/services/resource_coordinator/public/mojom/mojom_blink/mojom_blink_jumbo_1.obj
ninja: build stopped: subcommand failed.
C:\ungoogled-chromium-71.0.3578.98-2\build\src>exit
Traceback (most recent call last):
File "ungoogled_packaging\build.py", line 187, in <module>
main()
File "ungoogled_packaging\build.py", line 183, in main
'chromedriver')
File "ungoogled_packaging\build.py", line 65, in _run_build_process
**kwargs)
File "C:\Users\TCB13\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '('cmd.exe', '/k')' returned non-zero exit status 1.
This setup was done on a fresh install of Windows 10:
C:\Users\TCB13>systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name: Microsoft Windows 10 Enterprise LTSC
OS Version: 10.0.17763 N/A Build 17763
C:\Users\TCB13>python --version
Python 2.7.15
C:\Users\TCB13>py --version
Python 3.6.5
Is there anything broken with skia? Is this a known issue or am I failing at some point.
Looks like I'm not properly disabling the safe browser, how am I supposed to do that?
4. Disable safe-browsing patches by:
- Search in the folder
C:\ungoogled-chromium-71.0.3578.98-2\patchesforsafeand delete all files related to safe search
you dont have to delete any files. Only edit the patch.list and gn_flags.map files
- Run:
mkdir build\src py get_package.py windows build\src\ungoogled_packaging cd build\src
- Search once again for
safeinsidebuild\srcand also remove any files there- Finally build by running
py ungoogled_packaging\build.py
Step 9. is not neccessary, because step 8. copies your changes in step 7. into build\src\ungoogled_packaging.
Here the steps for the build process of ungoogled-chromium 71.0.3578.98-2:
checkout tagged version 71.0.3578.98-2 of ungoogled-chromium
delete build/src folder completely (after prior build process)
edit like described for deleting all "safe-browsing" references:
config_bundleswindows\patch_order.list
config_bundles\common\patch_order.list
config_bundles\common\gn_flags.map
Run
mkdir build\src
py get_package.py windows build\src\ungoogled_packaging
cd build\src
py ungoogled_packaging\build.py
py ungoogled_packaging\package.py
thats all
@TN0X should I worry about this error?
[546/20133] ACTION //chrome/test/chromedriver:embed_version_in_cpp(//build/toolchain/win:win_clang_x64)
ERROR:root:Git error: rc=0, output='
@TN0X should I worry about this error?
`
[546/20133] ACTION //chrome/test/chromedriver:embed_version_in_cpp(//build/toolchain/win:win_clang_x64) ERROR:root:Git error: rc=0, output='
No, I got the same error message at this point.
@TN0X I finally managed to get a working build!! Only possible with your precious help!
I did a few things differently this time:
git clone https://github.com/Eloston/ungoogled-chromium.git
git checkout tags/71.0.3578.98-2
C:\ungoogled-chromium\71.0.3578.98-2 and this time, it was just C:\ungoogled-chromium. Thank you very much for all your help!
safe-browsing patches needs to be updated for windows, i will see what i can do ;)
i guess this would be solved here https://github.com/Eloston/ungoogled-chromium/issues/619 later on @Eloston can you close this
Closing per @intika's request.