C1001: Internal compiler error while building fresh Unreal Engine 5.2 from source

LarsTM 0 Reputation points
2023-05-12T22:10:38.3833333+00:00

I have tried building Unreal Engine 5.1.1 and 5.2.0 from source following Epic's instructions as closely as possible, but I get C1001: ICE every time, and for multiple files during build.

Furthermore, if I let the build process go on, it sometimes ends with BSOD and restart.

I have tried -Od as flag to disable optimizations, I have tried -d2saa-all- from an older support thread, and I have resorted to do a clean reinstall of Windows, completely wiping my C: drive and reinstalling everything completely from scratch, but I get the same result.

I have also tried VS 2019 Community, same result.

I have also removed and replaced (and switched positions in the two slots available) my 2 x 16GB DDR4 RAM cards, and I have run all 13 tests in Memtest86 on them, (single pass, no failures). Before you ask about RAM slots: There are only two RAM slots in total on my ITX motherboard.

MoBo: Asus ROG STRIX B550-I
CPU: AMD Ryzen 9 3900X 12-Core Processor @ 4.28 GHz
RAM: 32 GB (2 x 16 GB) G.Skill Trident Z Neo DDR4 3600Mhz

I have been trying every tip and suggestion I could search up for five days straight, so any help is appreciated before I give up entirely.


The compiler fails on multiple files in the UE5 source, but seemingly the bulk of errors are linked to 'D:\a\_work\1\s\src\vctools\Compiler\Utc\src\p2\main.c', line 224

Repro steps:

  1. Install VS Community 2022, including:
    1. .NET desktop development
    2. Desktop development with C++
    3. Universal Windows Platform development
    4. Game development with C++
    5. C++ profiling tools
    6. C++ AddressSanitizer
    7. Windows 10 SDK (10.0.18362 or Newer) <- I have installed 10.0.20348
    8. Unreal Engine installer
  2. Download UE5 source from https://github.com/EpicGames/UnrealEngine (requires signup)
    1. (put in short file path to avoid 'path name too long' errors)
  3. Run Setup.bat
  4. Run GenerateProjectFiles.bat
  5. Open UE5.sln in Visual Studio Community 2022
  6. Set solution config to Development Editor
  7. Set solution platform to Win64
  8. Right click UE target and Build/Rebuild

When I perform the above, I get multiple failures like the following (warnings, commands and errors only):

7>G:\UE_5.2.0\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs(2533,163,2533,196): warning CS8603: Possible null reference return.
8>------ Rebuild All started: Project: UE5, Configuration: Development_Editor x64 ------
8>Using bundled DotNet SDK version: 6.0.302
8>Running UnrealBuildTool: dotnet "....\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" -Target="UnrealEditor Win64 Development" -Target="ShaderCompileWorker Win64 Development -Quiet" -WaitMutex -FromMsBuild -Rebuild
8>Using Visual Studio 2022 14.35.32217 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215) and Windows 10.0.22000.0 SDK (C:\Program Files (x86)\Windows Kits\10).
8>Determining max actions to execute in parallel (12 physical cores, 24 logical cores)
8>  Executing up to 12 processes, one per physical core
8>  Requested 1.5 GB free memory per action, 16.28 GB available: limiting max parallel actions to 10
8>Building 6099 actions with 10 processes...
8>G:\UE_5.2.0\Engine\Source\Runtime\Core\Public\Containers\ArrayView.h(248): fatal error C1001: Internal compiler error.
8>(compiler file 'D:\awork\1\s\src\vctools\Compiler\Utc\src\p2\main.c', line 224)
8> To work around this problem, try simplifying or changing the program near the locations listed above.
8>If possible please provide a repro here: https://developercommunity.visualstudio.com
8>Please choose the Technical Support command on the Visual C++
8> Help menu, or open the Technical Support help file for more information
8>  cl!strnlen()+0x3c
8>  cl!strnlen()+0x3c
8>  cl!free_base()+0x2f1d
8>  cl!free_base()+0x1e21
8>  cl!free_base()+0x1353
8>  cl!wsetlocale()+0xbd0
8>  cl!_stdio_common_vsprintf_s()+0x7b
8>[157/6099] Link [x64] UnrealEditor-IrisCore.lib cancelled
8>D:\users\ispc\v1.18.0\ispc\src\main.cpp(404): FATAL error : Unhandled signal sent to process; terminating.
8>***
8>*** Please file a bug report at https://github.com/ispc/ispc/issues
8>*** (Including as much information as you can about how to reproduce this error).
8>*** You have apparently encountered a bug in the compiler that we'd like to fix!
8>***
8>[207/6099] Compile [x64] TechSoftBridge.cpp
8>[208/6099] Compile [x64] Module.MetasoundFrontend.cpp
8>G:\UE_5.2.0\Engine\Plugins\Runtime\Metasound\Source\MetasoundFrontend\Public\MetasoundArrayRandomNode.h(234): fatal error C1001: Internal compiler error.
8>(compiler file 'D:\awork\1\s\src\vctools\Compiler\Utc\src\p2\main.c', line 224)
8> To work around this problem, try simplifying or changing the program near the locations listed above.
8>If possible please provide a repro here: https://developercommunity.visualstudio.com
8>Please choose the Technical Support command on the Visual C++
8> Help menu, or open the Technical Support help file for more information
8>[209/6099] Link [x64] UnrealEditor-MetasoundFrontend.lib cancelled
8>G:\UE_5.2.0\Engine\Source\Runtime\Core\Public\Memory\SharedBuffer.h(739): fatal error C1001: Internal compiler error.
8>(compiler file 'D:\awork\1\s\src\vctools\Compiler\Utc\src\p2\main.c', line 224)
8> To work around this problem, try simplifying or changing the program near the locations listed above.
8>If possible please provide a repro here: https://developercommunity.visualstudio.com
8>Please choose the Technical Support command on the Visual C++
8> Help menu, or open the Technical Support help file for more information
8>[301/6099] Link [x64] UnrealEditor-DesktopPlatform.lib cancelled
8>[302/6099] Compile [x64] Module.GeometryCore.1_of_3.cpp
8>[303/6099] Compile [x64] Module.IoStoreUtilities.cpp
8>G:\UE_5.2.0\Engine\Source\Runtime\Core\Public\Containers\Array.h(202): fatal error C1001: Internal compiler error.
8>(compiler file 'D:\awork\1\s\src\vctools\Compiler\Utc\src\p2\main.c', line 224)
8> To work around this problem, try simplifying or changing the program near the locations listed above.
8>If possible please provide a repro here: https://developercommunity.visualstudio.com
8>Please choose the Technical Support command on the Visual C++
8> Help menu, or open the Technical Support help file for more information
8>[304/6099] Link [x64] UnrealEditor-IoStoreUtilities.lib cancelled
8>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\INCLUDE\xmemory(164): fatal error C1001: Internal compiler error.
8>(compiler file 'D:\awork\1\s\src\vctools\Compiler\Utc\src\p2\main.c', line 224)
8> To work around this problem, try simplifying or changing the program near the locations listed above.
8>If possible please provide a repro here: https://developercommunity.visualstudio.com
8>Please choose the Technical Support command on the Visual C++
8> Help menu, or open the Technical Support help file for more information
8>[656/6099] Link [x64] UnrealEditor-RigLogicLibTest.lib cancelled
8>G:\UE_5.2.0\Engine\Plugins\Experimental\NNI\Source\ThirdParty\ORT_4_1\Private\core\providers\cpu\ml\tree_ensemble_common.h(142): fatal error C1001: Internal compiler error.
8>(compiler file 'D:\awork\1\s\src\vctools\Compiler\Utc\src\p2\main.c', line 224)
8> To work around this problem, try simplifying or changing the program near the locations listed above.
8>If possible please provide a repro here: https://developercommunity.visualstudio.com
8>Please choose the Technical Support command on the Visual C++
8> Help menu, or open the Technical Support help file for more information

Manually cancelled build after 1000+ files:

Build has been canceled.
========== Elapsed 11:42 PM ==========
Developer technologies | C++
{count} votes

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.