VS 2017 Community 1.5.3 - UE 4.15.1 Source Build Errors

Hello -

This week I uninstall and re-installed VS 2017 which put me on 1.5.3. Since then I have not been able to build UE source no matter what I try. All the modules fail to build with the following:

Severity Code Description Project File Line Suppression State
Error C4768 __declspec attributes before linkage specification are ignored UnrealFrontend C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h 972
Error C4768 __declspec attributes before linkage specification are ignored UnrealFrontend C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h 972
Error Failed to produce item: G:\UnrealEngine\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool-Core.lib UnrealFrontend G:\UnrealEngine\Engine\Intermediate\ProjectFiles\ERROR 1
Error UnrealHeaderTool failed for target ‘UnrealFrontend’ (platform: Win64, module info: G:\UnrealEngine\Engine\Intermediate\Build\Win64\UnrealFrontend\Development\UnrealFrontend.uhtmanifest, exit code: OtherCompilationError (5)). UnrealFrontend G:\UnrealEngine\Engine\Intermediate\ProjectFiles\EXEC 1
Error MSB3075 The command “…\Build\BatchFiles\Build.bat UnrealFrontend Win64 Development -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command. UnrealFrontend C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets 44
Error C4768 __declspec attributes before linkage specification are ignored UnrealHeaderTool C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h 972
Error C4768 __declspec attributes before linkage specification are ignored UnrealHeaderTool C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h 972
Error Failed to produce item: G:\UnrealEngine\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool-Core.lib UnrealHeaderTool G:\UnrealEngine\Engine\Intermediate\ProjectFiles\ERROR 1
Error MSB3075 The command “…\Build\BatchFiles\Build.bat UnrealHeaderTool Win64 Development -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command. UnrealHeaderTool C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets 44
Error C4768 __declspec attributes before linkage specification are ignored UnrealCEFSubProcess C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h 972
Error C4768 __declspec attributes before linkage specification are ignored UnrealCEFSubProcess C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h 972
Error Failed to produce item: G:\UnrealEngine\Engine\Binaries\Win64\UnrealCEFSubProcess.pdb UnrealCEFSubProcess G:\UnrealEngine\Engine\Intermediate\ProjectFiles\ERROR 1
Error MSB3075 The command “…\Build\BatchFiles\Build.bat UnrealCEFSubProcess Win64 Development -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command. UnrealCEFSubProcess C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets 44

Full Error:

Trying to manually run UnrealBuildTool gives "OtherCompilationError (5):

G:\UnrealEngine\Engine\Binaries\DotNET>UnrealBuildTool.exe UnrealFrontend Win64 Debug -waitmutex “g:\UnrealEngine\Engine\Intermediate\ProjectFiles\UnrealFrontend.vcxproj”
Creating makefile for UnrealFrontend (no existing makefile)
Performing full C++ include scan (no include cache file)
Building UnrealHeaderTool…
Performing 8 actions (4 in parallel)
Module.Core.9_of_9.cpp
Module.Core.8_of_9.cpp
C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h(972): error C4768: __declspec attributes before linkage specification are ignored
C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h(972): error C4768: __declspec attributes before linkage specification are ignored
ERROR: UBT ERROR: Failed to produce item: G:\UnrealEngine\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool-Core.lib
Total build time: 2.86 seconds (Local executor: 0.00 seconds)
Error: UnrealHeaderTool failed for target ‘UnrealFrontend’ (platform: Win64, module info: G:\UnrealEngine\Engine\Intermediate\Build\Win64\UnrealFrontend\Debug\UnrealFrontend.uhtmanifest, exit code: OtherCompilationError (5)).

Win10
4.5.1 Source From Git
VS 2017 Community 1.5.3
I’ve tried the “1.5.3 patch” as well.

2017 isn’t supported with 4.15. I believe first support of it was 4.16.

2017 started with 4.15

Was able to duplicate this issue on another machine, builds fine in VS 1.5.0 but not 1.5.3.

Ahh it’s not supported out of the box with 4.15. You need to compile it with 2015, then switch it to 2017. This is an issue for a bit VS2017 Support is incomplete and still relies on previous versions. - Feedback for Unreal Engine team - Unreal Engine Forums