Error when compiling chromium the first time!

516 views
Skip to first unread message

7K LABEL

unread,
Apr 15, 2024, 8:10:08 PM4/15/24
to Chromium-dev
Hello, when i try compiling chromium I get the following error:

[33/58767] ACTION //chrome/updater/app/server/win:updater_legacy_idl_idl_action(//build/toolchain/win:win_clang_x64)
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:/depot_tools/bootstrap-2@3_11_8_chromium_35_bin/python3/bin/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
midl.exe output different from files in gen/chrome/updater/app/server/win, see C:\Users\Piotr The Gamer\AppData\Local\Temp\tmpj54g7l82
To rebaseline:
  copy /y C:\Users\Piotr The Gamer\AppData\Local\Temp\tmpl_95lt3y\* ..\..\third_party\win_build_output\midl\chrome\updater\app\server\win\x64
[42/58767] CXX obj/third_party/abseil-cpp/absl/random/seed_sequences/seed_sequences.obj
ninja: build stopped: subcommand failed.

What should I do? Any help will be appreciated!

Bruce Dawson

unread,
Apr 16, 2024, 5:39:31 PM4/16/24
to Chromium-dev, 7K LABEL
That generally means that you are running a different set of tools from the official ones - a newer version of Visual Studio or a newer SDK. When the midl compiler runs it generates slightly different output and we flag this as an error.

If you can install exactly the same version of Visual Studio and SDK listed here (build/vs_toolchain.py) then it should resolve the issue. If you can't do this then you can comment out the check that is here in midl.py.

A more sustainable way to handle this issue would be to add a check to midl.py for an environment variable such as CHROMIUM_IGNORE_MIDL_MISMATCHES and skip the check if this environment variable exists and is non-zero.

Bruce Dawson

unread,
Apr 16, 2024, 6:18:37 PM4/16/24
to Chromium-dev, 7K LABEL
Actually it's around line 405 where an early-out should be added, whether by modifying the code temporarily or by adding an environmental variable check. Right here.
--
Bruce Dawson, he/him

Tomasz Moniuszko

unread,
Apr 17, 2024, 3:15:50 AM4/17/24
to Chromium-dev, Bruce Dawson, 7K LABEL
The issue was already reported as https://issues.chromium.org/issues/40274505. Unfortunately the problem still exist on some machines. It works fine on some machines, but fails on others, even if all machines download and extract the same vs_toolchain bundle.
Reply all
Reply to author
Forward
0 new messages