My unreal project Wont package due to the Landmass Plugin

I have tried the methods that apparently worked for other and in my tessing narrowed the cause of the packaging faliure is linked to the Landmass plugin built into unreal engine, normaly if this were the case i would just un tick the plugin and find another way but sadly its vital to my project.

LogUObjectHash: Compacting FUObjectHashTables data took 0.69ms
LogTurnkeySupport: Project requires temp target (Landmass plugin is enabled)
LogLauncherProfile: Unable to use promoted target - ../../../../../../../Dev work/temp-test/unreal/Temp_test/Binaries/Win64/UnrealGame.target does not exist.
LogMonitoredProcess: Running Serialized UAT: [ cmd.exe /c ““D:/software/epic/unreal/UE_5.4/Engine/Build/BatchFiles/RunUAT.bat” -ScriptsForProject=“D:/Dev work/temp-test/unreal/Temp_test/Temp_test.uproject” Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=57609 -project=“D:/Dev work/temp-test/unreal/Temp_test/Temp_test.uproject” BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project=“D:/Dev work/temp-test/unreal/Temp_test/Temp_test.uproject” -unrealexe=“D:\software\epic\unreal\UE_5.4\Engine\Binaries\Win64\UnrealEditor-Cmd.exe” -plat
form=Win64 -SkipCookingEditorContent -installed -stage -archive -package -build -pak -iostore -compressed -prereqs -archivedirectory=“D:/Dev work/package” -clientconfig=Development” -nocompile -nocompileuat ]
UATHelper: Packaging (Windows): Running AutomationTool…
UATHelper: Packaging (Windows): Using bundled DotNet SDK version: 6.0.302
UATHelper: Packaging (Windows): Starting AutomationTool…
UATHelper: Packaging (Windows): Parsing command line: -ScriptsForProject=“D:/Dev work/temp-test/unreal/Temp_test/Temp_test.uproject” Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=57609 -project=“D:/Dev work/temp-test/unreal/Temp_test/Temp_test.uproject” BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project=“D:/Dev work/temp-test/unreal/Temp_test/Temp_test.uproject” -unrealexe=D:\software\epic\unreal\UE_5.4\Engine\Binaries\Win64\UnrealEditor-Cmd.exe -platform=Win64 -SkipCookingEditorContent -installed -stage -archive -package -build
-pak -iostore -compressed -prereqs -archivedirectory=“D:/Dev work/package” -clientconfig=Development -nocompile -nocompileuat
UATHelper: Packaging (Windows): Initializing script modules…
UATHelper: Packaging (Windows): Total script module initialization time: 0.21 s.
UATHelper: Packaging (Windows): Using C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe
UATHelper: Packaging (Windows): Executing commands…
UATHelper: Packaging (Windows): Installed Sdk validity:
UATHelper: Packaging (Windows): Win64: (Status=Valid, MinAllowed_Sdk=10.0.18362.0, MaxAllowed_Sdk=10.9.99999.0, Current_Sdk=10.0.26100.0, Allowed_AutoSdk=10.0.19041.0, Current_AutoSdk=, Flags=“InstalledSdk_ValidVersionExists”)
UATHelper: Packaging (Windows): Scanning for envvar changes…
UATHelper: Packaging (Windows): … done!
UATHelper: Packaging (Windows): Cleaning Temp Paths…
UATHelper: Packaging (Windows): BUILD SUCCESSFUL
UATHelper: Packaging (Windows): Setting up ProjectParams for D:\Dev work\temp-test\unreal\Temp_test\Temp_test.uproject
UATHelper: Packaging (Windows): ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Windows): Running: D:\software\epic\unreal\UE_5.4\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe “D:\software\epic\unreal\UE_5.4\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” Temp_test Win64 Development -Project=“D:\Dev work\temp-test\unreal\Temp_test\Temp_test.uproject” -Manifest=“D:\Dev work\temp-test\unreal\Temp_test\Intermediate\Build\Manifest.xml” -remoteini=“D:\Dev work\temp-test\unreal\Temp_test” -skipdeploy -log=“C:\Users\leonb\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+software+epic+unreal+UE_5.4\UBA-Temp_test-Win64-Develop
ment.txt”
UATHelper: Packaging (Windows): Log file: C:\Users\leonb\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+software+epic+unreal+UE_5.4\UBA-Temp_test-Win64-Development.txt
UATHelper: Packaging (Windows): Creating makefile for Temp_test (manifest ‘D:\Dev work\temp-test\unreal\Temp_test\Intermediate\Build\Manifest.xml’ not found)
UATHelper: Packaging (Windows): Available x64 toolchains (1):
UATHelper: Packaging (Windows): * C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207
UATHelper: Packaging (Windows): (Family=14.44.35207, FamilyRank=5, Version=14.44.35208, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
UATHelper: Packaging (Windows): Visual Studio 2022 compiler version 14.44.35208 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.44.35207
UATHelper: Packaging (Windows): (Family=14.44.35207, FamilyRank=5, Version=14.44.35208, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
UATHelper: Packaging (Windows): Visual Studio 2022 compiler version 14.44.35208 is not a preferred version. Please use the latest preferred version 14.38.33130
UATHelper: Packaging (Windows): Writing manifest to D:\Dev work\temp-test\unreal\Temp_test\Intermediate\Build\Manifest.xml
UATHelper: Packaging (Windows): Building Temp_test…
UATHelper: Packaging (Windows): Using Visual Studio 2022 14.44.35208 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207) 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 Temp_test unity file: Temp_test.cpp
PackagingResults: Warning: Visual Studio 2022 compiler is not a preferred version
UATHelper: Packaging (Windows): Determining max actions to execute in parallel (8 physical cores, 16 logical cores)
UATHelper: Packaging (Windows): Executing up to 8 processes, one per physical core
UATHelper: Packaging (Windows): Using Parallel executor to run 4 action(s)
UATHelper: Packaging (Windows): ------ Building 4 action(s) started ------
UATHelper: Packaging (Windows): [1/4] Compile [x64] SharedPCH.Core.Project.ValApi.Cpp20.cpp
UATHelper: Packaging (Windows): D:\software\epic\unreal\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): D:\software\epic\unreal\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: 5.69 seconds
UATHelper: Packaging (Windows): Total execution time: 7.93 seconds
UATHelper: Packaging (Windows): Took 8.09s to run dotnet.exe, ExitCode=6
UATHelper: Packaging (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\leonb\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+software+epic+unreal+UE_5.4\UBA-Temp_test-Win64-Development.txt)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 10s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Unknown Error

here is the output log, like i said i know its caused by the landmass plugin but i have no clue how to fix, i even tried ExcludeEditorContentFromBuild and nothing works, hopefully someone has this problem and fixed it

This is the actual compiler error. The landmass log notice is just a notice about what it’s building.
The real problem is the Runtime\Core\Public\Experimental\ConcurrentLinearlAllocator.h header.

Are you sure landmass is the only plugin or only C++ code you’re using? It might be something else including the experimental header.

Also note the compiler version warning:

First, fix the compiler version, and re-generate your projects and re-build.
If that doesn’t work, figure out what it is that includes this experimental header, and if it’s not Landmass, address that.
If neither of these solve the problem, you might want to temporarily define that missing macro by making some local edits.