Error when building IL2CPP (2020.3.15f2, Windows 11)

Hi everyone, I’m getting an error when building with IL2CPP that I’m having a hard time figuring out:

I had a few errors leading up to this, but after adding the C++ Game libraries to Visual Studio 2022, clearing the IL2CPP cache and ensuring the “Compiler Configuration” is not set to Master… well this shows up.

Am I missing anything obvious here?

I remember an issue in our game before where we had a huge hard-coded array that IL2CPP couldn’t handle; but that’s been taken care of, and the exact same project builds just fine on another device.

Exception: Unity.IL2CPP.Building.BuilderFailedException: Generics67.cpp
D:\.Data\Unity\CinQ\Library\Il2cppBuildCache\Windows\x64\il2cppOutput\Generics67.cpp(32375) : fatal error C1001: Internal compiler error.
(compiler file 'd:\a01\_work\4\s\src\vctools\Compiler\Utc\src\p2\main.c', line 220)
To work around this problem, try simplifying or changing the program near the locations listed above.
If possible please provide a repro here: https://developercommunity.visualstudio.com
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
  cl!RaiseException()+0x6c
  cl!RaiseException()+0x6c
  cl!InvokeCompilerPassW()+0x7da8b
  cl!InvokeCompilerPassW()+0x11d325

Invocation was: Executable: "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX64\x64\cl.exe"
Arguments: "D:\.Data\Unity\CinQ\Library\Il2cppBuildCache\Windows\x64\il2cppOutput\Generics67.cpp" /nologo /c /bigobj /W3 /Z7 /EHs /GR- /Gy /utf-8 /wd4102 /wd4800 /wd4056 /wd4190 /wd4723 /wd4467 /wd4503 /wd4996 /wd4200 /wd4834 /Ox /Oi /Oy- /GS- /Gw /GF /Zo /Yupch-cpp.hpp /Fp"D:\.Data\Unity\CinQ\Library\il2cpp_cache\606504B0802361776F234EA9FE0A85B8.pch" /MT /DNET_4_0 /DUNITY_AOT /DIL2CPP_MONO_DEBUGGER_DISABLED /DGC_NOT_DLL /DRUNTIME_IL2CPP /DBASELIB_INLINE_NAMESPACE=il2cpp_baselib /D_WIN32 /DWIN32 /DWIN32_THREADS /D_WINDOWS /DWINDOWS /D_UNICODE /DUNICODE /D_CRT_SECURE_NO_WARNINGS /D_SCL_SECURE_NO_WARNINGS /D_WINSOCK_DEPRECATED_NO_WARNINGS /DNOMINMAX /D_NDEBUG /DNDEBUG /DWINDOWS_SDK_BUILD_VERSION=22000 /DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\libil2cpp" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\libil2cpp" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\external\bdwgc\include" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\external\xxHash" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\external\baselib\Include" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\external\baselib\Platforms\Windows\Include" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\libil2cpp\pch" /I"D:\.Data\Unity\CinQ\Library\Il2cppBuildCache\Windows\x64\il2cppOutput" /I"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\include" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\shared" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\winrt" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt" /Fo"D:\.Data\Unity\CinQ\Library\il2cpp_cache\7E6CEC28F79AE538C3E2697846E23077.obj" /Fd"D:\.Data\Unity\CinQ\Library\il2cpp_cache\7E6CEC28F79AE538C3E2697846E23077.pdb"
EnvArg key: PATH value: C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x86;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX64\x64

   at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
   at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions, ReadOnlyCollection`1 matchedAssemblyMethodSourceFiles)
   at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions, Boolean throwExceptions)
UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPBuilder.Run () (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <44c3723143904fb88deebc993c7bb491>:0)
DesktopStandalonePostProcessor.RunIL2CPP (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, System.Collections.Generic.List`1[T] cppPlugins) (at <44c3723143904fb88deebc993c7bb491>:0)
DesktopStandalonePostProcessor.SetupStagingArea (UnityEditor.Modules.BuildPostProcessArgs args, System.Collections.Generic.HashSet`1[T] filesToNotOverwrite) (at <44c3723143904fb88deebc993c7bb491>:0)
DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <44c3723143904fb88deebc993c7bb491>:0)
Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditor.BuildPipeline:BuildPlayer(String[], String, BuildTarget, BuildOptions)
DLS.CinQ.Build.CinQBuilderBase:BuildZoneServer(String, String, BuildTarget, BuildOptions, String) (at Assets/_Scripts/Build/Editor/CinQBuilderBase.cs:102)
DLS.CinQ.Build.CinQBuilder_LocalDev:BuildZoneServer() (at Assets/_Scripts/Build/Editor/CinQBuilder_LocalDev.cs:91)
DLS.CinQ.Build.Editor.CinQBuilderWindows:OnGUI() (at Assets/_Scripts/Build/Editor/CinQBuilderWindows.cs:61)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Try to update to the latest Visual Studio 2022 preview version, if you have not done so yet. We had a similar compiler error come up internally, which Microsoft corrected:

https://developercommunity.visualstudio.com/t/Internal-compiler-error-with-optimizatio/1652960

I’m unsure if this is a same issue you are experiencing, but it is worth a try.

1 Like

Thanks a lot, I’ll check it out and update the post based on the results.

Edit: well it’s changed something… I now get 2 errors! XD

Unity.IL2CPP.Building.BuilderFailedException: pch-c.c
D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\libil2cpp\il2cpp-config.h(3): fatal error C1083: Cannot open include file: 'string.h': No such file or directory




Invocation was: Executable: "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31114\bin\HostX64\x64\cl.exe"
Arguments: "D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\libil2cpp\pch\pch-c.c" /nologo /c /bigobj /W3 /Z7 /EHs /GR- /Gy /utf-8 /wd4102 /wd4800 /wd4056 /wd4190 /wd4723 /wd4467 /wd4503 /wd4996 /wd4200 /wd4834 /Ox /Oi /Oy- /GS- /Gw /GF /Zo /MT /D_WIN32 /DWIN32 /DWIN32_THREADS /D_WINDOWS /DWINDOWS /D_UNICODE /DUNICODE /D_CRT_SECURE_NO_WARNINGS /D_SCL_SECURE_NO_WARNINGS /D_WINSOCK_DEPRECATED_NO_WARNINGS /DNOMINMAX /D_NDEBUG /DNDEBUG /DWINDOWS_SDK_BUILD_VERSION=22000 /DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP /DNET_4_0 /DUNITY_AOT /DIL2CPP_MONO_DEBUGGER_DISABLED /DGC_NOT_DLL /DRUNTIME_IL2CPP /DBASELIB_INLINE_NAMESPACE=il2cpp_baselib /I"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31114\include" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\shared" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\winrt" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\libil2cpp" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\libil2cpp" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\external\bdwgc\include" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\external\xxHash" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\external\baselib\Include" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\external\baselib\Platforms\Windows\Include" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\libil2cpp\pch" /I"D:\.Data\Unity\CinQ\Library\Il2cppBuildCache\Windows\x64\il2cppOutput" /Ycpch-c.h /Fp"D:\.Data\Unity\CinQ\Library\il2cpp_cache\BD266052E2DE697922D9A88DB567C0C6.pch" /Fo"D:\.Data\Unity\CinQ\Library\il2cpp_cache\BD266052E2DE697922D9A88DB567C0C6.obj" /Fd"D:\.Data\Unity\CinQ\Library\il2cpp_cache\BD266052E2DE697922D9A88DB567C0C6.pdb"
EnvArg key: PATH value: C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31114\bin\HostX64\x64

   at Unity.IL2CPP.Building.ToolChains.MsvcToolChain.InvokePchCompilation(IL2CPPOutputBuildDescription programBuildDescription, HeaderFileHashProvider headerHashProvider, NPath workingDirectory, Boolean forceRebuild, Boolean verbose, Boolean includeFileNamesInHashes, NPath sourceFile)
   at Unity.IL2CPP.Building.ToolChains.MsvcToolChain.<>c__DisplayClass53_0.<CompilePch>b__0()
   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass0_0`1.<Run>b__0(Object o)
Exception: Unity.IL2CPP.Building.BuilderFailedException: pch-cpp.cpp
D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\libil2cpp\il2cpp-config.h(3): fatal error C1083: Cannot open include file: 'string.h': No such file or directory




Invocation was: Executable: "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31114\bin\HostX64\x64\cl.exe"
Arguments: "D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\libil2cpp\pch\pch-cpp.cpp" /nologo /c /bigobj /W3 /Z7 /EHs /GR- /Gy /utf-8 /wd4102 /wd4800 /wd4056 /wd4190 /wd4723 /wd4467 /wd4503 /wd4996 /wd4200 /wd4834 /Ox /Oi /Oy- /GS- /Gw /GF /Zo /MT /D_WIN32 /DWIN32 /DWIN32_THREADS /D_WINDOWS /DWINDOWS /D_UNICODE /DUNICODE /D_CRT_SECURE_NO_WARNINGS /D_SCL_SECURE_NO_WARNINGS /D_WINSOCK_DEPRECATED_NO_WARNINGS /DNOMINMAX /D_NDEBUG /DNDEBUG /DWINDOWS_SDK_BUILD_VERSION=22000 /DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP /DNET_4_0 /DUNITY_AOT /DIL2CPP_MONO_DEBUGGER_DISABLED /DGC_NOT_DLL /DRUNTIME_IL2CPP /DBASELIB_INLINE_NAMESPACE=il2cpp_baselib /I"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31114\include" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\shared" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\winrt" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\libil2cpp" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\libil2cpp" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\external\bdwgc\include" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\external\xxHash" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\external\baselib\Include" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\external\baselib\Platforms\Windows\Include" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\libil2cpp\pch" /I"D:\.Data\Unity\CinQ\Library\Il2cppBuildCache\Windows\x64\il2cppOutput" /Ycpch-cpp.hpp /Fp"D:\.Data\Unity\CinQ\Library\il2cpp_cache\EF9A1EEEBCAC0A9558DB7BDC7968404A.pch" /Fo"D:\.Data\Unity\CinQ\Library\il2cpp_cache\EF9A1EEEBCAC0A9558DB7BDC7968404A.obj" /Fd"D:\.Data\Unity\CinQ\Library\il2cpp_cache\EF9A1EEEBCAC0A9558DB7BDC7968404A.pdb"
EnvArg key: PATH value: C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31114\bin\HostX64\x64

   at Unity.IL2CPP.Building.ToolChains.MsvcToolChain.InvokePchCompilation(IL2CPPOutputBuildDescription programBuildDescription, HeaderFileHashProvider headerHashProvider, NPath workingDirectory, Boolean forceRebuild, Boolean verbose, Boolean includeFileNamesInHashes, NPath sourceFile)
   at Unity.IL2CPP.Building.ToolChains.MsvcToolChain.<>c__DisplayClass53_0.<CompilePch>b__1()
   at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass0_0`1.<Run>b__0(Object o)
UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPBuilder.Run () (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <44c3723143904fb88deebc993c7bb491>:0)
DesktopStandalonePostProcessor.RunIL2CPP (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, System.Collections.Generic.List`1[T] cppPlugins) (at <44c3723143904fb88deebc993c7bb491>:0)
DesktopStandalonePostProcessor.SetupStagingArea (UnityEditor.Modules.BuildPostProcessArgs args, System.Collections.Generic.HashSet`1[T] filesToNotOverwrite) (at <44c3723143904fb88deebc993c7bb491>:0)
DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <44c3723143904fb88deebc993c7bb491>:0)
Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditor.BuildPipeline:BuildPlayer(String[], String, BuildTarget, BuildOptions)
DLS.CinQ.Build.CinQBuilderBase:BuildGameClient(String, String, BuildTarget, BuildOptions, String) (at Assets/_Scripts/Build/Editor/CinQBuilderBase.cs:250)
DLS.CinQ.Build.CinQBuilder_OnlineDev:BuildGameClient() (at Assets/_Scripts/Build/Editor/CinQBuilder_OnlineDev.cs:61)
DLS.CinQ.Build.Editor.CinQBuilderWindows:OnGUI() (at Assets/_Scripts/Build/Editor/CinQBuilderWindows.cs:75)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Looks like you’re missing Windows SDK. Maybe VS version upgrade accidentally nuked it? For what it’s worth, I recently made this error message much better. You can install Windows SDK either through VS installer or directly from Windows SDK - Windows app development | Microsoft Developer.

The Visual Studio Installer already shows two versions of the SDK as installed though.
I’ll try removing and re-adding them just in case I guess?

7932286--1013473--upload_2022-2-28_22-14-13.png

For whatever reason Unity is trying to use 10.0.22000, taken from your log file:

C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um

Perhaps it was installed previously and had some files left over making Unity think it’s still installed?

OK, that actually seems to make sense!
I manually changed the version in the registry following what I found here https://discussions.unity.com/t/791127 and I’m no longer getting the above error!
7932667--1013581--upload_2022-3-1_2-22-0.png

That version it was trying to use was the Windows 11 SDK; so there might be some sort of compatibility issue where Unity can’t deal with the Windows 11 SDK even though it is set as the “default” in the registry (since it has the highest version number?). Either that or Visual Studio Installer is just not changing the registry value as it should upon removing that SDK version.

The bad news? I’m mack to the first error once again…

Exception: Unity.IL2CPP.Building.BuilderFailedException: Generics67.cpp
D:\.Data\Unity\CinQ\Library\Il2cppBuildCache\Windows\x64\il2cppOutput\Generics67.cpp(32375) : fatal error C1001: Internal compiler error.
(compiler file 'D:\a\_work\1\s\src\vctools\Compiler\Utc\src\p2\main.c', line 220)
 To work around this problem, try simplifying or changing the program near the locations listed above.
If possible please provide a repro here: https://developercommunity.visualstudio.com
Please choose the Technical Support command on the Visual C++
 Help menu, or open the Technical Support help file for more information
  cl!RaiseException()+0x6c
  cl!RaiseException()+0x6c
  cl!InvokeCompilerPassW()+0x81bdf
  cl!InvokeCompilerPassW()+0x120297

Invocation was: Executable: "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31114\bin\HostX64\x64\cl.exe"
Arguments: "D:\.Data\Unity\CinQ\Library\Il2cppBuildCache\Windows\x64\il2cppOutput\Generics67.cpp" /nologo /c /bigobj /W3 /Z7 /EHs /GR- /Gy /utf-8 /wd4102 /wd4800 /wd4056 /wd4190 /wd4723 /wd4467 /wd4503 /wd4996 /wd4200 /wd4834 /Ox /Oi /Oy- /GS- /Gw /GF /Zo /Yupch-cpp.hpp /Fp"D:\.Data\Unity\CinQ\Library\il2cpp_cache\980709334C9FBE073A3C33E38462060B.pch" /MT /DNET_4_0 /DUNITY_AOT /DIL2CPP_MONO_DEBUGGER_DISABLED /DGC_NOT_DLL /DRUNTIME_IL2CPP /DBASELIB_INLINE_NAMESPACE=il2cpp_baselib /D_WIN32 /DWIN32 /DWIN32_THREADS /D_WINDOWS /DWINDOWS /D_UNICODE /DUNICODE /D_CRT_SECURE_NO_WARNINGS /D_SCL_SECURE_NO_WARNINGS /D_WINSOCK_DEPRECATED_NO_WARNINGS /DNOMINMAX /D_NDEBUG /DNDEBUG /DWINDOWS_SDK_BUILD_VERSION=20348 /DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\libil2cpp" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\libil2cpp" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\external\bdwgc\include" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\external\xxHash" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\external\baselib\Include" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\external\baselib\Platforms\Windows\Include" /I"D:\.Data\Unity\2020.3.15f2\Editor\Data\il2cpp\libil2cpp\pch" /I"D:\.Data\Unity\CinQ\Library\Il2cppBuildCache\Windows\x64\il2cppOutput" /I"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31114\include" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.20348.0\shared" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.20348.0\um" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.20348.0\winrt" /I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.20348.0\ucrt" /Fo"D:\.Data\Unity\CinQ\Library\il2cpp_cache\59349731DD859407DB37E593D457AE44.obj" /Fd"D:\.Data\Unity\CinQ\Library\il2cpp_cache\59349731DD859407DB37E593D457AE44.pdb"
EnvArg key: PATH value: C:\Program Files (x86)\Windows Kits\10\bin\10.0.20348.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\10.0.20348.0\x86;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31114\bin\HostX64\x64

   at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
   at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions, ReadOnlyCollection`1 matchedAssemblyMethodSourceFiles)
   at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions, Boolean throwExceptions)
UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPBuilder.Run () (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <44c3723143904fb88deebc993c7bb491>:0)
DesktopStandalonePostProcessor.RunIL2CPP (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, System.Collections.Generic.List`1[T] cppPlugins) (at <44c3723143904fb88deebc993c7bb491>:0)
DesktopStandalonePostProcessor.SetupStagingArea (UnityEditor.Modules.BuildPostProcessArgs args, System.Collections.Generic.HashSet`1[T] filesToNotOverwrite) (at <44c3723143904fb88deebc993c7bb491>:0)
DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <44c3723143904fb88deebc993c7bb491>:0)
Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditor.BuildPipeline:BuildPlayer(String[], String, BuildTarget, BuildOptions)
DLS.CinQ.Build.CinQBuilderBase:BuildZoneServer(String, String, BuildTarget, BuildOptions, String) (at Assets/_Scripts/Build/Editor/CinQBuilderBase.cs:105)
DLS.CinQ.Build.CinQBuilder_LocalDev:BuildZoneServer() (at Assets/_Scripts/Build/Editor/CinQBuilder_LocalDev.cs:91)
DLS.CinQ.Build.Editor.CinQBuilderWindows:OnGUI() (at Assets/_Scripts/Build/Editor/CinQBuilderWindows.cs:61)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

We noticed a recent compiler bug in VS that Microsoft has fixed. Can you try to install the latest VS 2022 Preview version to see if that corrects this issue? https://developercommunity.visualstudio.com/t/Internal-compiler-error-with-optimizatio/1652960

1 Like

I’m currently running the latest preview that seems available:
7933816--1013779--upload_2022-3-1_14-44-57.png

And I currently have the following SDKs installed (with the Gaming, Desktop and Mobile development with C++ workloads installed), and am pointing to version 10.0.20348 through the registry (as described above):
7933816--1013782--upload_2022-3-1_14-45-51.png

Also, if it matters at all, this is a relatively fresh install of Windows 11; so I really haven’t had time to mess anything up; it’s basically just Unity, Visual Studio, Notepad++, FileZilla and some game launchers.

Darn it, this is probably a different compiler error then. Can you try various different options for the C++ Compiler Configuration setting in the Unity Editor Player Settings? It might be nice to know if any option there changes the behavior.

Also, when this does happen, was is the generated code in D:.Data\Unity\CinQ\Library\Il2cppBuildCache\Windows\x64\il2cppOutput\Generics67.cpp around line 32375, where the C++ compiler indicates the cause of the problem might be?

1 Like

Hey, sorry for the delay, I was offline for a bit there.

I changed the C++ Compiler Configuration to Debug… and the error message seems a bit more useful this time:

Exception: C++ code builder is unable to build C++ code for Linux: Could not find valid clang executable at clang.exe
UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPBuilder.Run () (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <44c3723143904fb88deebc993c7bb491>:0)
DesktopStandalonePostProcessor.RunIL2CPP (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, System.Collections.Generic.List`1[T] cppPlugins) (at <44c3723143904fb88deebc993c7bb491>:0)
DesktopStandalonePostProcessor.SetupStagingArea (UnityEditor.Modules.BuildPostProcessArgs args, System.Collections.Generic.HashSet`1[T] filesToNotOverwrite) (at <44c3723143904fb88deebc993c7bb491>:0)
DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <44c3723143904fb88deebc993c7bb491>:0)
Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditor.BuildPipeline:BuildPlayer(String[], String, BuildTarget, BuildOptions)
DLS.CinQ.Build.CinQBuilderBase:BuildZoneServer(String, String, BuildTarget, BuildOptions, String) (at Assets/_Scripts/Build/Editor/CinQBuilderBase.cs:105)
DLS.CinQ.Build.CinQBuilder_OnlineDev:BuildZoneServer() (at Assets/_Scripts/Build/Editor/CinQBuilder_OnlineDev.cs:117)
DLS.CinQ.Build.Editor.CinQBuilderWindows:OnGUI() (at Assets/_Scripts/Build/Editor/CinQBuilderWindows.cs:99)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

I’m guessing I also need to include something linux-specific in the Visual Studio installation options?
It’s almost like I forgot to mention I was building the game server… which runs on Linux XD
EDIT: Yep, the build is now going through! I’ll make sure things are working, but it should all be good now!

Also, just in case it is still relevant, here is the code from that Generic67.cpp file (starting at line 32374)

// System.Void Rewired.Utils.SafeDelegate`1<System.Object>::Invoke(System.Action`2<System.Object,T>)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void SafeDelegate_1_Invoke_m0FD346925FE6B7C2DA77EA093A6BA796AA263634_gshared (SafeDelegate_1_t64073B4DF751C2BD9CCC3882764227536921E312 * __this, Action_2_t4FB8E5660AE634E13BF340904C61FEA9DCE9D52D * ___invokeCallback0, const RuntimeMethod* method)
{
   static bool s_Il2CppMethodInitialized;
   if (!s_Il2CppMethodInitialized)
   {
       il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_Add_mEE653047BDB3486ACC2E16DC6C3422A0BA48F01F_RuntimeMethod_var);
       il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_get_Count_m7FA90926D9267868473EF90941F6BF794EC87FF2_RuntimeMethod_var);
       il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&List_1_get_Item_m730FCAD2646FA94B07D1216A512B09AB9F0BBA5D_RuntimeMethod_var);
       il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TempListPool_Get_TisInt32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046_mF2E288307A74F945C5CFDEC4B1B933CC15420BD3_RuntimeMethod_var);
       il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&TempListPool_Return_TisInt32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046_m7BF4F8B095761C47926ED700287927FF62D0832A_RuntimeMethod_var);
       s_Il2CppMethodInitialized = true;
   }
   int32_t V_0 = 0;
   int32_t V_1 = 0;
   List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 * V_2 = NULL;
   int32_t V_3 = 0;
   EkgIeknoVGGcwFMlHcdIacAkqkCc_t8CE998D34EEA512A468A7B3688AE1FC0F9232FD4 * V_4 = NULL;
   Exception_t * V_5 = NULL;
   int32_t V_6 = 0;
   il2cpp::utils::ExceptionSupportStack<RuntimeObject*, 1> __active_exceptions;
   il2cpp::utils::ExceptionSupportStack<int32_t, 2> __leave_targets;
   int32_t G_B2_0 = 0;
   int32_t G_B26_0 = 0;
   int32_t G_B36_0 = 0;
   int32_t G_B36_1 = 0;
   int32_t G_B41_0 = 0;
   int32_t G_B50_0 = 0;
   int32_t G_B50_1 = 0;
   {
       Action_2_t4FB8E5660AE634E13BF340904C61FEA9DCE9D52D * L_0 = ___invokeCallback0;
       if (L_0)
       {
           goto IL_00c1;
       }
   }

IL_0006:
   {
       G_B2_0 = ((int32_t)-1765813535);
   }

IL_000b:
   {
       switch (((int32_t)((int32_t)G_B2_0^(int32_t)((int32_t)-1765813536))))
       {
           case 0:
           {
               goto IL_0079;
           }
           case 1:
           {
               goto IL_0100;
           }
           case 2:
           {
               goto IL_00b5;
           }
           case 3:
           {
               goto IL_0115;
           }
           case 4:
           {
               goto IL_005e;
           }
           case 5:
           {
               goto IL_00db;
           }
           case 6:
           {
               goto IL_0006;
           }
           case 7:
           {
               goto IL_00c1;
           }
           case 8:
           {
               goto IL_004b;
           }
           case 9:
           {
               goto IL_0067;
           }
           case 10:
           {
               goto IL_0125;
           }
           case 11:
           {
               goto IL_0085;
           }
       }
   }
   {
       goto IL_0125;
   }

IL_004b:
   {
       List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 * L_1 = V_2;
       if (L_1)
       {
           goto IL_0125;
       }
   }
   {
       List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 * L_2;
       L_2 = TempListPool_Get_TisInt32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046_mF2E288307A74F945C5CFDEC4B1B933CC15420BD3(/*hidden argument*/TempListPool_Get_TisInt32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046_mF2E288307A74F945C5CFDEC4B1B933CC15420BD3_RuntimeMethod_var);
       V_2 = (List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 *)L_2;
       G_B2_0 = ((int32_t)-1765813526);
       goto IL_000b;
   }

IL_005e:
   {
       V_3 = (int32_t)0;
       G_B2_0 = ((int32_t)-1765813536);
       goto IL_000b;
   }

IL_0067:
   {
       List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C * L_3 = (List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)__this->get_yayKxLbYizQcFEwGnViByXsMcjC_3();
       NullCheck((List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)L_3);
       ((  void (*) (List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)L_3, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
       G_B2_0 = ((int32_t)-1765813534);
       goto IL_000b;
   }

IL_0079:
   {
       goto IL_0221;
   }
   // Dead block : IL_007e: ldc.i4 -1765813525

IL_0085:
   {
       List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C * L_4 = (List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)__this->get_yayKxLbYizQcFEwGnViByXsMcjC_3();
       int32_t L_5 = V_3;
       NullCheck((List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)L_4);
       EkgIeknoVGGcwFMlHcdIacAkqkCc_t8CE998D34EEA512A468A7B3688AE1FC0F9232FD4 * L_6;
       L_6 = ((  EkgIeknoVGGcwFMlHcdIacAkqkCc_t8CE998D34EEA512A468A7B3688AE1FC0F9232FD4 * (*) (List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 5)->methodPointer)((List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)L_4, (int32_t)L_5, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 5));
       V_4 = (EkgIeknoVGGcwFMlHcdIacAkqkCc_t8CE998D34EEA512A468A7B3688AE1FC0F9232FD4 *)L_6;
       EkgIeknoVGGcwFMlHcdIacAkqkCc_t8CE998D34EEA512A468A7B3688AE1FC0F9232FD4 * L_7 = V_4;
       NullCheck(L_7);
       bool L_8 = (bool)L_7->get_CcvcRkwuNJVUwRQtNbVagdseCwEe_3();
       if (!L_8)
       {
           goto IL_0131;
       }
   }
   {
       EkgIeknoVGGcwFMlHcdIacAkqkCc_t8CE998D34EEA512A468A7B3688AE1FC0F9232FD4 * L_9 = V_4;
       NullCheck((EkgIeknoVGGcwFMlHcdIacAkqkCc_t8CE998D34EEA512A468A7B3688AE1FC0F9232FD4 *)L_9);
       bool L_10;
       L_10 = ((  bool (*) (EkgIeknoVGGcwFMlHcdIacAkqkCc_t8CE998D34EEA512A468A7B3688AE1FC0F9232FD4 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19)->methodPointer)((EkgIeknoVGGcwFMlHcdIacAkqkCc_t8CE998D34EEA512A468A7B3688AE1FC0F9232FD4 *)L_9, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 19));
       if (!L_10)
       {
           goto IL_0131;
       }
   }
   {
       G_B2_0 = ((int32_t)-1765813528);
       goto IL_000b;
   }

IL_00b5:
   {
       V_1 = (int32_t)0;
       G_B2_0 = ((int32_t)-1765813533);
       goto IL_000b;
   }

IL_00c1:
   {
       List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C * L_11 = (List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)__this->get_jrjQRDRLiWfhIvFBJcXreYUHJdIK_2();
       NullCheck((List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)L_11);
       int32_t L_12;
       L_12 = ((  int32_t (*) (List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0)->methodPointer)((List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)L_11, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 0));
       V_0 = (int32_t)L_12;
       int32_t L_13 = V_0;
       if (L_13)
       {
           goto IL_0067;
       }
   }
   {
       return;
   }
   // Dead block : IL_00d1: ldc.i4 -1765813527

IL_00db:
   {
       List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C * L_14 = (List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)__this->get_yayKxLbYizQcFEwGnViByXsMcjC_3();
       List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C * L_15 = (List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)__this->get_jrjQRDRLiWfhIvFBJcXreYUHJdIK_2();
       int32_t L_16 = V_1;
       NullCheck((List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)L_15);
       EkgIeknoVGGcwFMlHcdIacAkqkCc_t8CE998D34EEA512A468A7B3688AE1FC0F9232FD4 * L_17;
       L_17 = ((  EkgIeknoVGGcwFMlHcdIacAkqkCc_t8CE998D34EEA512A468A7B3688AE1FC0F9232FD4 * (*) (List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 5)->methodPointer)((List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)L_15, (int32_t)L_16, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 5));
       NullCheck((List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)L_14);
       ((  void (*) (List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *, EkgIeknoVGGcwFMlHcdIacAkqkCc_t8CE998D34EEA512A468A7B3688AE1FC0F9232FD4 *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8)->methodPointer)((List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)L_14, (EkgIeknoVGGcwFMlHcdIacAkqkCc_t8CE998D34EEA512A468A7B3688AE1FC0F9232FD4 *)L_17, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 8));
       int32_t L_18 = V_1;
       V_1 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_18, (int32_t)1));
       G_B2_0 = ((int32_t)-1765813533);
       goto IL_000b;
   }

IL_0100:
   {
       ArgumentNullException_tFB5C4621957BC53A7D1B4FDD5C38B4D6E15DB8FB * L_19 = (ArgumentNullException_tFB5C4621957BC53A7D1B4FDD5C38B4D6E15DB8FB *)il2cpp_codegen_object_new(((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&ArgumentNullException_tFB5C4621957BC53A7D1B4FDD5C38B4D6E15DB8FB_il2cpp_TypeInfo_var)));
       ArgumentNullException__ctor_m81AB157B93BFE2FBFDB08B88F84B444293042F97(L_19, (String_t*)((String_t*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&_stringLiteral8B14DF04F15CFC0B4D9FBFD5E900A6FD9D7F3352)), /*hidden argument*/NULL);
       IL2CPP_RAISE_MANAGED_EXCEPTION(L_19, ((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&SafeDelegate_1_Invoke_m0FD346925FE6B7C2DA77EA093A6BA796AA263634_RuntimeMethod_var)));
   }
   // Dead block : IL_010b: ldc.i4 -1765813529

IL_0115:
   {
       int32_t L_20 = V_1;
       int32_t L_21 = V_0;
       if ((((int32_t)L_20) < ((int32_t)L_21)))
       {
           goto IL_00db;
       }
   }
   {
       V_2 = (List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 *)NULL;
       G_B2_0 = ((int32_t)-1765813532);
       goto IL_000b;
   }

IL_0125:
   {
       List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 * L_22 = V_2;
       int32_t L_23 = V_3;
       NullCheck((List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 *)L_22);
       List_1_Add_mEE653047BDB3486ACC2E16DC6C3422A0BA48F01F((List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 *)L_22, (int32_t)L_23, /*hidden argument*/List_1_Add_mEE653047BDB3486ACC2E16DC6C3422A0BA48F01F_RuntimeMethod_var);
       goto IL_01e4;
   }

IL_0131:
   try
   { // begin try (depth: 1)
       Action_2_t4FB8E5660AE634E13BF340904C61FEA9DCE9D52D * L_24 = ___invokeCallback0;
       EkgIeknoVGGcwFMlHcdIacAkqkCc_t8CE998D34EEA512A468A7B3688AE1FC0F9232FD4 * L_25 = V_4;
       NullCheck(L_25);
       RuntimeObject * L_26 = (RuntimeObject *)L_25->get_nkfYhNhELXGIHfvSYEkuqHBVjsj_0();
       NullCheck((Action_2_t4FB8E5660AE634E13BF340904C61FEA9DCE9D52D *)L_24);
       ((  void (*) (Action_2_t4FB8E5660AE634E13BF340904C61FEA9DCE9D52D *, RuntimeObject *, RuntimeObject *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 20)->methodPointer)((Action_2_t4FB8E5660AE634E13BF340904C61FEA9DCE9D52D *)L_24, (RuntimeObject *)__this, (RuntimeObject *)L_26, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 20));
       goto IL_01e4;
   } // end try (depth: 1)
   catch(Il2CppExceptionWrapper& e)
   {
       if(il2cpp_codegen_class_is_assignable_from (((RuntimeClass*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Exception_t_il2cpp_TypeInfo_var)), il2cpp_codegen_object_class(e.ex)))
       {
           IL2CPP_PUSH_ACTIVE_EXCEPTION(e.ex);
           goto CATCH_0144;
       }
       throw e;
   }

CATCH_0144:
   { // begin catch(System.Exception)
       {
           V_5 = (Exception_t *)((Exception_t *)IL2CPP_GET_ACTIVE_EXCEPTION(Exception_t *));
       }

IL_0146:
       {
           G_B26_0 = ((int32_t)-1765813530);
       }

IL_014b:
       {
           switch (((int32_t)((int32_t)G_B26_0^(int32_t)((int32_t)-1765813536))))
           {
               case 0:
               {
                   goto IL_0190;
               }
               case 1:
               {
                   goto IL_01a4;
               }
               case 2:
               {
                   goto IL_0146;
               }
               case 3:
               {
                   goto IL_01d1;
               }
               case 4:
               {
                   goto IL_01e2;
               }
               case 5:
               {
                   goto IL_01b4;
               }
               case 6:
               {
                   goto IL_0174;
               }
           }
       }

IL_0172:
       {
           goto IL_01e2;
       }

IL_0174:
       {
           Action_1_t34F00247DCE829C59C4C5AAECAE03F05F060DD90 * L_27 = (Action_1_t34F00247DCE829C59C4C5AAECAE03F05F060DD90 *)__this->get_THbnurbSDiUuDNgLiYxKdobRMea_1();
           if (!L_27)
           {
               goto IL_01b4;
           }
       }

IL_017c:
       {
           Action_1_t34F00247DCE829C59C4C5AAECAE03F05F060DD90 * L_28 = (Action_1_t34F00247DCE829C59C4C5AAECAE03F05F060DD90 *)__this->get_THbnurbSDiUuDNgLiYxKdobRMea_1();
           Exception_t * L_29 = V_5;
           NullCheck((Action_1_t34F00247DCE829C59C4C5AAECAE03F05F060DD90 *)L_28);
           Action_1_Invoke_mFFDA4B6E4544D37A14A46ED010868613ED1F454C((Action_1_t34F00247DCE829C59C4C5AAECAE03F05F060DD90 *)L_28, (Exception_t *)L_29, /*hidden argument*/((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&Action_1_Invoke_mFFDA4B6E4544D37A14A46ED010868613ED1F454C_RuntimeMethod_var)));
           G_B26_0 = ((int32_t)-1765813535);
           goto IL_014b;
       }

IL_0190:
       {
           Exception_t * L_30 = V_5;
           NullCheck((Exception_t *)L_30);
           Exception_t * L_31;
           L_31 = Exception_get_InnerException_m10D85773B6B191C7D4E7D3C2954B84F9BB195218_inline((Exception_t *)L_30, /*hidden argument*/NULL);
           Logger_LogError_mC3084EA2679DF357DD8D7ACFC4F121AD3DA7466B((RuntimeObject *)L_31, (bool)1, /*hidden argument*/NULL);
           G_B26_0 = ((int32_t)-1765813535);
           goto IL_014b;
       }

IL_01a4:
       {
           List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 * L_32 = V_2;
           if (L_32)
           {
               goto IL_01d1;
           }
       }

IL_01a7:
       {
           List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 * L_33;
           L_33 = TempListPool_Get_TisInt32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046_mF2E288307A74F945C5CFDEC4B1B933CC15420BD3(/*hidden argument*/((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&TempListPool_Get_TisInt32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046_mF2E288307A74F945C5CFDEC4B1B933CC15420BD3_RuntimeMethod_var)));
           V_2 = (List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 *)L_33;
           G_B26_0 = ((int32_t)-1765813533);
           goto IL_014b;
       }

IL_01b4:
       {
           Exception_t * L_34 = V_5;
           NullCheck((Exception_t *)L_34);
           Exception_t * L_35;
           L_35 = Exception_get_InnerException_m10D85773B6B191C7D4E7D3C2954B84F9BB195218_inline((Exception_t *)L_34, /*hidden argument*/NULL);
           if (!L_35)
           {
               goto IL_01c5;
           }
       }

IL_01bd:
       {
           int32_t L_36 = (int32_t)((int32_t)-1765813536);
           G_B36_0 = L_36;
           G_B36_1 = L_36;
           goto IL_01cb;
       }

IL_01c5:
       {
           int32_t L_37 = (int32_t)((int32_t)-1765813535);
           G_B36_0 = L_37;
           G_B36_1 = L_37;
       }

IL_01cb:
       {
           G_B26_0 = G_B36_1;
           goto IL_014b;
       }

IL_01d1:
       {
           List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 * L_38 = V_2;
           int32_t L_39 = V_3;
           NullCheck((List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 *)L_38);
           List_1_Add_mEE653047BDB3486ACC2E16DC6C3422A0BA48F01F((List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 *)L_38, (int32_t)L_39, /*hidden argument*/((RuntimeMethod*)il2cpp_codegen_initialize_runtime_metadata_inline((uintptr_t*)&List_1_Add_mEE653047BDB3486ACC2E16DC6C3422A0BA48F01F_RuntimeMethod_var)));
           G_B26_0 = ((int32_t)-1765813532);
           goto IL_014b;
       }

IL_01e2:
       {
           IL2CPP_POP_ACTIVE_EXCEPTION();
           goto IL_01e4;
       }
   } // end catch (depth: 1)

IL_01e4:
   {
       int32_t L_40 = V_3;
       V_3 = (int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_40, (int32_t)1));
   }

IL_01e8:
   {
       G_B41_0 = ((int32_t)-1765813534);
   }

IL_01ed:
   {
       switch (((int32_t)((int32_t)G_B41_0^(int32_t)((int32_t)-1765813536))))
       {
           case 0:
           {
               goto IL_0258;
           }
           case 1:
           {
               goto IL_0297;
           }
           case 2:
           {
               goto IL_0221;
           }
           case 3:
           {
               goto IL_022f;
           }
           case 4:
           {
               goto IL_01e8;
           }
           case 5:
           {
               goto IL_0282;
           }
           case 6:
           {
               goto IL_0265;
           }
           case 7:
           {
               goto IL_02ac;
           }
           case 8:
           {
               goto IL_0243;
           }
       }
   }
   {
       goto IL_02ac;
   }

IL_0221:
   {
       int32_t L_41 = V_3;
       int32_t L_42 = V_0;
       if ((((int32_t)L_41) < ((int32_t)L_42)))
       {
           goto IL_0085;
       }
   }
   {
       G_B41_0 = ((int32_t)-1765813533);
       goto IL_01ed;
   }

IL_022f:
   {
       List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 * L_43 = V_2;
       if (!L_43)
       {
           goto IL_0243;
       }
   }
   {
       List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 * L_44 = V_2;
       NullCheck((List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 *)L_44);
       int32_t L_45;
       L_45 = List_1_get_Count_m7FA90926D9267868473EF90941F6BF794EC87FF2_inline((List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 *)L_44, /*hidden argument*/List_1_get_Count_m7FA90926D9267868473EF90941F6BF794EC87FF2_RuntimeMethod_var);
       V_6 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_45, (int32_t)1));
       G_B41_0 = ((int32_t)-1765813535);
       goto IL_01ed;
   }

IL_0243:
   {
       int32_t L_46 = V_0;
       if ((((int32_t)L_46) <= ((int32_t)0)))
       {
           goto IL_024f;
       }
   }
   {
       int32_t L_47 = (int32_t)((int32_t)-1765813531);
       G_B50_0 = L_47;
       G_B50_1 = L_47;
       goto IL_0255;
   }

IL_024f:
   {
       int32_t L_48 = (int32_t)((int32_t)-1765813529);
       G_B50_0 = L_48;
       G_B50_1 = L_48;
   }

IL_0255:
   {
       G_B41_0 = G_B50_1;
       goto IL_01ed;
   }

IL_0258:
   {
       int32_t L_49 = V_6;
       V_6 = (int32_t)((int32_t)il2cpp_codegen_subtract((int32_t)L_49, (int32_t)1));
       G_B41_0 = ((int32_t)-1765813535);
       goto IL_01ed;
   }

IL_0265:
   {
       List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C * L_50 = (List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)__this->get_jrjQRDRLiWfhIvFBJcXreYUHJdIK_2();
       List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 * L_51 = V_2;
       int32_t L_52 = V_6;
       NullCheck((List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 *)L_51);
       int32_t L_53;
       L_53 = List_1_get_Item_m730FCAD2646FA94B07D1216A512B09AB9F0BBA5D_inline((List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 *)L_51, (int32_t)L_52, /*hidden argument*/List_1_get_Item_m730FCAD2646FA94B07D1216A512B09AB9F0BBA5D_RuntimeMethod_var);
       NullCheck((List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)L_50);
       ((  void (*) (List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *, int32_t, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17)->methodPointer)((List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)L_50, (int32_t)L_53, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 17));
       G_B41_0 = ((int32_t)-1765813536);
       goto IL_01ed;
   }

IL_0282:
   {
       List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C * L_54 = (List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)__this->get_yayKxLbYizQcFEwGnViByXsMcjC_3();
       NullCheck((List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)L_54);
       ((  void (*) (List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *, const RuntimeMethod*))IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18)->methodPointer)((List_1_t59FB160C21E1BC685088BF532344B9A47A99F66C *)L_54, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->klass->rgctx_data, 18));
       G_B41_0 = ((int32_t)-1765813529);
       goto IL_01ed;
   }

IL_0297:
   {
       int32_t L_55 = V_6;
       if ((((int32_t)L_55) >= ((int32_t)0)))
       {
           goto IL_0265;
       }
   }
   {
       List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 * L_56 = V_2;
       TempListPool_Return_TisInt32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046_m7BF4F8B095761C47926ED700287927FF62D0832A((List_1_t260B41F956D673396C33A4CF94E8D6C4389EACB7 *)L_56, /*hidden argument*/TempListPool_Return_TisInt32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046_m7BF4F8B095761C47926ED700287927FF62D0832A_RuntimeMethod_var);
       G_B41_0 = ((int32_t)-1765813528);
       goto IL_01ed;
   }

IL_02ac:
   {
       return;
   }
}

OK, so it looks like the Linux (server) builds are working, but not the Windows build now:

Exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31114\bin\HostX64\x64\link.exe /out:"D:\.Data\Unity\CinQ\Library\il2cpp_cache\linkresult_4F6AB51BC0FA0D2AB19404529D783F8D\GameAssembly.dll" /ignore:4206 /DEBUG /INCREMENTAL:NO /LARGEADDRESSAWARE /NXCOMPAT /DYNAMICBASE /NOLOGO /TLBID:1 /OPT:REF /OPT:ICF /HIGHENTROPYVA /DLL /IGNORE:4104 /NODEFAULTLIB:uuid.lib "kernel32.lib" "user32.lib" "advapi32.lib" "ole32.lib" "oleaut32.lib" "Shell32.lib" "Crypt32.lib" "psapi.lib" "version.lib" "MsWSock.lib" "ws2_32.lib" "Iphlpapi.lib" "Dbghelp.lib" "D:\.Data\Unity\2020.3.15f2\Editor\Data\PlaybackEngines\WindowsStandaloneSupport\Variations\win64_development_il2cpp\baselib.dll.lib" /LIBPATH:"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31114\lib\x64" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.20348.0\um\x64" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.20348.0\ucrt\x64" /SUBSYSTEM:WINDOWS @"C:\Users\Eric\AppData\Local\Temp\tmpB1F2.tmp"

42F3BAAC7B8F3F638BC643C85B1BFAA9.obj : fatal error LNK1136: invalid or corrupt file

   at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
   at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
   at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions, ReadOnlyCollection`1 matchedAssemblyMethodSourceFiles)
   at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions, Boolean throwExceptions)
UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPBuilder.Run () (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <44c3723143904fb88deebc993c7bb491>:0)
DesktopStandalonePostProcessor.RunIL2CPP (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, System.Collections.Generic.List`1[T] cppPlugins) (at <44c3723143904fb88deebc993c7bb491>:0)
DesktopStandalonePostProcessor.SetupStagingArea (UnityEditor.Modules.BuildPostProcessArgs args, System.Collections.Generic.HashSet`1[T] filesToNotOverwrite) (at <44c3723143904fb88deebc993c7bb491>:0)
DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <44c3723143904fb88deebc993c7bb491>:0)
Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditor.BuildPipeline:BuildPlayer(String[], String, BuildTarget, BuildOptions)
DLS.CinQ.Build.CinQBuilderBase:BuildGameClient(String, String, BuildTarget, BuildOptions, String) (at Assets/_Scripts/Build/Editor/CinQBuilderBase.cs:250)
DLS.CinQ.Build.CinQBuilder_OnlineDev:BuildGameClient() (at Assets/_Scripts/Build/Editor/CinQBuilder_OnlineDev.cs:61)
DLS.CinQ.Build.Editor.CinQBuilderWindows:OnGUI() (at Assets/_Scripts/Build/Editor/CinQBuilderWindows.cs:75)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Ok, so the problem here does look like a bug specific to the MSVC compiler, which is only used for the Linux build. If you only need the Linux build, then it seems you can work around it.

1 Like

Hi, sorry if I was a bit confusing there; unfortunately I currently need to build multiple versions of the game: a game server running on Linux, and game clients for Android, Mac OS and Windows.

Only the Windows version seems to be causing issues at the moment; I’m using Mono as a fallback for now, but the whole team is supposed to shift to IL2CPP so I’m eventually going to have to change that.

Thanks for clarifying. Looking again at the generated code that causes the issue, it seems that it comes from the Rewired plugin. That code has often exposed bugs in the MSVC compiler. There are some details about how you might work around it on the Rewired site: https://guavaman.com/projects/rewired/docs/KnownIssues.html#windows-standalone-il2cpp-vs2019-hang

1 Like

That did the trick!

Thanks a TON for the help!

@EricLowry
To clarify, all the obfuscation that was triggering the compiler errors was removed from Rewired in version 1.1.40.0. The current version of Rewired is 1.1.41.5. If you are getting this error, you need to update Rewired.

In the documentation:
https://guavaman.com/projects/rewired/docs/KnownIssues.html#windows-standalone-il2cpp-vs2019-hang

1 Like