ungoogled-chromium: BUILD.gn error during compilation on Windows
Description
Error during patching:
patching file chrome/BUILD.gn
Hunk #2 FAILED at 83.
Environment details
- ungoogled-chromium version: all tried versions starting 69.*
- Configuration bundle: windows
- Packaging type (if applicable): windows
- OS and version for building: Windows 7 x64
- Compiler toolchain: VS 2017
Building and packaging steps
py ungoogled_packaging\build.py
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 39 (25 by maintainers)
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:
Here’s another build error, just after the 90% mark:
chrome\browser\browser_resources.grd
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?
Can you provide full error info?
Thanks to @r4sas patches the goal is close, but I’m still getting errors.
Looks like something wrong with
gnoutput…I’m about
${source_name_part},${in}in command line.add: If someone understand GN’s scripts, please help with
build\toolchain\win\midl.gniandbuild\win\message_compiler.gni.add2: In
gniscripts all correct. Problem inbuild/toolchain/win/midl.pywhich store all processed files in temp directory. Will add in this post patch later.patch for testing
I also stopped here, thats why I said about need for additional patching.
Tried 72.0.3626.122-1:
Tried on master:
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.
master:
72.0.3626.122-1
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.
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.
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
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
@TCB13
Not exactly so…
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.
I think get_package.py does that.
@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.