# Can't compile 5.4 Projects anymore, I need help.

**URL:** <https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002>\
**Category:** C++\
**Tags:** c-c, c-class-wizard, c-and-bluepri, c-custommeshcomponen, c-and-blueprint, c-error, c-class, c-custom-shape, c-programming, c-cone-shape, unreal-engine, editor, question, CPP\
**Created:** [November 20, 2024, 4:30pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002 "2024-11-20T16:30:15Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![User-e5b4b308d8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@User-e5b4b308d8](https://forums.unrealengine.com/u/User-e5b4b308d8)\
**Post date:** [March 5, 2025, 7:15am UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/21 "2025-03-05T07:15:08Z")

</div>

For anyone, who still hasn’t solved the issue:  
The only thing that helped me was to install 17.10 LTSC Professional Visual Studio version instead of latest 2022 Comunity version 17.13 with all the same components I installed before.  
[Visual Studio 2022 Release History | Microsoft Learn](https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-history#release-dates-and-build-numbers).

---

<div class="post-metadata">

**Author:** ![GreatElderOne](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GreatElderOne](https://forums.unrealengine.com/u/GreatElderOne)\
**Post date:** [March 9, 2025, 7:43pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/22 "2025-03-09T19:43:36Z")

</div>

It was very helpful for me! Thank you!

---

<div class="post-metadata">

**Author:** ![TheGangRobin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thegangrobin/32/1036420_2.png) [@TheGangRobin](https://forums.unrealengine.com/u/TheGangRobin)\
**Post date:** [March 14, 2025, 8:38am UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/23 "2025-03-14T08:38:21Z")

</div>

**DON’T DO THIS, FOLLOW THE INSTRUCTIONS IN MY NEXT POST BELOW INSTEAD.**

We just ran into this issue for a build machine that runs multiple versions of UE, so we could not update the shared build xml - this issue has been fixed in 5.5 so we patched the old engines.

**What we did was to open up:**

`\Unreal Engine\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h`

Replaced this chunk:

```auto
#if PLATFORM_HAS_ASAN_INCLUDE
#include <sanitizer/asan_interface.h>
#if defined( __SANITIZE_ADDRESS__ )
#define IS_ASAN_ENABLED 1
#elif __has_feature(address_sanitizer)
#define IS_ASAN_ENABLED 1
#else
#define IS_ASAN_ENABLED 0
#endif
#else
#define ASAN_POISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size))
#define ASAN_UNPOISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size))
#define IS_ASAN_ENABLED 0
#endif

```

With this from UE 5.5:

```auto
#if PLATFORM_HAS_ASAN_INCLUDE
#include <sanitizer/asan_interface.h>
#if defined( __SANITIZE_ADDRESS__ )
#define IS_ASAN_ENABLED 1
#elif defined(__has_feature)
#if __has_feature(address_sanitizer)
#define IS_ASAN_ENABLED 1
#else
#define IS_ASAN_ENABLED 0
#endif
#else
#define IS_ASAN_ENABLED 0
#endif
#else
#define ASAN_POISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size))
#define ASAN_UNPOISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size))
#define IS_ASAN_ENABLED 0
#endif

```

The key difference is that it checks `defined(__has_feature)`

---

<div class="post-metadata">

**Author:** ![TheGangRobin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thegangrobin/32/1036420_2.png) [@TheGangRobin](https://forums.unrealengine.com/u/TheGangRobin)\
**Post date:** [March 14, 2025, 10:28am UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/24 "2025-03-14T10:28:23Z")

</div>

OK - It took 2 hours and then we ran into additional issues with compiling using newer build tools.

**We found a better solution:**

1. Modify Visual Studio 2022
2. Go to Individual Components
3. Add `MSVC v143 - VS 2022 C++ x64/x86 build tools (v14.36-17.6)` (we used to have this one installed, but it got uninstalled when VS 2022 updated)
4. Add an environment variable named `VCToolsVersion` with the value `14.36.32532` on the machine doing the builds

This will make the compiler use the correct tool chain.

This solution was good for us since we could specify the env variable on the Team City builds that compiled UE 5.3 and 5.2 projects.

You can check what versions of the tools you have installed by opening up the folder in Windows explorer and see what folders you have: `C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\`

---

<div class="post-metadata">

**Author:** ![rafamirandavr2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rafamirandavr2](https://forums.unrealengine.com/u/rafamirandavr2)\
**Post date:** [March 20, 2025, 9:22pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/25 "2025-03-20T21:22:59Z")

</div>

Thank you very much, my friend. I’ve been struggling for 2 days to fix this error. It only worked after I saw your post. It solved it right away.

Congratulations on the spot-on tip!

---

<div class="post-metadata">

**Author:** ![LONEWOLF\_004](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LONEWOLF\_004](https://forums.unrealengine.com/u/LONEWOLF_004)\
**Post date:** [March 22, 2025, 1:58pm UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/26 "2025-03-22T13:58:25Z")

</div>

Thank you so much 😭 i’ve been struggling days to know why this happens till today…

---

<div class="post-metadata">

**Author:** ![TheGangRobin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thegangrobin/32/1036420_2.png) [@TheGangRobin](https://forums.unrealengine.com/u/TheGangRobin)\
**Post date:** [March 25, 2025, 9:29am UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/27 "2025-03-25T09:29:06Z")

</div>

Another post figured out a nice way of setting the compiler version in the BaseEngine.ini, that was very useful for me who need to switch between Unreal Engine versions a lot:

> [@How to Specify Unreal Engine Source/Project Compiler Toolchain and SDK](https://forums.unrealengine.com/t/how-to-specify-unreal-engine-source-project-compiler-toolchain-and-sdk/1904818/3):
>
> Thank you very much @rohitsutreja this was exactly what I needed! I package a plugin for multiple versions of UE (from 4.27 to 5.5) and setting the toolchain version in the BuildConfiguration.xml was causing issues: The ones located in the AppData and in the user’s Documents are shared by all engine versions. I tried to add one in the Engine/Saved/UnrealBuildTool but it doesn’t seem to work (maybe this one is used only when building the engine from source?) I package the plugin from command l…

That way it does not become a global setting on the machine.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [April 24, 2025, 9:29am UTC](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002/28 "2025-04-24T09:29:13Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

[Previous page](https://forums.unrealengine.com/t/cant-compile-5-4-projects-anymore-i-need-help/2138002.md?page=1)
