ungoogled-software / ungoogled-chromium-windows

Windows packaging for ungoogled-chromium
BSD 3-Clause "New" or "Revised" License
1k stars 100 forks source link

Building From Src on windows. After adding source files to build.gn Build fails #359

Open Arthur-Senior opened 3 weeks ago

Arthur-Senior commented 3 weeks ago

I added to source files to BUILD.gn and started the process to compile. Before this i recreated the obvject files with gn gen ..... The Build process stacked with the following output:

-C925-4FA4-AFE9-5FA69902B021,PLACEHOLDER-GUID-5F41DC50-029C-4F5A-9860-EF352A0B66D2=E1C53EEF-2BAB-4420-BDD7-256B91C49D0C updater_legacy_idl.tlb updater_legacy_idl.h updater_legacy_idl.dlldata.c updater_legacy_idl_i.c updater_legacy_idl_p.c ../../third_party/llvm-build/Release+Asserts/bin/clang-cl.exe gen/chrome/updater/app/server/win/updater_legacy_idl.template /char signed /env x64 /Oicf FAILED: gen/chrome/updater/app/server/win/updater_legacy_idl.h gen/chrome/updater/app/server/win/updater_legacy_idl_i.c gen/chrome/updater/app/server/win/updater_legacy_idl.tlb gen/chrome/updater/app/server/win/updater_legacy_idl.dlldata.c gen/chrome/updater/app/server/win/updater_legacy_idl_p.c C:/Python310/python3.exe ../../build/toolchain/win/midl.py environment.x64 ../../third_party/win_build_output/midl/chrome/updater/app/server/win gen/chrome/updater/app/server/win ignore_proxy_stub,PLACEHOLDER-GUID-7A1FDE1F-AAA9-441B-B9AA-95B31D78592B=4C61BB05-94D1-4BAB-B69C-C34195AF92CA,PLACEHOLDER-GUID-A0FEB7CB-E0D8-4035-A4C9-5620A8C725AD=75828ED1-7BE8-45D0-8950-AA85CBF74510,PLACEHOLDER-GUID-FAC5C548-84EC-474C-A4B3-CD414E09B14C=283209B7-C761-41CA-BE8D-B5321CD78FD6,PLACEHOLDER-GUID-687DCE9A-57BE-4026-BEC4-C0A9ACBBCAF2=B52C8B56-9541-4B78-9B2F-665366B78A9C,PLACEHOLDER-GUID-E432DCFE-6A32-4C07-B038-9D74AC80D6AB=4DAC24AB-B340-4B7E-AD01-1504A7F59EEA,PLACEHOLDER-GUID-F675D224-BD54-40E9-AECB-AA3B64EB9863=83FE19AC-72A6-4A72-B136-724444121586,PLACEHOLDER-GUID-CEC2877D-4856-460E-BE73-11DD7CC7C821=811A664F-703E-407C-A323-E6E31D1EFFA0,PLACEHOLDER-GUID-AA10D17D-7A09-48AC-B1E4-F124937E3D26=3057E1F8-2498-4C19-99B5-F7F207DA4DC7,PLACEHOLDER-GUID-AC817E10-993C-470F-8DCA-25F53D70EA8D=F4874A57-8C88-4B1D-AAB8-4B06CF98FB29,PLACEHOLDER-GUID-9367601E-C100-4702-8755-808D6BB385D8=4AF986BF-DD14-45C2-8228-2541622699CD,PLACEHOLDER-GUID-A643508B-B1E3-4457-9769-32C953BD1D57=BE5D3E90-A66C-4A0A-9B7B-1A6B9BF3971E,PLACEHOLDER-GUID-31479718-D170-467B-9274-27FC3E88CB76=AE097E2A-7F4B-4248-8698-D6E515E9C638,PLACEHOLDER-GUID-71CBC6BB-CA4B-4B5A-83C0-FC95F9CA6A30=E0425C1F-4263-4BA5-9328-423470344FC0,PLACEHOLDER-GUID-A35E1C5E-0A18-4FF1-8C4D-DD8ED07B0BD0=027234BD-61BB-4F5C-9386-7FE804171C8C,PLACEHOLDER-GUID-EE8EE731-C592-4A4F-9774-BB04337B8F46=E2C00808-83C7-4CE4-8075-7E185A90AE04,PLACEHOLDER-GUID-AE5F8C9D-B94D-4367-A422-D1DC4E913A52=B7DA4837-09FF-4355-BFE1-30598E40F41A,PLACEHOLDER-GUID-0569DBB9-BAA0-48D5-8543-0F3BE30A1648=D734C877-21F4-496E-B857-3E5B2E72E4CC,PLACEHOLDER-GUID-CE7A37FD-A255-460C-BAF1-708765EB76EC=EA08425E-054B-4564-B0A0-8BAAB76F38E9,PLACEHOLDER-GUID-BFFD766D-A2DD-436E-89FA-BF05BC5B5958=D45CFCE3-5297-4D0B-925E-1924A32A7452,PLACEHOLDER-GUID-63D941DE-F67B-4E15-8A90-27881DA9EF4A=2C6218B9-088D-4D25-A4F8-570558124142,PLACEHOLDER-GUID-47B9D508-CB72-4F8B-AF00-7D0143603B25=2C320333-21CF-4FC8-BF8F-4287DB3795B7,PLACEHOLDER-GUID-540B227A-F442-45D5-BA52-298A05BAF1A8=8CA0CD21-6864-4BD8-BF0F-2D69AF3A0FE8,PLACEHOLDER-GUID-10A2D03F-8BC7-49DB-A21E-A7D4429D2759=87DBF75E-F590-4802-93FD-F8D07800E2E9,PLACEHOLDER-GUID-5515E66F-FA6F-4D74-B5EA-4FCFDA16FE12=F8D4B43D-7D22-47FE-B6AD-BAC5ED8A1659,PLACEHOLDER-GUID-C6E2C5D5-86FA-4A64-9D08-8C9B644F0E49=DF735BF0-0265-4D65-BABA-E244D428EFC5,PLACEHOLDER-GUID-6A54FE75-EDC8-404E-A41B-4278C0557151=7D908375-C9D0-44C5-BB98-206F3C24A74C,PLACEHOLDER-GUID-EF739C0C-40B0-478D-B76B-3659B8F2B0EB=19309C09-C93C-45DA-8C02-9A8B8198A5E0,PLACEHOLDER-GUID-F3964464-A939-44D3-9244-36BD2E3630B8=F8197F77-DE9C-4BB0-9F63-459A001154C6,PLACEHOLDER-GUID-06A6AA1E-2680-4076-A7CD-6053722CF454=9D31EA63-2E06-4D41-98C7-CB1F307DB597,PLACEHOLDER-GUID-AD91C851-86AC-499F-9BA9-9A561744AA4D=1163C9E6-6391-46E2-96AB-2BCB8907D669,PLACEHOLDER-GUID-F4A0362A-3702-48B8-9896-7D8013D03AB2=78A85A33-F541-4A52-A1F2-0BCBA1F1A4F0,PLACEHOLDER-GUID-029BD175-5035-4E2A-8724-C9D47F4FAEA3=5C674FC1-80E3-48D2-987B-79D9D286065B,PLACEHOLDER-GUID-BC39E1E1-E8FA-4E72-903F-3BF346E7E165=847BB70C-47D0-46C2-8C97-9000A1F9AD99,PLACEHOLDER-GUID-7B26CC23-B2B8-441B-AA9C-8B551ABB611B=6F7996CA-5531-4299-BD7F-3C7090520090,PLACEHOLDER-GUID-2A7D2AE7-8EEE-45B4-B17F-31DAAC82CCBB=47C8886A-A4B5-4F6C-865A-41A207074DFA,PLACEHOLDER-GUID-7E0A6B39-7CEB-4944-ABFA-F419D201D6A0=13D172EB-2BFB-4D72-AF10-7D33337B7FC6,PLACEHOLDER-GUID-CC2CCD05-119C-44E1-852D-6DCC2DFB72EC=CFF9AE0F-C5C5-4D53-8394-7602758A52BA,PLACEHOLDER-GUID-4779D540-F6A3-455F-A929-7ADFE85B6F09=EED70106-3604-4385-866E-6D540E99CA1A,PLACEHOLDER-GUID-FFBAEC45-C5EC-4287-85CD-A831796BE952=437174A3-B9A5-4835-B896-7DE8C1FE2638,PLACEHOLDER-GUID-74F243B8-75D1-4E2D-BC89-5689798EEF3E=BAEE6326-C925-4FA4-AFE9-5FA69902B021,PLACEHOLDER-GUID-5F41DC50-029C-4F5A-9860-EF352A0B66D2=E1C53EEF-2BAB-4420-BDD7-256B91C49D0C updater_legacy_idl.tlb updater_legacy_idl.h updater_legacy_idl.dlldata.c updater_legacy_idl_i.c updater_legacy_idl_p.c ../../third_party/llvm-build/Release+Asserts/bin/clang-cl.exe gen/chrome/updater/app/server/win/updater_legacy_idl.template /char signed /env x64 /Oicf Traceback (most recent call last): File "C:\Projects\ungoogled\ungoogled-chromium-windows\build\src\build\toolchain\win\midl.py", line 459, in sys.exit(main(sys.argv[1:])) File "C:\Projects\ungoogled\ungoogled-chromium-windows\build\src\build\toolchain\win\midl.py", line 399, in main overwrite_guids((os.path.join(outdir, file) if file else None File "C:\Projects\ungoogled\ungoogled-chromium-windows\build\src\build\toolchain\win\midl.py", line 237, in overwrite_guids overwrite_guids_tlb(tlb_file, dynamic_guids) File "C:\Projects\ungoogled\ungoogled-chromium-windows\build\src\build\toolchain\win\midl.py", line 199, in overwrite_guids_tlb contents, ntypes, type_off, guid_off, guid_len = get_tlb_contents(tlb_file) File "C:\Projects\ungoogled\ungoogled-chromium-windows\build\src\build\toolchain\win\midl.py", line 104, in get_tlb_contents assert contents[0:8] == b'MSFT\x02\x00\x01\x00' AssertionError [105/31697] ....\third_party\llvm-build\Release+Asserts\bin\clang-cl.exe /c ../../chrome/installer/mini_installer/mini_installer.cc /Foobj/chrome/installer/mini_installer/lib/mini_installer.obj /nologo /showIncludes "-imsvc../../../../../../../Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/include" "-imsvc../../../../../../../Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/ATLMFC/include" "-imsvc../../../../../../../Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/VS/include" "-imsvc../../../../../../../Program Files (x86)/Windows Kits/10/include/10.0.22621.0/ucrt" "-imsvc../../../../../../../Program Files (x86)/Windows Kits/10/include/10.0.22621.0/um" "-imsvc../../../../../../../Program Files (x86)/Windows Kits/10/include/10.0.22621.0/shared" "-imsvc../../../../../../../Program Files (x86)/Windows Kits/10/include/10.0.22621.0/winrt" "-imsvc../../../../../../../Program Files (x86)/Windows Kits/10/include/10.0.22621.0/cppwinrt" "-imsvc../../../../../../../Program Files (x86)/Windows Kits/NETFXSDK/4.8/include/um" -DUSE_AURA=1 -DOFFICIAL_BUILD -D_HAS_NODISCARD -D_CRT_NONSTDC_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO

PF4Public commented 3 weeks ago

Please quote your listings, otherwise they're not readable. Also please note that we may be unable to help if you're building modified version of ungoogled-chromium.

Arthur-Senior commented 3 weeks ago

raceback (most recent call last): File "C:\Projects\ungoogled\ungoogled-chromium-windows\build\src\build\toolchain\win\midl.py", line 459, in sys.exit(main(sys.argv[1:])) File "C:\Projects\ungoogled\ungoogled-chromium-windows\build\src\build\toolchain\win\midl.py", line 399, in main overwrite_guids((os.path.join(outdir, file) if file else None File "C:\Projects\ungoogled\ungoogled-chromium-windows\build\src\build\toolchain\win\midl.py", line 237, in overwrite_guids overwrite_guids_tlb(tlb_file, dynamic_guids) File "C:\Projects\ungoogled\ungoogled-chromium-windows\build\src\build\toolchain\win\midl.py", line 199, in overwrite_guids_tlb contents, ntypes, type_off, guid_off, guid_len = get_tlb_contents(tlb_file) File "C:\Projects\ungoogled\ungoogled-chromium-windows\build\src\build\toolchain\win\midl.py", line 104, in get_tlb_contents assert contents[0:8] == b'MSFT\x02\x00\x01\x00' AssertionError [1676/31073] CXX obj/chrome/updater/tagging/tag.obj ninja: build stopped: subcommand failed.

Arthur-Senior commented 3 weeks ago

Even after recalling the changes, i get the same error. Traceback (most recent call last): File "C:\Projects\ungoogled\ungoogled-chromium-windows\build\src\build\toolchain\win\midl.py", line 459, in sys.exit(main(sys.argv[1:])) File "C:\Projects\ungoogled\ungoogled-chromium-windows\build\src\build\toolchain\win\midl.py", line 399, in main overwrite_guids((os.path.join(outdir, file) if file else None File "C:\Projects\ungoogled\ungoogled-chromium-windows\build\src\build\toolchain\win\midl.py", line 237, in overwrite_guids overwrite_guids_tlb(tlb_file, dynamic_guids) File "C:\Projects\ungoogled\ungoogled-chromium-windows\build\src\build\toolchain\win\midl.py", line 199, in overwrite_guids_tlb contents, ntypes, type_off, guid_off, guid_len = get_tlb_contents(tlb_file) File "C:\Projects\ungoogled\ungoogled-chromium-windows\build\src\build\toolchain\win\midl.py", line 104, in get_tlb_contents assert contents[0:8] == b'MSFT\x02\x00\x01\x00' AssertionError

PF4Public commented 3 weeks ago

Apparently you did something else wrong. I have no idea what that might be.

Arthur-Senior commented 3 weeks ago

i try from new. and make backup after full build.

Arthur-Senior commented 3 weeks ago

Something not direct for this issue: I created a fork on github and will push my changes there, so we can speak about it.