I also tried creating a new project and that new Unreal C++ project does not build. When pasting the error in ChatGPT it told me about a BuildConfiguration.xml in my AppData, but I could not find that file in there.
Running D:/UE_5.4/Engine/Build/BatchFiles/Build.bat Development Win64 -Project="D:/UE_Projects/MyProject/MyProject.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Development Win64 -Project="D:/UE_Projects/MyProject/MyProject.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\max30\AppData\Local\UnrealBuildTool\Log.txt
Available x64 toolchains (1):
* C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433
(Family=14.42.34433, FamilyRank=5, Version=14.42.34435, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
Visual Studio 2022 compiler version 14.42.34435 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.42.34433
(Family=14.42.34433, FamilyRank=5, Version=14.42.34435, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
Visual Studio 2022 compiler version 14.42.34435 is not a preferred version. Please use the latest preferred version 14.38.33130
Creating makefile for MyProjectEditor (no existing makefile)
Available x64 toolchains (1):
* C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433
(Family=14.42.34433, FamilyRank=5, Version=14.42.34435, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
Visual Studio 2022 compiler version 14.42.34435 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.42.34433
(Family=14.42.34433, FamilyRank=5, Version=14.42.34435, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
Visual Studio 2022 compiler version 14.42.34435 is not a preferred version. Please use the latest preferred version 14.38.33130
C:/Users/max30/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished in +00:00:00.007 and deleted 0 files with total size 0 MiB and 0 empty folders. Scanned 0 files in 1 folders with total size 0 MiB.
@progress push 5%
Parsing headers for MyProjectEditor
Running Internal UnrealHeaderTool D:\UE_Projects\MyProject\MyProject.uproject D:\UE_Projects\MyProject\Intermediate\Build\Win64\MyProjectEditor\Development\MyProjectEditor.uhtmanifest -WarningsAsErrors -installed
Total of 6 written
Reflection code generated for MyProjectEditor in 1.8377103 seconds
@progress pop
Building MyProjectEditor...
Using Visual Studio 2022 14.42.34435 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).
Warning: Visual Studio 2022 compiler is not a preferred version
Determining max actions to execute in parallel (8 physical cores, 16 logical cores)
Executing up to 8 processes, one per physical core
Requested 1.5 GB memory per action, 3.83 GB available: limiting max parallel actions to 2
Using Parallel executor to run 11 action(s)
------ Building 11 action(s) started ------
[1/11] Resource Default.rc2
[2/11] Compile [x64] SharedPCH.UnrealEd.Project.ValApi.Cpp20.cpp
D:\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'
D:\UE_5.4\Engine\Source\Runtime\Core\Public\Experimental\ConcurrentLinearAllocator.h(31): error C4067: unexpected tokens following preprocessor directive - expected a newline
D:\UE_5.4\Engine\Source\Runtime\Engine\Classes\Engine\SkeletalMesh.h(930): warning C4996: 'FBoneMirrorInfo': FBoneMirrorInfo is deprecated. Please use UMirrorDataTable for mirroring support. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile.
Total time in Parallel executor: 49.34 seconds
Total execution time: 74.74 seconds