PC rtx4090 + i914900kf Crash When Building UE5.4 from Source

Hi,
i am trying to build unreal engine 5.4 from source, i followed the documentation step by step (from this link Downloading Unreal Engine Source Code | Unreal Engine 5.4 Documentation | Epic Developer Community).
When it is time to build UE5 (after downloading visual studio 2022, downloading ue5-release from github, running setup.bat, running generateprojectfiles.bat, i open ue5.sln in visual studio and right-click → build) it opens a command prompt window, starts to build, then says theres 6000+ things to compile which is normal, but between the 40th and the 80th element to compile my pc just completely freezes (sometimes it even just restarts without warning!!), and there is nothing i can do from there.

For info these are the specs of my pc (brand new):
Motherboard: ASUS Prime Z790-P WiFi Gaming
CPU: Intel® Core™ i9 14900KF
GPU: NVIDIA® GeForce RTX™ 4090
RAM: Corsair DOMINATOR 2x32Gb
SSD: 2 x M2 NVME 2To
Watercooling: NZXT Kraken RGB BLACK

Pc is not overclocked

At first when the pc freeze i thought i should just let it work for a while (maybe it was still building in background) but given the high end components of my pc i assumed this was not normal so the only thing i could do is force shutdown and restart…

Since then i did not manage to prevent my pc from freezing while building, i also already tried these options if you thought it could be a solution:

  • restart my pc
  • Update Windows and Visual Studio
  • re-download the source code
  • re-download visual studio
  • Rebuild the project (clean+build)
  • Limit the cpu power consumption in the BiOS (from unlimited to 500A)
  • Moving the source code in a different location
  • Stress test the cpu, gpu and ram → everything ok
  • Check overheating/Throttling → everything ok
  • Check the windows log file (empty)
  • Check the UnrealBuildTool log file: see end of message for complete log output

None of these options worked (after searching on forums, websites, asking chatgpt) so I come here to create this new post in hope that someone can save me from this never-lasting problem…
(I just bought the pc precisely for my UE5 project, building unreal from source is the very first thing i did come on man help)

Part of the Unreal Log.txt file in Engine\Program\UnrealBuildTool\ folder:
(some of it is in french, i put it here because there is a compilation error saying the build will fail…)

[32/6714] Compile [x64] SharedPCH.Slate.Cpp20.cpp
[33/6714] Compile [x64] Module.CoreUObject.1.cpp
[34/6714] Compile [x64] Module.Core.11.cpp
[35/6714] Compile [x64] Module.Core.10.cpp
C:\Users\Bosstala\Documents\UnrealEngine\Engine\Source\Runtime\Core\Public\Containers\Set.h(687) : fatal error C1001: Erreur interne du compilateur.
(fichier du compilateur 'D:\a\_work\1\s\src\vctools\Compiler\Utc\src\p2\main.c', ligne 234)
 Pour contourner ce problème, essayez de simplifier ou de changer le programme à proximité des emplacements listés ci-dessus.
Si possible, indiquez ici la procédure permettant de reproduire le problème : https://developercommunity.visualstudio.com 
Choisissez la commande Support technique du menu ? (Aide) de Visual C++, 
 ou ouvrez le fichier d'aide du Support technique pour plus d'informations
 **Compile [x64] Module.Core.10.cpp: Exited with error code -1073741819 (Access violation). The build will fail.**
 Compile [x64] Module.Core.10.cpp: WorkingDirectory C:\Users\Bosstala\Documents\UnrealEngine\Engine\Source
 Compile [x64] Module.Core.10.cpp: C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe @"..\Intermediate\Build\Win64\x64\UnrealEditor\Development\Core\Module.Core.10.cpp.obj.rsp"

And here is a screenshot of the output log just before it crashed (i did a screenshot because there was a fatal error)

Thanks in advance for those reading my message, hope you will have a better day than mine…

hi @Matala

Probably best to try the Repository that is used for LGPU 5.4.3. The README says it all.

UnrealEngine-5/README.md at lgpu542 · jimshalo10/UnrealEngine-5 (github.com)

Could it be due to the instability of 13 and 14 gen intel processors? Have you updated you motherboard bios and checked if there are microcode patches for your cpu?

Hi thanks for your answer! The readme explains everything to install it but what exactly is the LGPU version? Why do they say

Blockquote

Use of this repository is without warranty and no responsibilty for the use and any subsequent problems is accepted This is for research, development and training quality and not professional quality.

Blockquote
That’s a bit scary haha

Yes this can be due to the latest gen cpus, i will give it a try and tell you if it worked.

ALSO small mistake i did on my post.
For the context i have the binary version of unreal downloaded from the launcher and it works just fine with every big sample project, until this morning when while opening i had an “access denied when trying to read from adress 0xffffffff”, plus sometimes the iCue software (for managing the ram lights) can’t connect to the ram and i remembered that i did NOT stresstest my ram.

So I will try it now with MemTest86, they say i need a flash drive for boot, but i only have an external 4Tb ssd with 1Tb of data, can i use it instead? (i don’t think so but maybe??)