# BUILD FAILED IN UNREAL 5.4

**URL:** <https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [April 5, 2024, 4:43pm UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560 "2024-04-05T16:43:07Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![PatrickDev1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PatrickDev1](https://forums.unrealengine.com/u/PatrickDev1)\
**Post date:** [April 5, 2024, 4:43pm UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/1 "2024-04-05T16:43:08Z")

</div>

Hello I tried to compile a project in unreal 5.4 preview but I get this error and no and it fails in build compilation  
Output Log:  
Running AutomationTool…  
Using bundled DotNet SDK version: 6.0.302  
Starting AutomationTool…  
Parsing command line: -ScriptsForProject=“E:/Unreal Engine 5/My Proyects/PTU/PTU.uproject” BuildCookRun -project=“E:/Unreal Engine 5/My Proyects/PTU/PTU.uproject” -noP4 -clientconfig=Development -serverconfig=Development -nocompile -nocompileeditor -installed -unrealexe=“C:\Program Files\Epic Games\UE\_5.4\Engine\Binaries\Win64\UnrealEditor-Cmd.exe” -utf8output -platform=Win64 -build -cookonthefly -ddc=InstalledDerivedDataBackendGraph -stage -deploy -cmdline=" -Messaging" -device=Windows@PATRICIORAMOS -addcmdline="-SessionId=75ED81C54905A783DE050C9973F72C7A -SessionOwner=‘ramos’ -SessionName=‘PATRICIORAMOS’ " -run  
Initializing script modules…  
Total script module initialization time: 0.33 s.  
Using C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe  
Executing commands…  
Setting up ProjectParams for E:\Unreal Engine 5\My Proyects\PTU\PTU.uproject  
\*\*\*\*\*\*\*\*\*\* BUILD COMMAND STARTED \*\*\*\*\*\*\*\*\*\*  
Running: C:\Program Files\Epic Games\UE\_5.4\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe “C:\Program Files\Epic Games\UE\_5.4\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” PTU Win64 Development -Project=“E:\Unreal Engine 5\My Proyects\PTU\PTU.uproject” -Manifest=“E:\Unreal Engine 5\My Proyects\PTU\Intermediate\Build\Manifest.xml” -remoteini=“E:\Unreal Engine 5\My Proyects\PTU” -skipdeploy -log=“C:\Users\ramos\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE\_5.4\UBT-PTU-Win64-Development.txt”  
Log file: C:\Users\ramos\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE\_5.4\UBT-PTU-Win64-Development.txt  
Using ‘git status’ to determine working set for adaptive non-unity build (E:\Unreal Engine 5\My Proyects\PTU).  
Creating makefile for PTU (.uproject file is newer)  
Available x64 toolchains (1):

- C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519  
(Family=14.39.33519, FamilyRank=5, Version=14.39.33523, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)  
Visual Studio 2022 compiler version 14.39.33523 is not a preferred version. Please use the latest preferred version 14.38.33130  
Available x64 toolchains (1):
- C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519  
(Family=14.39.33519, FamilyRank=5, Version=14.39.33523, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)  
Visual Studio 2022 compiler version 14.39.33523 is not a preferred version. Please use the latest preferred version 14.38.33130  
Warning: [Upgrade]  
Warning: [Upgrade] Using backward-compatible build settings. The latest version of UE sets the following values by default, which may require code changes:  
Warning: [Upgrade] CppStandard = CppStandardVersion.Default =\> Updates C++ Standard to C++20 (Previously: CppStandardVersion.Cpp17).  
Warning: [Upgrade] WindowsPlatform.bStrictConformanceMode = true =\> Updates MSVC strict conformance mode to true (Previously: false).  
Warning: [Upgrade] bValidateFormatStrings = true =\> Enables compile-time validation of strings+args passed to UE\_LOG. (Previously: false).  
Warning: [Upgrade] Suppress this message by setting ‘DefaultBuildSettings = BuildSettingsVersion.V5;’ in PTU.Target.cs, and explicitly overriding settings that differ from the new defaults.  
Warning: [Upgrade]  
Total execution time: 4.56 seconds  
PTU modifies the values of properties: [bStrictConformanceMode]. This is not allowed, as PTU has build products in common with UnrealGame.  
Remove the modified setting, change PTU to use a unique build environment by setting ‘BuildEnvironment = TargetBuildEnvironment.Unique;’ in the PTUTarget constructor, or set bOverrideBuildEnvironment = true to force this setting on.  
Took 4.83s to run dotnet.exe, ExitCode=6  
UnrealBuildTool failed. See log for more details. (c)  
AutomationTool executed for 0h 0m 9s  
AutomationTool exiting with ExitCode=6 (6)  
BUILD FAILED

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [April 5, 2024, 5:00pm UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/2 "2024-04-05T17:00:25Z")

</div>

> [@PatrickDev1](#):
>
> Visual Studio 2022 compiler version 14.39.33523 is not a preferred version

Hey @PatrickDev1!

As it says here, the issue is your Visual Studio installation. You will need to install the version listed 14.38.33130 and set that as default in order to build!

This is just something that the preview versions are somewhat stuck with- it’s just that, a preview. We do not recommend people build projects with a preview as it will have many bugs that the full release will not. 🙂

---

<div class="post-metadata">

**Author:** ![Cyberglobe](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cyberglobe/32/465451_2.png) [@Cyberglobe](https://forums.unrealengine.com/u/Cyberglobe)\
**Post date:** [April 29, 2024, 11:00am UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/3 "2024-04-29T11:00:13Z")

</div>

I am facing the same problem trying to bring a 5.3 project to 5.4 even with the official 5.4.0 release.  
Any hint on how to solve this?

---

<div class="post-metadata">

**Author:** ![GreenClover](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/greenclover/32/980148_2.png) [@GreenClover](https://forums.unrealengine.com/u/GreenClover)\
**Post date:** [April 30, 2024, 10:19am UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/4 "2024-04-30T10:19:27Z")

</div>

Same problem here. My MSVC seems to be too new (just using the latest VS version, and official UE5.4) 😕

Which is weird now that I think about it, because 5.3 worked perfectly fine on that version.

---

<div class="post-metadata">

**Author:** ![iD.P](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/id.p/32/1118041_2.png) [@iD.P](https://forums.unrealengine.com/u/iD.P)\
**Post date:** [April 30, 2024, 3:06pm UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/5 "2024-04-30T15:06:13Z")

</div>

Make sure In Project.Target.cs and ProjectEditor.Target.cs  
version is set to V5  
`DefaultBuildSettings = BuildSettingsVersion.V5;`

That should fix the problem 🙂

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [May 1, 2024, 5:27pm UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/6 "2024-05-01T17:27:08Z")

</div>

@PatrickDev1 @Cyberglobe @GreenClover

Did any of you try Fiinka’s solution? How’d it go for you all?

---

<div class="post-metadata">

**Author:** ![GreenClover](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/greenclover/32/980148_2.png) [@GreenClover](https://forums.unrealengine.com/u/GreenClover)\
**Post date:** [May 1, 2024, 7:24pm UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/7 "2024-05-01T19:24:05Z")

</div>

Didn’t work unfortunately. I do get a more helpful error either because of this change or because I’ve upgraded to 5.4.1:  
“UnrealBuildTool has banned the MSVC 14.39.33519-14.39.99999 toolchains due to compiler issues.”  
which lead me to this post:

> [@Failure to create a new project: "cannot access private member declared in class 'FHazardPointerCollection::FHazardRecord'"](https://forums.unrealengine.com/t/failure-to-create-a-new-project-cannot-access-private-member-declared-in-class-fhazardpointercollection-fhazardrecord/1548295):
>
> Hi, I’ve never worked with UE before, just installed UE 5.3.2. Trying to create a new project, I select “Games” - “First person”, then I select C++/Desktop/Scalable quality. I also ticked “Starter content”, and no raytracing. Now click “Create” - it works for a while and throws this compilation error. Any advice?

and this VS issue:  
[https://developercommunity.visualstudio.com/t/VS-2022-1790-Preview-10-\_\_builtin\_arr/10519788](https://developercommunity.visualstudio.com/t/VS-2022-1790-Preview-10-__builtin_arr/10519788)

Seems like this problem has already started occurring in UE 5.3.2 but since we are upgrading from 5.3.1 to 5.4 (and 5.4.1) we’ve only noticed it now. The Visual Studio fix is allegedly present in the 17.10 preview version, but installing the 14.38 toolchain (by using the Visual Studio installer [Modify Visual Studio workloads, components, & language packs | Microsoft Learn](https://learn.microsoft.com/en-us/visualstudio/install/modify-visual-studio?view=vs-2022)) also “fixes” the issue.

---

<div class="post-metadata">

**Author:** ![BlackDemon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlackDemon](https://forums.unrealengine.com/u/BlackDemon)\
**Post date:** [May 2, 2024, 7:20pm UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/8 "2024-05-02T19:20:43Z")

</div>

Installing the 14.38 build tools from the VS installer and changing the default build settings to V5 (as explained by Fiinka, in my case I had it set to V2) worked for me, but I got to do both, or the project would not build.

Btw, oddly I didn’t have this problem when converting 2 other projects (all the projects were in UE 5.3.2 and converted to 5.4), these just converted and built normally before and after installing the 14.38 build tools. They also had their default build settings set to V4, which I didn’t change.

---

<div class="post-metadata">

**Author:** ![KryogenicGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kryogenicgames/32/1201049_2.png) [@KryogenicGames](https://forums.unrealengine.com/u/KryogenicGames)\
**Post date:** [May 2, 2024, 7:31pm UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/9 "2024-05-02T19:31:51Z")

</div>

> [@PatrickDev1](#):
>
> Remove the modified setting, change PTU to use a unique build environment by setting ‘BuildEnvironment = TargetBuildEnvironment.Unique;’

whats PTU? did you look into it? if its a plugin try to disable just to test if it continues with build.

---

<div class="post-metadata">

**Author:** ![pdenton](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pdenton/32/911626_2.png) [@pdenton](https://forums.unrealengine.com/u/pdenton)\
**Post date:** [May 16, 2024, 8:59pm UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/10 "2024-05-16T20:59:32Z")

</div>

Hi, for me adding

`bOverrideBuildEnvironment = true;`

to both Project.Target.cs and ProjectEditor.Target.cs fixed the issue in 5.4.

---

<div class="post-metadata">

**Author:** ![RafigRzayev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RafigRzayev](https://forums.unrealengine.com/u/RafigRzayev)\
**Post date:** [May 19, 2024, 6:34pm UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/11 "2024-05-19T18:34:37Z")

</div>

I compared my project (upgrade from UE5.1) and new C++ projejct based on UE5.4. Checked for differences in ProjName.Target.cs and ProjNameEditor.Target.cs.

The only difference seems to be DefaultBuildSettings = BuildSettingsVersion.V5;

(mine used to be V2)

It fixes error for me too.

---

<div class="post-metadata">

**Author:** ![CStamper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CStamper](https://forums.unrealengine.com/u/CStamper)\
**Post date:** [May 19, 2024, 10:49pm UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/12 "2024-05-19T22:49:45Z")

</div>

![Screenshot 2024-05-19 154708](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/0/2/f02dcdb0b7f93af38b8a0eb6f0585d860ac6f59f.png)  
Yeah, I encountered this issue upgrading my custom version of the engine from 5.3 to 4.3.1, and resolved it by:

1. Uninstalling visual Studio Community 2022 17.9
2. Installing visual studio community 2022 17.10 preview
3. Checking “Desktop development with c++”
4. Checking boxes on the right relevant to “v143 build tools”

---

<div class="post-metadata">

**Author:** ![BreakMaker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/breakmaker/32/971651_2.png) [@BreakMaker](https://forums.unrealengine.com/u/BreakMaker)\
**Post date:** [June 26, 2024, 7:31pm UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/13 "2024-06-26T19:31:08Z")

</div>

> [@pdenton](#):
>
> bOverrideBuildEnvironment = true;

I second that.

---

<div class="post-metadata">

**Author:** ![Plopts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Plopts](https://forums.unrealengine.com/u/Plopts)\
**Post date:** [July 7, 2024, 2:54pm UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/14 "2024-07-07T14:54:00Z")

</div>

this worked for me too, I have the same problem upgrading a project from 5.2.

thank you

---

<div class="post-metadata">

**Author:** ![miliv](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@miliv](https://forums.unrealengine.com/u/miliv)\
**Post date:** [July 20, 2024, 11:05am UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/15 "2024-07-20T11:05:46Z")

</div>

Thanks for this, fixed issue in 5.4

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [July 23, 2024, 8:07pm UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/16 "2024-07-23T20:07:26Z")

</div>

Hey @PatrickDev1! Did you ever find a solution? Did any of these work for you?

Let us know! 🙂

---

<div class="post-metadata">

**Author:** ![RomaShatov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RomaShatov](https://forums.unrealengine.com/u/RomaShatov)\
**Post date:** [July 25, 2024, 2:19pm UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/17 "2024-07-25T14:19:57Z")

</div>

Ok, here what solved the issue for me // 5.4.3 UE Version

 ![UE_Issue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/5/47536ede37a141b7f0bda3601b6eae8a2390755b.png)

---

<div class="post-metadata">

**Author:** ![Acelordknows](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Acelordknows](https://forums.unrealengine.com/u/Acelordknows)\
**Post date:** [August 21, 2024, 12:56am UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/18 "2024-08-21T00:56:36Z")

</div>

Did you uninstall the latest versions?

---

<div class="post-metadata">

**Author:** ![ghazou76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ghazou76](https://forums.unrealengine.com/u/ghazou76)\
**Post date:** [August 25, 2024, 11:32pm UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/19 "2024-08-25T23:32:54Z")

</div>

where can i find this image you posted ?

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [August 26, 2024, 9:15pm UTC](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560/20 "2024-08-26T21:15:59Z")

</div>

@ghazou76 Welcome to the forums!

That is the Microsoft Visual Studio Installer. 🙂

You can find it on Google instantly, or if you do a search in your start menu (Windows only) you may find it through there even quicker!

When you start it you can click Modify to modify your installation:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/4/694568d99a99aec707db54c6845a5ae510f26235.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/f/9ff0f1abf1398cd33204ca83f5d30de4c6d866f3.png)

[Next page](https://forums.unrealengine.com/t/build-failed-in-unreal-5-4/1789560.md?page=2)
