# Visual studio compiler issue while packaging

**URL:** <https://forums.unrealengine.com/t/visual-studio-compiler-issue-while-packaging/2316398>\
**Category:** UDK Projects\
**Tags:** unreal-engine\
**Created:** [February 3, 2025, 7:07pm UTC](https://forums.unrealengine.com/t/visual-studio-compiler-issue-while-packaging/2316398 "2025-02-03T19:07:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thressnoriynne](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thressnoriynne](https://forums.unrealengine.com/u/Thressnoriynne)\
**Post date:** [February 3, 2025, 7:07pm UTC](https://forums.unrealengine.com/t/visual-studio-compiler-issue-while-packaging/2316398/1 "2025-02-03T19:07:48Z")

</div>

Hello! I tried to package my project and it failed. It said this:

UATHelper: Packaging (Windows): Log file: C:\Users\jtw26\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE\_5.4\UBA-Fight\_game-Win64-Shipping.txt  
UATHelper: Packaging (Windows): Cleaning Fight\_game binaries…  
UATHelper: Packaging (Windows): Available x64 toolchains (1):  
UATHelper: Packaging (Windows): \* C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433  
UATHelper: Packaging (Windows): (Family=14.42.34433, FamilyRank=5, Version=14.42.34436, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)  
UATHelper: Packaging (Windows): Visual Studio 2022 compiler version 14.42.34436 is not a preferred version. Please use the latest preferred version 14.38.33130  
UATHelper: Packaging (Windows): Took 1.21s to run dotnet.exe, ExitCode=0  
UATHelper: Packaging (Windows): 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” Fight\_game Win64 Shipping -Project=C:\Unreal\Projects\Fight\_game\Fight\_game.uproject -Manifest=C:\Unreal\Projects\Fight\_game\Intermediate\Build\Manifest.xml -remoteini=“C:\Unreal\Projects\Fight\_game” -skipdeploy -log=“C:\Users\jtw26\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE\_5.4\UBA-Fight\_game-Win64-Shipping\_2.txt”  
UATHelper: Packaging (Windows): Log file: C:\Users\jtw26\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE\_5.4\UBA-Fight\_game-Win64-Shipping\_2.txt  
UATHelper: Packaging (Windows): Creating makefile for Fight\_game (no existing makefile)  
UATHelper: Packaging (Windows): Available x64 toolchains (1):  
UATHelper: Packaging (Windows): \* C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433  
UATHelper: Packaging (Windows): (Family=14.42.34433, FamilyRank=5, Version=14.42.34436, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)  
UATHelper: Packaging (Windows): Visual Studio 2022 compiler version 14.42.34436 is not a preferred version. Please use the latest preferred version 14.38.33130  
UATHelper: Packaging (Windows): Available x64 toolchains (1):  
UATHelper: Packaging (Windows): \* C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433  
UATHelper: Packaging (Windows): (Family=14.42.34433, FamilyRank=5, Version=14.42.34436, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)  
UATHelper: Packaging (Windows): Visual Studio 2022 compiler version 14.42.34436 is not a preferred version. Please use the latest preferred version 14.38.33130  
UATHelper: Packaging (Windows): Writing manifest to C:\Unreal\Projects\Fight\_game\Intermediate\Build\Manifest.xml  
UATHelper: Packaging (Windows): Building Fight\_game…  
UATHelper: Packaging (Windows): Using Visual Studio 2022 14.42.34436 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433) and Windows 10.0.26100.0 SDK (C:\Program Files (x86)\Windows Kits\10).  
UATHelper: Packaging (Windows): Warning: Visual Studio 2022 compiler is not a preferred version  
UATHelper: Packaging (Windows): [Adaptive Build] Excluded from Fight\_game unity file: Fight\_game.cpp  
PackagingResults: Warning: Visual Studio 2022 compiler is not a preferred version  
UATHelper: Packaging (Windows): Determining max actions to execute in parallel (6 physical cores, 12 logical cores)  
UATHelper: Packaging (Windows): Executing up to 6 processes, one per physical core  
UATHelper: Packaging (Windows): Requested 1.5 GB memory per action, 5.73 GB available: limiting max parallel actions to 3  
UATHelper: Packaging (Windows): Using Parallel executor to run 5 action(s)  
UATHelper: Packaging (Windows): ------ Building 5 action(s) started ------  
UATHelper: Packaging (Windows): [1/5] Resource Default.rc2  
UATHelper: Packaging (Windows): [2/5] Compile [x64] SharedPCH.Core.Project.ValApi.Cpp20.cpp  
UATHelper: Packaging (Windows): C:\Program Files\Epic Games\UE\_5.4\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4668: ‘\_\_has\_feature’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’  
UATHelper: Packaging (Windows): C:\Program Files\Epic Games\UE\_5.4\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4067: unexpected tokens following preprocessor directive - expected a newline  
UATHelper: Packaging (Windows): Total time in Parallel executor: 3.84 seconds  
UATHelper: Packaging (Windows): Total execution time: 7.34 seconds  
UATHelper: Packaging (Windows): Took 7.63s to run dotnet.exe, ExitCode=6  
UATHelper: Packaging (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\jtw26\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE\_5.4\UBA-Fight\_game-Win64-Shipping\_2.txt)  
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 11s  
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=6 (6)  
UATHelper: Packaging (Windows): BUILD FAILED  
PackagingResults: Error: Unknown Error

I installed the preffered compiler, and it still gave me the same warning message. My project is blueprint based,

---

<div class="post-metadata">

**Author:** ![Sanki217](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sanki217](https://forums.unrealengine.com/u/Sanki217)\
**Post date:** [February 4, 2025, 2:38am UTC](https://forums.unrealengine.com/t/visual-studio-compiler-issue-while-packaging/2316398/2 "2025-02-04T02:38:29Z")

</div>

Hi, I believe the issue might be related to the following line: “_UATHelper: Packaging (Windows): Visual Studio 2022 compiler version 14.42.34436 is not a preferred version. Please use the latest preferred version 14.38.33130_”

Try changing this version in the modify tab of VS Installer. Type 14.42 in search, uncheck, and then type 14.38, checking the same installed modules. I do might have more modules installed, however i was struggling with this packaging issue myself and tried a lot of things 😃

 ![2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/5/79509701a064c4c2a866457f0f66dea9bc7448cb.png)

For me it solved the problem, however I’ve had some new ones that needed adressing

---

<div class="post-metadata">

**Author:** ![Thressnoriynne](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thressnoriynne](https://forums.unrealengine.com/u/Thressnoriynne)\
**Post date:** [February 4, 2025, 7:59pm UTC](https://forums.unrealengine.com/t/visual-studio-compiler-issue-while-packaging/2316398/3 "2025-02-04T19:59:49Z")

</div>

It worked for me! Thanks a million!

---

<div class="post-metadata">

**Author:** ![razmaz51](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/razmaz51/32/710746_2.png) [@razmaz51](https://forums.unrealengine.com/u/razmaz51)\
**Post date:** [February 9, 2025, 4:31pm UTC](https://forums.unrealengine.com/t/visual-studio-compiler-issue-while-packaging/2316398/4 "2025-02-09T16:31:20Z")

</div>

Yep , worked for me too , Thanks , All that other possible solutions i saw and tried , led to more issues and didn’t do it. All was needed was this.
