Cannot build Unreal 5.3

Hello everyone !

I have a strange bug in witch I cannot build the engine to Unreal 5.3.

The build generate multiple internal compiler error, and if I try to copy error text during the build windows end up either being stuck in a hard freez or with a BSOD.

These error append on multiple part of the code, and they ultimately stop the build from ever completing

I’ve been strugulling to find a solution the whole day, have uninstall and reinstalled visual studio 2022, updated my computed drivers, but I can’t find a solution.

1>[39/6129] Compile [x64] Module.Core.5.cpp
1>C:\UE_B\UnrealEngine\Engine\Source\Runtime\Core\Public\Containers\ContainerAllocationPolicies.h(746): fatal error C1001: Internal compiler error.
1>(compiler file 'D:\a\_work\1\s\src\vctools\Compiler\Utc\src\p2\main.c', line 225)
1> To work around this problem, try simplifying or changing the program near the locations listed above.
1>If possible please provide a repro here: https://developercommunity.visualstudio.com
1>Please choose the Technical Support command on the Visual C++
1> Help menu, or open the Technical Support help file for more information
1>  cl!DllGetObjHandler()+0x18d818
1>  cl!DllGetObjHandler()+0x18d818
1>  cl!DllGetObjHandler()+0x2047b7
1>  cl!DllGetObjHandler()+0x2045b2
1>  cl!DllGetObjHandler()+0x2023e7
1>  cl!DllGetObjHandler()+0x260d0
1>  cl!DllGetObjHandler()+0xa4836
1>  cl!DllGetObjHandler()+0x1cebf6
1>  cl!DllGetObjHandler()+0xa4ed6
1>  cl!DllGetObjHandler()+0x8ca8f
1>  cl!InvokeCompilerPassW()+0x7707b
1>  cl!recalloc()+0xa3
1>  cl!BaseThreadInitThunk()+0x1d
1>  cl!RtlUserThreadStart()+0x28
1>[40/6129] Compile [x64] Module.Core.1.cpp

The Windows Event Viewer also show multiple application errors with visual studio before the crash :

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Application Error" Guid="{a0e9b465-b939-57d7-b27d-95d8e925ff57}" /> 
  <EventID>1000</EventID> 
  <Version>0</Version> 
  <Level>2</Level> 
  <Task>100</Task> 
  <Opcode>0</Opcode> 
  <Keywords>0x8000000000000000</Keywords> 
  <TimeCreated SystemTime="2023-09-19T16:18:38.3002909Z" /> 
  <EventRecordID>1337158</EventRecordID> 
  <Correlation /> 
  <Execution ProcessID="51068" ThreadID="48676" /> 
  <Channel>Application</Channel> 
  <Computer>Desktop</Computer> 
  <Security UserID="S-1-5-21-1465223887-1484719654-1398297890-1001" /> 
  </System>
- <EventData>
  <Data Name="AppName">cl.exe</Data> 
  <Data Name="AppVersion">19.36.32541.0</Data> 
  <Data Name="AppTimeStamp">e930a0e8</Data> 
  <Data Name="ModuleName">c2.dll</Data> 
  <Data Name="ModuleVersion">19.36.32541.0</Data> 
  <Data Name="ModuleTimeStamp">943af638</Data> 
  <Data Name="ExceptionCode">c0000005</Data> 
  <Data Name="FaultingOffset">0000000000266990</Data> 
  <Data Name="ProcessId">0xd22c</Data> 
  <Data Name="ProcessCreationTime">0x1d9eb14e505641f</Data> 
  <Data Name="AppPath">C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\Hostx64\x64\cl.exe</Data> 
  <Data Name="ModulePath">C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.36.32532\bin\Hostx64\x64\c2.dll</Data> 
  <Data Name="IntegratorReportId">e8ce43b3-82f2-4305-a5cf-da5c2c901fba</Data> 
  <Data Name="PackageFullName" /> 
  <Data Name="PackageRelativeAppId" /> 
  </EventData>
  </Event>

If anyone has a guess, I’m at a loss for solutions short of reinstalling windows.

Hello,

I Have entirely reinstalled windows 11 pro, repull Unreal Engine, reinstalled visual studio, and the problem stay the exact same.

Before the “cl.exe” error reports, I have these report to on Windows Event Viewer

A corrected hardware error has occurred.

Reported by component: Processor Core
Error Source: Corrected Machine Check
Error Type: Translation Lookaside Buffer Error
Processor APIC ID: 32

The details view of this entry contains further information.

So I thought my CPU was dead but I ran stress test and nothing happened, I tried building other C++ libraries and I can’t find a thing (tho I failed to find something easily setup to build at the scale of UE).

I tried posting the problem on microsoft forum but they ask for a " CL.command.1.tlog" witch is in none of the place the doc said it must be :

folder in \Visual Studio *version*\Projects\*SolutionName*\*ProjectName*\*Configuration*\*ProjectName*.tlog\CL.command.1.tlog, 
User folder under \Source\Repos\*SolutionName*\*ProjectName*\*Configuration*\*ProjectName*.tlog\CL.command.1.tlog.

and a preprocessed repro witch would be a minimal, libraryless version of the faulty solution. How am I supposed to provide a minimal version of Unreal Engine ?

https://developercommunity.visualstudio.com/t/Fatal-error-C1001-with-lastest-version-o/10470191?viewtype=all

Hi, I am currently going through the same issue. Randomly have not been able to build my project due to Internal compiler errors pointing me to a file ‘main.c’ and the cl.exe. Any luck yet?

Sorry didn’t saw your answer at the time.

My issue was with my CPU, and multiple peoples with the same CPU had the same issue.

With a i9 13900k it sometime overheat on long build, and cause this crash as one of it’s cores just return false result and ultimately the build fail.

Only solution was to return the CPU to intel and get a new one, no issue with UE build anymore, for now…

If anyone have the same issue with this CPU, that was my findings.