Closed ghost closed 5 years ago
~~Maybe related to the safe browsing mess? https://github.com/Eloston/ungoogled-chromium/issues/639 I was stuck on this for a long time, manage to get around it on macOS but under windows looks like its harder...~~
@hardhub how come you had this issue 6 days ago? I was trying to compile 71.0.3578.98-2 at that time and hitting a wall on the safe browsing patches (that are applied way after BUILD.gn
) and I did not have this error.
@Eloston ?
@TCB13
I simply made all as specified in instructions.
Maybe you used different version of chromium source.
To be honest I do not know exactly.
@hardhub can you cofirm that your build process was like this?
pip 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 Windows
c:\ungoogled-chromium-71.0.3578.98-2
DEPOT_TOOLS_WIN_TOOLCHAIN
with value 0
mkdir build\src
py get_package.py windows build\src\ungoogled_packaging
cd build\src
py ungoogled_packaging\build.py
@TCB13
Not exactly so...
7z was already installed. Just checked version - 16.04 (but nor sure it is so important).
* python-3.6.5-amd64.exe (don't add to path; enable py launcher)
both are in PATH but 27 before 37 (not 3.6.5) and py launcher is also in PATH
Yes, I did
I have Visual Studio 2017 Enterprise latest update (I am working on some .Net projects). So I just installed all C++ features including MFC library. I have list of all installed packages, but it is 36 KB (I cannot simply paste it here).
I have installed lastest Windows 10 SDK 1809: 17763.132.181022-1834.rs5_release_svc_prod1_WindowsSDK
Debugging Tools was also installed with this SDK.
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
I think get_package.py does that.
Yes
C:\>set | findstr DEPOT
DEPOT_TOOLS_WIN_TOOLCHAIN=0
Yes as described above.
@hardhub my 5th step is to just get the code from this repo, so I can have get_package.py
... I guess we're doing it in the exact same way. Thanks for the clarification.
Description
Error during patching:
patching file chrome/BUILD.gn Hunk #2 FAILED at 83.
The problem arises due to problems in some patches for windows since chromium 72.0.72.0.3626.xx. So there is not only the known issue with all safe-browsing patches since 71.0.3578.98-x, which could be solved by disabling these patches and setting the approriate build-flag. Since ungoogled-chromium 72.0.3626.96-1 there are new issues with other patches for windows. These patches in ungoogled-chromium does not fit to the source code of chromium 72.0.xxx:
windows-disable-reorder-fix-linking.patch: patching file chrome/BUILD.gn Hunk #2 FAILED at 83.
windows-disable-rcpy.patch: patching file build/toolchain/win/tool_wrapper.py Hunk #1 FAILED at 195. Hunk #2 FAILED at 227.
last working build with disabled safe-browsing patches is 71.0.3578.98-3
@TN0X thank you for the answer, can you tell us the exact steps to disable safe browsing in 71.0.3578.98-x
and to add the build-flag? I tried to do this and failed (not very well versed in chromium).
@TN0X thank you for the answer, can you tell us the exact steps to disable safe browsing in
71.0.3578.98-x
and to add the build-flag? I tried to do this and failed (not very well versed in chromium).
see: https://github.com/TN0X/ungoogled-chromium/compare/master...TN0X:test1
you have to change these files: config_bundles/windows/patch_order.list config_bundles/common/patch_order.list config_bundles/common/gn_flags.map
I'm having the same issue. It seems that disabling safe browsing doesn't fix all problems, windows-disable-rcpy and windows-disable-reorder-fix-linking patches are still broken with the last chromium version on windows
@TN0X I tried to compile both 70.0.3538.110-3
and 71.0.3578.98-2
with your changes and it seems to work but it later fails on other issues.
Wasn't 71.0.3578.98-3
supposed to build?
I'm not sure those errors aren't somehow related to Windows Updates. Two weeks ago I was trying to disable safe browsing, I also removed any references to the patches but I forgot the flag at gn_flags.map
. At that time I wasn't getting this kinds of errors, it was failing later on as you can see here: https://github.com/Eloston/ungoogled-chromium/issues/639#issuecomment-461983120
Duplicate of https://github.com/Eloston/ungoogled-chromium/issues/675 ?
Duplicate of #675 ?
Yes... the changes proposed by @TN0X fix this issues.
@Eloston can you close this, it will be solved here https://github.com/Eloston/ungoogled-chromium/issues/619
@intika #619 doesn't provide solutions, this issue and https://github.com/Eloston/ungoogled-chromium/issues/639 do.
Re enabling safe-browsing is a workaround, the patches needs to be updated to get a real fix
That feature was removed so...
@TCB13 can you please develop i am not aware of that
@hardhub hardhub can you try again with latest version?
@hardhub hardhub can you try again with latest version?
@lipici what do you mean by "latest version", a specific tag or master? Either way, is it even possible to build above 71.0.3578.98-2 under Windows? Seems like there is a lot of broken stuff...
@hardhub can you try again with latest version? I have tried with the latest version, the same error occurred. Windows 10 x64, VS 2017
Sorry if 71 is still the latest one. I believed chromium has the same version like chrome, in this case, 72. On Saturday, March 9, 2019, 12:07:18 PM GMT+2, TCB13 notifications@github.com wrote:
@hardhub hardhub can you try again with latest version?
@lipici what do you mean by "latest version", a specific tag or master? Either way, is it even possible to build above 71.0.3578.98-2 under Windows? Seems like there is a lot of broken stuff...
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Thanks bro. Sad day for fans. On Saturday, March 9, 2019, 1:37:07 PM GMT+2, warmaster345 notifications@github.com wrote:
@hardhub hardhub can you try again with latest version? I have tried with the latest version, the same error occurred. Windows 10 x64, VS 2017
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
@hardhub hardhub can you try again with latest version?
master:
subprocess.CalledProcessError: Command '['C:\\ungoogled-chromium\\build\\src\\third_party\\git\\usr\\bin\\patch.exe', '-p1', '--ignore-whitespace', '-i', 'C:\\ungoogled-chromium\\build\\src\\ungoogled_packaging\\patches\
\ungoogled-chromium\\windows\\windows-disable-reorder-fix-linking.patch', '-d', 'C:\\ungoogled-chromium\\build\\src', '--no-backup-if-mismatch', '--forward']' returned non-zero exit status 1.
72.0.3626.122-1
(Stripping trailing CRs from patch; use --binary to disable.)
patching file chrome/BUILD.gn
Hunk #2 FAILED at 83.
Hunk #3 succeeded at 309 (offset -3 lines).
Ahhh, no luck yet. Thanks, bro. On Sunday, March 10, 2019, 2:56:42 AM GMT+2, Maxim notifications@github.com wrote:
@hardhub hardhub can you try again with latest version?
master: subprocess.CalledProcessError: Command '['C:\ungoogled-chromium\build\src\third_party\git\usr\bin\patch.exe', '-p1', '--ignore-whitespace', '-i', 'C:\ungoogled-chromium\build\src\ungoogled_packaging\patches\ \ungoogled-chromium\windows\windows-disable-reorder-fix-linking.patch', '-d', 'C:\ungoogled-chromium\build\src', '--no-backup-if-mismatch', '--forward']' returned non-zero exit status 1.
72.0.3626.122-1 (Stripping trailing CRs from patch; use --binary to disable.) patching file chrome/BUILD.gn Hunk #2 FAILED at 83. Hunk #3 succeeded at 309 (offset -3 lines).
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Tried on master:
(Stripping trailing CRs from patch; use --binary to disable.)
patching file chrome/BUILD.gn
Hunk #2 FAILED at 83.
Hunk #3 succeeded at 309 (offset -3 lines).
1 out of 3 hunks FAILED -- saving rejects to file chrome/BUILD.gn.rej
(Stripping trailing CRs from patch; use --binary to disable.)
patching file tools/perf/chrome_telemetry_build/BUILD.gn
Hunk #1 succeeded at 36 (offset 4 lines).
(Stripping trailing CRs from patch; use --binary to disable.)
patching file chrome/test/chromedriver/BUILD.gn
Hunk #1 succeeded at 364 (offset 7 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)
Tried 72.0.3626.122-1:
2019-03-14 22:54:14,811 - INFO: * Applying windows-disable-reorder-fix-linking.patch (115/124)
2019-03-14 22:54:14,811 - DEBUG: C:\ungoogled-chromium\build\src\third_party\git\usr\bin\patch.exe -p1 --ignore-whitespace -i C:\ungoogled-chromium\build\src\ungoogled_packaging\patches\ungoogled-chromium\windows\windows-disable-reorder-fix-linking.patch -d C:\ungoogled-chromium\build\src --no-backup-if-mismatch --forward
(Stripping trailing CRs from patch; use --binary to disable.)
patching file chrome/BUILD.gn
Hunk #2 FAILED at 83.
Hunk #3 succeeded at 309 (offset -3 lines).
1 out of 3 hunks FAILED -- saving rejects to file chrome/BUILD.gn.rej
(Stripping trailing CRs from patch; use --binary to disable.)
patching file tools/perf/chrome_telemetry_build/BUILD.gn
Hunk #1 succeeded at 36 (offset 4 lines).
(Stripping trailing CRs from patch; use --binary to disable.)
patching file chrome/test/chromedriver/BUILD.gn
Hunk #1 succeeded at 364 (offset 7 lines).
So, I just tried to compile master after the patches by @r4sas and I got this:
C:\ungoogled-chromium\build\src>"third_party\ninja\ninja.exe" "-C" "out\Default" "chrome" "chromedriver"
ninja: Entering directory `out\Default'
[479/20080] ACTION //chrome/test/chromedriver:embed_version_in_cpp(//build/toolchain/win:win_clang_x64)
ERROR:root:Git error: rc=0, output=''
[11021/20080] RC obj/chrome/elevation_service/elevation_service/elevation_service.res
FAILED: obj/chrome/elevation_service/elevation_service/elevation_service.res
C:/Python27/python.exe ../../build/toolchain/win/tool_wrapper.py rc-wrapper environment.x64 rc.exe /nologo -DV8_DEPRECATION_WARNINGS -DUSE_AURA=1 -DNO_TCMALLOC -DOFFICIAL_BUILD -DCHROMIUM_BUILD "-DCR_CLANG_REVISION=\"346388-5\"" -D_HAS_NODISCARD -D_HAS_EXCEPTIONS=0 -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=1 -DWIN32 -D_SECURE_ATL -D_USING_V110_SDK71_ -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DNTDDI_VERSION=NTDDI_WIN7 -D_WIN32_WINNT=_WIN32_WINNT_WIN7 -DWINVER=_WIN32_WINNT_WIN7 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -I../.. -Igen -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/protobuf/src /foobj/chrome/elevation_service/elevation_service/elevation_service.res ../../chrome/elevation_service/elevation_service.rc
../../chrome/elevation_service/elevation_service.rc(38) : error RC2135 : file not found: chrome/elevation_service/elevation_service_idl.tlb
[11034/20080] ACTION //chrome/app:generated_resources_grit(//build/toolchain/win:win_clang_x64)
ninja: build stopped: subcommand failed.
Thank you for the continuous effort.
I also stopped here, thats why I said about need for additional patching.
Looks like something wrong with gn
output...
rule __chrome_elevation_service_elevation_service_idl_idl_action___build_toolchain_win_win_clang_x64__rule
command = D$:/devel/Python27/python.exe ../../build/toolchain/win/midl.py environment.x64 gen/chrome/elevation_service none ${source_name_part}.tlb ${source_name_part}.h ${source_name_part}.dlldata.c ${source_name_part}_i.c ${source_name_part}_p.c ${in} /char signed /env x64 /Oicf
description = ACTION //chrome/elevation_service:elevation_service_idl_idl_action(//build/toolchain/win:win_clang_x64)
restat = 1
pool = build_toolchain_action_pool
I'm about ${source_name_part}
, ${in}
in command line.
add:
If someone understand GN's scripts, please help with build\toolchain\win\midl.gni
and build\win\message_compiler.gni
.
add2:
In gni
scripts all correct.
Problem in build/toolchain/win/midl.py
which store all processed files in temp directory.
Will add in this post patch later.
--- a/build/toolchain/win/midl.py
+++ b/build/toolchain/win/midl.py
@@ -171,12 +171,6 @@
if sys.platform != 'win32':
return 0
- # On Windows, run midl.exe on the input and check that its outputs are
- # identical to the checked-in outputs (after possibly replacing their main
- # class guid).
- tmp_dir = tempfile.mkdtemp()
- delete_tmp_dir = True
-
# Read the environment block from the file. This is stored in the format used
# by CreateProcess. Drop last 2 NULs, one for list terminator, one for
# trailing vs. separator.
@@ -184,13 +178,14 @@
env_dict = dict([item.split('=', 1) for item in env_pairs])
args = ['midl', '/nologo'] + list(flags) + [
- '/out', tmp_dir,
+ '/out', outdir,
'/tlb', tlb,
'/h', h,
'/dlldata', dlldata,
'/iid', iid,
'/proxy', proxy,
idl]
+
try:
popen = subprocess.Popen(args, shell=True, env=env_dict,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
@@ -209,29 +204,11 @@
if popen.returncode != 0:
return popen.returncode
- for f in os.listdir(tmp_dir):
- ZapTimestamp(os.path.join(tmp_dir, f))
-
- # Now compare the output in tmp_dir to the copied-over outputs.
- diff = filecmp.dircmp(tmp_dir, outdir)
- if diff.diff_files:
- print 'midl.exe output different from files in %s, see %s' \
- % (outdir, tmp_dir)
- for f in diff.diff_files:
- if f.endswith('.tlb'): continue
- fromfile = os.path.join(outdir, f)
- tofile = os.path.join(tmp_dir, f)
- print ''.join(difflib.unified_diff(open(fromfile, 'U').readlines(),
- open(tofile, 'U').readlines(),
- fromfile, tofile))
- delete_tmp_dir = False
- print 'To rebaseline:'
- print ' copy /y %s\* %s' % (tmp_dir, source)
- sys.exit(1)
+ for f in os.listdir(outdir):
+ ZapTimestamp(os.path.join(outdir, f))
return 0
finally:
- if os.path.exists(tmp_dir) and delete_tmp_dir:
- shutil.rmtree(tmp_dir)
+ return 0
if __name__ == '__main__':
Thanks to @r4sas patches the goal is close, but I'm still getting errors.
[15871/20080] CXX obj/chrome/common/media_router/mojo/media_router/media_router_jumbo_1.obj
ninja: build stopped: subcommand failed.
Thanks to @r4sas patches the goal is close, but I'm still getting errors.
Can you provide full error info?
One question about patch that must fix building with safe browsing disabled: is it really needed? I'm asking this because in no one folder for other distributions I see identical patch. So maybe it must be rewritten from scratch?
That patch came in handy for the "tlb" issue, since now I don't need to open a Native Tools cmd for that, but this happens:
FAILED: obj/chrome/common/safe_browsing/file_type_policies/file_type_policies.obj
../../chrome/common/safe_browsing/file_type_policies.cc(53,29): error: use of undeclared identifier 'IDR_DOWNLOAD_FILE_TYPES_PB'
bundle.GetRawDataResource(IDR_DOWNLOAD_FILE_TYPES_PB).CopyToString(binary_pb);
^
1 error generated.
That patch came in handy for the "tlb" issue, since now I don't need to open a Native Tools cmd for that, but this happens:
chrome\browser\browser_resources.grd
@@ -148,9 +148,7 @@
<include name="IDR_DOMAIN_RELIABILITY_INTERNALS_HTML" file="resources\domain_reliability_internals.html" compress="gzip" type="BINDATA" />
<include name="IDR_DOMAIN_RELIABILITY_INTERNALS_CSS" file="resources\domain_reliability_internals.css" compress="gzip" type="BINDATA" />
<include name="IDR_DOMAIN_RELIABILITY_INTERNALS_JS" file="resources\domain_reliability_internals.js" compress="gzip" type="BINDATA" />
- <if expr="safe_browsing_mode != 0">
- <include name="IDR_DOWNLOAD_FILE_TYPES_PB" file="${root_gen_dir}\chrome\browser\resources\safe_browsing\download_file_types.pb" use_base_dir="false" type="BINDATA" />
- </if>
+ <include name="IDR_DOWNLOAD_FILE_TYPES_PB" file="${root_gen_dir}\chrome\browser\resources\safe_browsing\download_file_types.pb" use_base_dir="false" type="BINDATA" />
<include name="IDR_DOWNLOAD_INTERNALS_HTML" file="resources\download_internals\download_internals.html" flattenhtml="true" allowexternalscript="true" type="BINDATA" compress="gzip" />
<include name="IDR_DOWNLOAD_INTERNALS_CSS" file="resources\download_internals\download_internals.css" type="BINDATA" compress="gzip" />
<include name="IDR_DOWNLOAD_INTERNALS_JS" file="resources\download_internals\download_internals.js" type="BINDATA" compress="gzip" />
EDIT: Just to avoid both this error and the one above @r4sas's proposed patch, I commented out the problematic line and kept on building. It's a bad idea, but it's a temporary fix for the time being.
I have applied that, only to get this error (and yes, I did look for ways to fix that):
FAILED: gen/chrome/resources_stamp.d.stamp gen/chrome/grit/browser_resources.h gen/chrome/browser_resources.pak gen/chrome/browser_resources.pak.info
C:/Python27/python.exe ../../tools/grit/grit.py -i ../../chrome/browser/browser_resources.grd build -o gen/chrome --depdir . --depfile gen/chrome/resources_stamp.d --write-only-new=1 --depend-on-stamp -D _chromium -E CHROMIUM_BUILD=chromium -D toolkit_views -D use_aura -D enable_app_list=false -D enable_arcore=false -D enable_background_mode=true -D enable_background_contents=true -D enable_extensions=true -D enable_hangout_services_extension=false -D enable_plugins=true -D enable_print_preview=true -D enable_printing=true -D enable_service_discovery=false -D enable_vr=true -D safe_browsing_mode=0 -D optimize_webui=false -E additional_modules_list_file=gen/chrome/browser/internal/additional_modules_list.txt -E root_gen_dir=gen -f ../../tools/gritsettings/resource_ids -p ../../tools/gritsettings/startup_resources_win.txt --assert-file-list=obj/chrome/browser/resources_expected_outputs.txt
Error processing node <?xml version="1.0" encoding="UTF-8"?>
<include file="${root_gen_dir}\chrome\browser\resources\safe_browsing\download_file_types.pb" name="IDR_DOWNLOAD_FILE_TYPES_PB" type="BINDATA" use_base_dir="false" />
Traceback (most recent call last):
File "../../tools/grit/grit.py", line 15, in <module>
sys.exit(grit.grit_runner.Main(sys.argv[1:]))
File "D:\Git-Projects\ungoogled-chromium\build\src\tools\grit\grit\grit_runner.py", line 256, in Main
return toolobject.Run(options, args[1:])
File "D:\Git-Projects\ungoogled-chromium\build\src\tools\grit\grit\tool\build.py", line 260, in Run
self.Process()
File "D:\Git-Projects\ungoogled-chromium\build\src\tools\grit\grit\tool\build.py", line 401, in Process
self.ProcessNode(self.res, output, outfile)
File "D:\Git-Projects\ungoogled-chromium\build\src\tools\grit\grit\tool\build.py", line 324, in ProcessNode
formatted = formatter(node, output_node.GetLanguage(), output_dir=base_dir)
File "D:\Git-Projects\ungoogled-chromium\build\src\tools\grit\grit\format\data_pack.py", line 83, in Format
value = node.GetDataPackValue(lang, UTF8)
File "D:\Git-Projects\ungoogled-chromium\build\src\tools\grit\grit\node\include.py", line 87, in GetDataPackValue
data = util.ReadFile(filename, util.BINARY)
File "D:\Git-Projects\ungoogled-chromium\build\src\tools\grit\grit\util.py", line 206, in ReadFile
with open(filename, mode) as f:
IOError: [Errno 2] No such file or directory: u'..\\..\\out\\Default\\gen\\chrome\\browser\\resources\\safe_browsing\\download_file_types.pb'
[9/4281] CXX obj/components/download/database/database/download_db_conversions.obj
ninja: build stopped: subcommand failed.
Here's another build error, just after the 90% mark:
FAILED: chrome.dll chrome.dll.lib
ninja -t msvc -e environment.x64 -- ../../third_party/llvm-build/Release+Asserts/bin/lld-link.exe /nologo /IMPLIB:./chrome.dll.lib /DLL /OUT:./chrome.dll /PDB:./chrome.dll.pdb @./chrome.dll.rsp
lld-link.exe: error: undefined symbol: ?GetMainText@SettingsResetPromptController@safe_browsing@@QEBA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@XZ
>>> referenced by ui.lib(ui_jumbo_9.obj):(??0SettingsResetPromptDialog@@QEAA@PEAVSettingsResetPromptController@safe_browsing@@@Z)
lld-link.exe: error: undefined symbol: ?GetMainTextUrlRange@SettingsResetPromptController@safe_browsing@@QEBA?AVRange@gfx@@XZ
>>> referenced by ui.lib(ui_jumbo_9.obj):(??0SettingsResetPromptDialog@@QEAA@PEAVSettingsResetPromptController@safe_browsing@@@Z)
lld-link.exe: error: undefined symbol: ?DialogShown@SettingsResetPromptController@safe_browsing@@QEAAXXZ
>>> referenced by ui.lib(ui_jumbo_9.obj):(?Show@SettingsResetPromptDialog@@QEAAXPEAVBrowser@@@Z)
lld-link.exe: error: undefined symbol: ?Close@SettingsResetPromptController@safe_browsing@@QEAAXXZ
>>> referenced by ui.lib(ui_jumbo_9.obj):(??1SettingsResetPromptDialog@@UEAA@XZ)
>>> referenced by ui.lib(ui_jumbo_9.obj):(?Close@SettingsResetPromptDialog@@UEAA_NXZ)
lld-link.exe: error: undefined symbol: ?GetWindowTitle@SettingsResetPromptController@safe_browsing@@QEBA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@XZ
>>> referenced by ui.lib(ui_jumbo_9.obj):(?GetWindowTitle@SettingsResetPromptDialog@@UEBA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@XZ)
lld-link.exe: error: undefined symbol: ?GetButtonLabel@SettingsResetPromptController@safe_browsing@@QEBA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@XZ
>>> referenced by ui.lib(ui_jumbo_9.obj):(?GetDialogButtonLabel@SettingsResetPromptDialog@@UEBA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@W4DialogButton@ui@@@Z)
lld-link.exe: error: undefined symbol: ?Accept@SettingsResetPromptController@safe_browsing@@QEAAXXZ
>>> referenced by ui.lib(ui_jumbo_9.obj):(?Accept@SettingsResetPromptDialog@@UEAA_NXZ)
lld-link.exe: error: undefined symbol: ?Cancel@SettingsResetPromptController@safe_browsing@@QEAAXXZ
>>> referenced by ui.lib(ui_jumbo_9.obj):(?Cancel@SettingsResetPromptDialog@@UEAA_NXZ)
lld-link.exe: error: undefined symbol: ?GetInstance@ChromeCleanerController@safe_browsing@@SAPEAV12@XZ
>>> referenced by ui.lib(ui_jumbo_9.obj):(??0ChromeCleanupHandler@settings@@QEAA@PEAVProfile@@@Z)
lld-link.exe: error: undefined symbol: ?FetchExtensionNames@ChromeCleanerScannerResults@safe_browsing@@QEBAXPEAVProfile@@PEAV?$set@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@U?$less@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@V?$allocator@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@2@@std@@@Z
>>> referenced by ui.lib(ui_jumbo_9.obj):(?GetScannerResultsAsDictionary@?A@settings@@YA?AVDictionaryValue@base@@AEBVChromeCleanerScannerResults@safe_browsing@@PEAVProfile@@@Z)
lld-link.exe: error: undefined symbol: ?OnUserAction@ChromePasswordProtectionService@safe_browsing@@QEAAXPEAVWebContents@content@@W4LoginReputationClientRequest_PasswordReuseEvent_ReusedPasswordType@2@W4WarningUIType@2@W4WarningAction@2@@Z
>>> referenced by ui.lib(ui_jumbo_7.obj):(?HandleChangePassword@ChangePasswordHandler@settings@@AEAAXPEBVListValue@base@@@Z)
lld-link.exe: error: undefined symbol: ?ShouldShowChangePasswordSettingUI@ChromePasswordProtectionService@safe_browsing@@SA_NPEAVProfile@@@Z
>>> referenced by ui.lib(ui_jumbo_7.obj):(?UpdateChangePasswordCardVisibility@ChangePasswordHandler@settings@@AEAAXXZ)
[3387/4273] CXX obj/v8/src/inspector/inspector/inspector_jumbo_1.obj
ninja: build stopped: subcommand failed.
Having the same issue as @tangalbert919.
I tried latest master version (new build instructions) and result is still error:
INFO: Applying patches from patches
Traceback (most recent call last):
File "C:\ungoogled-chromium\utils\patches.py", line 162, in <module>
main()
File "C:\ungoogled-chromium\utils\patches.py", line 158, in main
args.callback(args)
File "C:\ungoogled-chromium\utils\patches.py", line 116, in _apply_callback
patch_bin_path=args.patch_bin)
File "C:\ungoogled-chromium\utils\patches.py", line 35, in apply_patches
raise ValueError('Could not find the patch binary')
It expects patch.exe available on disk but it is missing.
Closing. Please continue discussion in the referenced issue.
Description
Error during patching:
Environment details
Building and packaging steps
py ungoogled_packaging\build.py