IL2CPP build problem

Since I updated to 2020.1.0b8 I’ve been unable to build using IL2CPP. It worked with earlier versions of the 2020.1 alphas and betas.

This is the error I get. I think I pasted the relevant part (let me know if I should paste the full thing)

Failed running C:\Program Files\Unity\Hub\Editor\2020.1.0b8\Editor\Data\il2cpp/build/deploy/netcoreapp3.0/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile=“unityaot” --compile-cpp --libil2cpp-static --platform=“WindowsDesktop” --architecture=“x64” --configuration=“Release” --outputpath=“C:\Nifflas\SVN\Ynglet\trunk\Ynglet\Temp/StagingArea/Data\Native\GameAssembly.dll” --cachedirectory=“C:\Nifflas\SVN\Ynglet\trunk\Ynglet\Assets..\Library/il2cpp_cache” --baselib-directory=“C:/Program Files/Unity/Hub/Editor/2020.1.0b8/Editor/Data/PlaybackEngines/WindowsStandaloneSupport\Variations\win64_nondevelopment_il2cpp” --avoid-dynamic-library-copy --incremental-g-c-time-slice=3 --profiler-report --map-file-parser=“C:/Program Files/Unity/Hub/Editor/2020.1.0b8/Editor/Data/Tools/MapFileParser/MapFileParser.exe” --directory=C:/Nifflas/SVN/Ynglet/trunk/Ynglet/Temp/StagingArea/Data/Managed --generatedcppdir=C:/Nifflas/SVN/Ynglet/trunk/Ynglet/Temp/StagingArea/Data/il2cppOutput

stdout:
Running il2cpp.exe in server GC mode.
Building GameAssembly.dll with MsvcDesktopToolChain
Msvc Install Version: 15.0
Msvc Install SDK Directory: C:\Program Files (x86)\Windows Kits\10
Msvc Linker Path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\bin\HostX64\x64\link.exe
Msvc Compiler Path: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\bin\HostX64\x64\cl.exe

Output directory: C:\Nifflas\SVN\Ynglet\trunk\Ynglet\Temp\StagingArea\Data\Native
Cache directory: C:\Nifflas\SVN\Ynglet\trunk\Ynglet\Library\il2cpp_cache
il2cpp.exe didn’t catch exception: Unity.IL2CPP.Building.BuilderFailedException: pch-c.c
C:\Program Files\Unity\Hub\Editor\2020.1.0b8\Editor\Data\il2cpp\libil2cpp\il2cpp-config.h(3): fatal error C1083: Cannot open include file: ‘string.h’: No such file or directory

Can you paste the full output? Did you recently change anything related to your Visual Studio or Windows SDK installation?

I removed Visual Studio 2017 (community) completely and installed Visual Studio 2019 (community). Only the absolute necessary components.

Same error as above by Nifflas in May.

I suspect there’s one component missing. “Windows Universal C-Runtime” or “Windows Universal CRT SDK” isn’t it.

“Windows Universal C-Runtime” is needed I believe. That should have gotten installed with the C++ workload, though.

2 Likes

C++ workload.

ARGH!! :frowning:

Well, of course. Who would forget to install the C++ workload? This would be foolish.

It’s working now. Thanks.

2 Likes

Exception: Failed running C:\Program Files\Unity\Hub\Editor\2020.3.11f1\2020.3.18f1\Editor\Data\il2cpp/build/BeeSettings/offline/bee.exe --no-colors --prebuiltbuildprogram=“C:\Program Files\Unity\Hub\Editor\2020.3.11f1\2020.3.18f1\Editor\Data\il2cpp/build/BeeSettings/offline/artifacts/buildprogram/buildprogram.exe”

stdout:
error: Method not found: ‘System.Collections.Generic.IEnumerable1<!!0> System.Linq.Enumerable.Append(System.Collections.Generic.IEnumerable1<!!0>, !!0)’. (System.MissingMethodException)
at Bee.Core.DynamicLoader.GetAllTypesInAssemblies
at Bee.Core.DynamicLoader.FindAndCreateInstanceOfEachInAllAssemblies
at Bee.StandaloneBeeDriver…cctor
at Bee.StandaloneBeeDriver.RealMain
at Bee.StandaloneBeeDriver.Main
stderr:

UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <5ad584e208e14caaa9e6b2e6027e9204>:0)
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action1[T] setupStartInfo) (at <5ad584e208e14caaa9e6b2e6027e9204>:0) UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List1[T] arguments, System.Action1[T] setupStartInfo) (at <5ad584e208e14caaa9e6b2e6027e9204>:0) UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data) (at <5ad584e208e14caaa9e6b2e6027e9204>:0) UnityEditorInternal.IL2CPPBuilder.Run () (at <5ad584e208e14caaa9e6b2e6027e9204>:0) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <5ad584e208e14caaa9e6b2e6027e9204>:0)
UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at :0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at :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 <5ad584e208e14caaa9e6b2e6027e9204>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

please help i am getting such error while building my project.

Exception: Failed running C:\Program Files\Unity\Hub\Editor\2020.3.11f1\2020.3.18f1\Editor\Data\il2cpp/build/BeeSettings/offline/bee.exe --no-colors --prebuiltbuildprogram=“C:\Program Files\Unity\Hub\Editor\2020.3.11f1\2020.3.18f1\Editor\Data\il2cpp/build/BeeSettings/offline/artifacts/buildprogram/buildprogram.exe”

stdout:
error: Method not found: ‘System.Collections.Generic.IEnumerable1<!!0> System.Linq.Enumerable.Append(System.Collections.Generic.IEnumerable1<!!0>, !!0)’. (System.MissingMethodException)
at Bee.Core.DynamicLoader.GetAllTypesInAssemblies
at Bee.Core.DynamicLoader.FindAndCreateInstanceOfEachInAllAssemblies
at Bee.StandaloneBeeDriver…cctor
at Bee.StandaloneBeeDriver.RealMain
at Bee.StandaloneBeeDriver.Main
stderr:

UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <5ad584e208e14caaa9e6b2e6027e9204>:0)
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action1[T] setupStartInfo) (at <5ad584e208e14caaa9e6b2e6027e9204>:0) UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List1[T] arguments, System.Action1[T] setupStartInfo) (at <5ad584e208e14caaa9e6b2e6027e9204>:0) UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data) (at <5ad584e208e14caaa9e6b2e6027e9204>:0) UnityEditorInternal.IL2CPPBuilder.Run () (at <5ad584e208e14caaa9e6b2e6027e9204>:0) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <5ad584e208e14caaa9e6b2e6027e9204>:0)
UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at :0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at :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 <5ad584e208e14caaa9e6b2e6027e9204>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

please help i am getting such error while building my project.

Exception: Failed running C:\Program Files\Unity\Hub\Editor\2020.3.11f1\2020.3.18f1\Editor\Data\il2cpp/build/BeeSettings/offline/bee.exe --no-colors --prebuiltbuildprogram=“C:\Program Files\Unity\Hub\Editor\2020.3.11f1\2020.3.18f1\Editor\Data\il2cpp/build/BeeSettings/offline/artifacts/buildprogram/buildprogram.exe”

stdout:
error: Method not found: ‘System.Collections.Generic.IEnumerable1<!!0> System.Linq.Enumerable.Append(System.Collections.Generic.IEnumerable1<!!0>, !!0)’. (System.MissingMethodException)
at Bee.Core.DynamicLoader.GetAllTypesInAssemblies
at Bee.Core.DynamicLoader.FindAndCreateInstanceOfEachInAllAssemblies
at Bee.StandaloneBeeDriver…cctor
at Bee.StandaloneBeeDriver.RealMain
at Bee.StandaloneBeeDriver.Main
stderr:

UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <5ad584e208e14caaa9e6b2e6027e9204>:0)
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action1[T] setupStartInfo) (at <5ad584e208e14caaa9e6b2e6027e9204>:0) UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List1[T] arguments, System.Action1[T] setupStartInfo) (at <5ad584e208e14caaa9e6b2e6027e9204>:0) UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data) (at <5ad584e208e14caaa9e6b2e6027e9204>:0) UnityEditorInternal.IL2CPPBuilder.Run () (at <5ad584e208e14caaa9e6b2e6027e9204>:0) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <5ad584e208e14caaa9e6b2e6027e9204>:0)
UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at :0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at :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 <5ad584e208e14caaa9e6b2e6027e9204>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Please try to only post your question once. It looks like the same post was made three times to this thread!

I believe this occurs because you may not have the latest .NET Framework version installed on this computer. Please download and install .NET Framework 4.8 from Microsoft.

1 Like

can some one help me to solve this.

Failed running C:\Program Files\Unity\Hub\Editor\2021.1.18f1\Editor\Data\il2cpp/build/BeeSettings/offline/bee.exe --no-colors --prebuiltbuildprogram=“C:\Program Files\Unity\Hub\Editor\2021.1.18f1\Editor\Data\il2cpp/build/BeeSettings/offline/artifacts/buildprogram/buildprogram.exe”

Can you please provide more details about the error message? There should be additional information in the Editor log file.

I have this error can someone Help me ?

Exception: Unity.IL2CPP.Building.BuilderFailedException: “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe” -E “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc” -o “C:\Unity Projects\Projets\JusooorProject\Library\il2cpp_cache\linkresult_085AD4DCAE916A4D0DDDD23C6DB6F98B\build.bc” -s TOTAL_MEMORY=384MB -s DISABLE_EXCEPTION_CATCHING=0 -s WASM=0 -O3 “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AccessibilityModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AIModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AndroidJNIModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AnimationModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AssetBundleModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AudioModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_ClothModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_CoreModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_CrashReportingModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_DirectorModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_DSPGraphModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_GameCenterModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_GIModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_GridModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_HotReloadModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_ImageConversionModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_IMGUIModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_InputLegacyModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_InputModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_JSONSerializeModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_LocalizationModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_ParticleSystemModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_PerformanceReportingModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_Physics2DModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_PhysicsModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_ProfilerModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_RuntimeInitializeOnLoadManagerInitializerModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_ScreenCaptureModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_SharedInternalsModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_SpriteMaskModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_SpriteShapeModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_StreamingModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_SubstanceModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_SubsystemsModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainPhysicsModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextCoreModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextRenderingModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TilemapModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TLSModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIElementsModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIElementsNativeModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UmbraModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UNETModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityAnalyticsModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityConnectModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityCurlModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityTestProtocolModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestAssetBundleModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestAudioModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestTextureModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestWWWModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_VehiclesModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_VFXModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_VideoModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_VRModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_WebGLModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_WindModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_XRModule_Dynamic.bc” “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\Variations\nondevelopment\baselib.bc” @“C:\Users\Home\AppData\Local\Temp_1931385627\response.rsp”

Wrote crash dump file “C:\Users\Home\AppData\Local\Temp\llvm-link.exe-5c7579.dmp”
0x00007FF9F7AB4F69 (0x00000D98876BC8F2 0x00000245985AA9E0 0x0000000000000008 0x00007FF9F7FD39CE), RaiseException() + 0x69 bytes(s)
0x00007FF9DF3B6480 (0x0000000000000000 0x0000000000200000 0x0000000004000000 0x0000000000200000), _CxxThrowException() + 0x90 bytes(s)
0x00007FF675B6EE87 (0x0000000004000000 0x0000000000100000 0x000000EA6B98F428 0x00000245ADD7B730)
0x00007FF675B6DF1D (0x000000EA6B98F428 0x0000024500000000 0x000000EA6B98F428 0x00000245AFE386B0)
0x00007FF675A764BB (0x000000EA6B98F428 0x000000EA6B98F390 0x00000245AD36B328 0x00000245B00CFF80)
0x00007FF675A2A8C4 (0x000000EA6B98F428 0x00000245E5A26DC0 0x00000245E5A26DC0 0x00000245B05DD450)
0x00007FF6759DF324 (0x0000000000180000 0x0000000000000000 0x00000245E5E560B8 0x00000245E5E560B8)
0x00007FF6759E1C07 (0x00000245E5F15C68 0x00000245E5F15C80 0x00000245E5E09770 0x00000245E5F132E8)
0x00007FF6759E1A83 (0x000000EA6B98F428 0x00000245E5E09770 0x00000245D5BC25E8 0x00000245E5E09718)
0x00007FF6759E289A (0x000000EA6B98F4E8 0x00000245D5BC25B0 0x00000245D5B90000 0x000000EA6B98F579)
0x00007FF6759DD8AA (0x000000EA6B98FB68 0x00007FF675995A04 0x000000EA6B98F6E0 0x0000000000000F29)
0x00007FF6759C4AEF (0x000000EA6B98F6E0 0x0000000000000001 0x00000245D5BC25B0 0x0000000300000000)
0x00007FF6759D3E13 (0x000000EA6B98FD08 0x000000EA6B98FAD0 0x000000EA6B98FD08 0x00000245D5BBE968)
0x00007FF6759C618B (0x00000245D5B9C290 0x00000245D5BC25B0 0x0000000000000002 0x000000EA6B98FCE0)
0x00007FF67598E180 (0x0000000000000000 0x0000000000000000 0x00007FF9F80C1248 0x00007FF9F80C07A8)
0x00007FF675B6E799 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FF9F9DE7034 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0x14 bytes(s)
0x00007FF9FA1A2651 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), RtlUserThreadStart() + 0x21 bytes(s)
Traceback (most recent call last):
File “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc.py”, line 3063, in
sys.exit(run())
File “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc.py”, line 1607, in run
shared.Building.link(linker_inputs, specified_target)
File “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\shared.py”, line 2114, in link
output = run_process([LLVM_LINK] + link_args + [‘-o’, target], stdout=PIPE).stdout
File “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\shared.py”, line 167, in run_process
return run_base(cmd, universal_newlines=universal_newlines, check=check, *args, **kw)
File “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\shared.py”, line 162, in run_base
result.check_returncode()
File “C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\shared.py”, line 148, in check_returncode
raise Py2CalledProcessError(returncode=self.returncode, cmd=self.args, output=self.stdout, stderr=self.stderr)
tools.shared.Py2CalledProcessError: Command ‘[‘C:/Program Files/Unity/Hub/Editor/2020.3.18f1/Unity/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\Emscripten_FastComp_Win\llvm-link.exe’, ‘@C:\Users\Home\AppData\Local\Temp\tmpbdibxn.response’, ‘-o’, ‘C:\Unity Projects\Projets\JusooorProject\Library\il2cpp_cache\linkresult_085AD4DCAE916A4D0DDDD23C6DB6F98B\build.bc’]’ returned non-zero exit status -529697949

at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet1 objectFiles, CppToolChainContext toolChainContext) at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics) at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions, ReadOnlyCollection1 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 <5ad584e208e14caaa9e6b2e6027e9204>:0)
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at

Here it looks like the linker in Emscripten is crashing. I’m not sure about the cause. If possible, maybe try a newer version of Unity, which might use a newer version of Emscripten that might not have this problem. But I’m not sure.

Someone please help. I am trying to build my app using Unity 2020.3.40f1 and MRTK2 using Visual Studio 2022 and I am getting the following error. I am not sure what I am missing here.

Severity Code Description Project File Line Suppression State
Error Unity.IL2CPP.Building.BuilderFailedException: Lump_libil2cpp_vm.cpp Il2CppOutputProject C:\Users\jimmanue\OneDrive - KLA Corporation\Desktop\Isaac\Unity Projects\MRtest3\Build\v2\Il2CppOutputProject\EXEC 1
Error C2039 ‘hash_compare’: is not a member of ‘stdext’ Il2CppOutputProject C:\Users\jimmanue\OneDrive - KLA Corporation\Desktop\Isaac\Unity Projects\MRtest3\Build\v2\Il2CppOutputProject\IL2CPP\libil2cpp\utils\Il2CppHashMap.h 71
Error C2065 ‘hash_compare’: undeclared identifier Il2CppOutputProject C:\Users\jimmanue\OneDrive - KLA Corporation\Desktop\Isaac\Unity Projects\MRtest3\Build\v2\Il2CppOutputProject\IL2CPP\libil2cpp\utils\Il2CppHashMap.h 71
Error C2275 ‘Key’: expected an expression instead of a type Il2CppOutputProject C:\Users\jimmanue\OneDrive - KLA Corporation\Desktop\Isaac\Unity Projects\MRtest3\Build\v2\Il2CppOutputProject\IL2CPP\libil2cpp\utils\Il2CppHashMap.h 71
Error C2976 ‘Il2CppReaderWriterLockedHashMap’: too few template arguments Il2CppOutputProject C:\Users\jimmanue\OneDrive - KLA Corporation\Desktop\Isaac\Unity Projects\MRtest3\Build\v2\Il2CppOutputProject\IL2CPP\libil2cpp\vm\MetadataCache.cpp 37
Error C2974 ‘Il2CppReaderWriterLockedHashMap’: invalid template argument for ‘HashFcn’, type expected Il2CppOutputProject C:\Users\jimmanue\OneDrive - KLA Corporation\Desktop\Isaac\Unity Projects\MRtest3\Build\v2\Il2CppOutputProject\IL2CPP\libil2cpp\vm\MetadataCache.cpp 37
Error C2662 ‘bool Il2CppReaderWriterLockedHashMap<Key,T,HashFcn,EqualKey,Alloc>::TryGet(const Il2CppHashMap<Key,T,HashFcn,EqualKey,Alloc>::key_type &,T *)’: cannot convert ‘this’ pointer from ‘PointerTypeMap’ to ‘Il2CppReaderWriterLockedHashMap<Key,T,HashFcn,EqualKey,Alloc> &’ Il2CppOutputProject C:\Users\jimmanue\OneDrive - KLA Corporation\Desktop\Isaac\Unity Projects\MRtest3\Build\v2\Il2CppOutputProject\IL2CPP\libil2cpp\vm\MetadataCache.cpp 378
Error C2662 ‘bool Il2CppReaderWriterLockedHashMap<Key,T,HashFcn,EqualKey,Alloc>::Add(const Il2CppHashMap<Key,T,HashFcn,EqualKey,Alloc>::key_type &,const T &)’: cannot convert ‘this’ pointer from ‘PointerTypeMap’ to ‘Il2CppReaderWriterLockedHashMap<Key,T,HashFcn,EqualKey,Alloc> &’ Il2CppOutputProject C:\Users\jimmanue\OneDrive - KLA Corporation\Desktop\Isaac\Unity Projects\MRtest3\Build\v2\Il2CppOutputProject\IL2CPP\libil2cpp\vm\MetadataCache.cpp 431
Error C2955 ‘Il2CppReaderWriterLockedHashMap’: use of class template requires template argument list Il2CppOutputProject C:\Users\jimmanue\OneDrive - KLA Corporation\Desktop\Isaac\Unity Projects\MRtest3\Build\v2\Il2CppOutputProject\IL2CPP\libil2cpp\vm\MetadataCache.cpp 1049
Error C2662 ‘Il2CppHashMap<Key,T,HashFcn,EqualKey,Alloc>::iterator Il2CppReaderWriterLockedHashMap<Key,T,HashFcn,EqualKey,Alloc>::UnlockedBegin(void)’: cannot convert ‘this’ pointer from ‘PointerTypeMap’ to ‘Il2CppReaderWriterLockedHashMap<Key,T,HashFcn,EqualKey,Alloc> &’ Il2CppOutputProject C:\Users\jimmanue\OneDrive - KLA Corporation\Desktop\Isaac\Unity Projects\MRtest3\Build\v2\Il2CppOutputProject\IL2CPP\libil2cpp\vm\MetadataCache.cpp 1049
Error C2662 ‘Il2CppHashMap<Key,T,HashFcn,EqualKey,Alloc>::iterator Il2CppReaderWriterLockedHashMap<Key,T,HashFcn,EqualKey,Alloc>::UnlockedEnd(void)’: cannot convert ‘this’ pointer from ‘PointerTypeMap’ to ‘Il2CppReaderWriterLockedHashMap<Key,T,HashFcn,EqualKey,Alloc> &’ Il2CppOutputProject C:\Users\jimmanue\OneDrive - KLA Corporation\Desktop\Isaac\Unity Projects\MRtest3\Build\v2\Il2CppOutputProject\IL2CPP\libil2cpp\vm\MetadataCache.cpp 1049
Error MSB3073 The command ““C:\Users\jimmanue\OneDrive - KLA Corporation\Desktop\Isaac\Unity Projects\MRtest3\Build\v2\Il2CppOutputProject\IL2CPP\build\deploy\netcoreapp3.1\il2cpp.exe” --libil2cpp-static --compile-cpp -architecture=ARM64 -configuration=Debug -platform=winrt -outputpath=“C:\Users\jimmanue\OneDrive - KLA Corporation\Desktop\Isaac\Unity Projects\MRtest3\Build\v2\build\bin\ARM64\Debug\GameAssembly.dll” --data-folder=“C:\Users\jimmanue\OneDrive - KLA Corporation\Desktop\Isaac\Unity Projects\MRtest3\Build\v2\build\bin\ARM64\Debug\” -cachedirectory=“C:\Users\jimmanue\OneDrive - KLA Corporation\Desktop\Isaac\Unity Projects\MRtest3\Build\v2\build\obj\il2cppOutputProject\ARM64\Debug\” -generatedcppdir=“C:\Users\jimmanue\OneDrive - KLA Corporation\Desktop\Isaac\Unity Projects\MRtest3\Build\v2\Il2CppOutputProject\Source” --incremental-g-c-time-slice=3 --baselib-directory=“C:\Program Files\Unity 2020.3.40f1\Editor\Data\PlaybackEngines\MetroSupport\Players\UAP\il2cpp\ARM64\Debug” --avoid-dynamic-library-copy --profiler-report --additional-defines=WINDOWS_UWP --additional-defines=UNITY_UWP --additional-defines=UNITY_WSA_10_0 --additional-defines=UNITY_WSA --additional-defines=UNITY_WINRT --additional-defines=PLATFORM_WINRT -dotnetprofile=unityaot -verbose --relative-data-path=Data/il2cpp_data --map-file-parser=“C:\Users\jimmanue\OneDrive - KLA Corporation\Desktop\Isaac\Unity Projects\MRtest3\Build\v2\Il2CppOutputProject\IL2CPP\MapFileParser\MapFileParser.exe” --compiler-flags=”-d2ssa-cfg-jt-“” exited with code 4. Il2CppOutputProject C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets 45
Error LNK1104 cannot open file ‘C:\Users\jimmanue\OneDrive - KLA Corporation\Desktop\Isaac\Unity Projects\MRtest3\Build\v2\build\bin\ARM64\Debug\GameAssembly.lib’ HLApp C:\Users\jimmanue\OneDrive - KLA Corporation\Desktop\Isaac\Unity Projects\MRtest3\Build\v2\HLApp\LINK 1

This is a problem with Unity and the latest version of Visual Studio. You can work around it by following the instructions in this thread: https://discussions.unity.com/t/898800 . Or you can grab the latest Unity version in the 2020.3 stream, which corrects this.

I am still getting this problem. I am using unity 2022.2.2f1. I have added the
MsvcStdextWorkaround.cs file as well. My error is given below. Its being a month i am not getting how to fix it.

C:\Program Files\Unity 2022.2.2f1\Editor\Data\il2cpp\build\deploy\il2cpp.exe --convert-to-cpp --generatedcppdir=C:/Users/HP 840 G1/Documents/Unity/test detective case/Library/Bee/artifacts/Android/il2cppOutput/cpp --enable-analytics --emit-null-checks --enable-array-bounds-check --dotnetprofile=unityaot-linux --profiler-report --profiler-output-file=C:/Users/HP 840 G1/Documents/Unity/test detective case/Library/Bee/artifacts/il2cpp_conv_5ezx.traceevents --print-command-line --data-folder=C:/Users/HP 840 G1/Documents/Unity/test detective case/Library/Bee/artifacts/Android/il2cppOutput/data
Error: il2cpp.InvalidCommandLineArgumentsException: One or more assemblies must be specified using either --directory or --assembly
at il2cpp.Conversion.ContextDataFactory.CreateConversionDataFromOptions(Il2CppCommandLineArguments il2CppCommandLineArguments)
at il2cpp.Conversion.ConversionDriver.Run(TinyProfiler2 tinyProfiler, Il2CppCommandLineArguments il2CppCommandLineArguments)
at il2cpp.Program.DoRun(TinyProfiler2 tinyProfiler, String[ ] args, RuntimePlatform platform, Il2CppCommandLineArguments il2CppCommandLineArguments, BuildingOptions buildingOptions, Boolean throwExceptions)

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Please update to the latest Unity 2022.2 version - this has been corrected, and should not longer require a work around.

Do you want me to download Unity 2022.2.18? This is the most recent version. As i am already using unity 2022.2.2

Yes, that version should fix this issue.

Okay thanks, a lot. I am installing it and will tell you. Thanks alot for the reply

1 Like