Engine compile error 4.21 (GitHub source-release)

Hello everyone.
I downloaded engine from source twice to be sure but I get same error while compiling. I didn’t get these errors before with 4.20 or 4.19.

Source is not modified. Just a fork of release branch. I don’t know if I need to do anything than using Setup.bat and GenerateProjectFiles.bat for 4.21-release version.

It’s not urgent for me right now but I want to test my DedicatedServer with Steam to see what I accomplished so far.
I tried using launcher version 4.21 as -server but I couldn’t see my server on Steam Server list. (Ports are open)

EDIT: Added output of VisualStudio

1>------ Build started: Project: ShaderCompileWorker, Configuration: Development_Program x64 ------
1>Creating makefile for ShaderCompileWorker (BuildConfiguration.xml is newer)
1>Performing 24 actions (4 in parallel)
1>Module.Core.7_of_8.cpp
1>Module.Core.8_of_8.cpp
1>Module.DesktopPlatform.cpp
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\shlobj.h(972): error C4768: __declspec attributes before linkage specification are ignored
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h(972): error C4768: __declspec attributes before linkage specification are ignored
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\shlobj.h(972): error C4768: __declspec attributes before linkage specification are ignored
1>ERROR : UBT error : Failed to produce item: C:\UnrealEngine\Engine\Binaries\Win64\ShaderCompileWorker-Core.dll
1>Total build time: 13,42 seconds
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command "..\..\Build\BatchFiles\Build.bat ShaderCompileWorker Win64 Development -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.
1>Done building project "ShaderCompileWorker.vcxproj" -- FAILED.
2>------ Build started: Project: UE4, Configuration: Development_Editor x64 ------
2>Creating makefile for UE4Editor (no existing makefile)
2>Performing full C++ include scan (no include cache file)
2>Building UnrealHeaderTool...
2>Creating makefile for UnrealHeaderTool (BuildConfiguration.xml is newer)
2>Performing 7 actions (4 in parallel)
2>Module.Core.7_of_8.cpp
2>Module.Core.8_of_8.cpp
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\shlobj.h(972): error C4768: __declspec attributes before linkage specification are ignored
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\shlobj.h(972): error C4768: __declspec attributes before linkage specification are ignored
2>ERROR : UBT error : Failed to produce item: C:\UnrealEngine\Engine\Binaries\Win64\UnrealHeaderTool-Core.dll
2>Total build time: 5,95 seconds
2>EXEC : error : UnrealHeaderTool failed for target 'UE4Editor' (platform: Win64, module info: C:\UnrealEngine\Engine\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor.uhtmanifest, exit code: OtherCompilationError (5)).
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command "..\..\Build\BatchFiles\Build.bat UE4Editor Win64 Development -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.
2>Done building project "UE4.vcxproj" -- FAILED.
========== Build: 0 succeeded, 2 failed, 2 up-to-date, 0 skipped ==========

UPDATE: I think something wrong with Windows 8.1 SDK

Visual Studio Community 2017 v15.8.6

I am using VS as an admin as default already. I was using 4.20 and 4.19 in same folder. “C:\UnrealEngine”

I never had these errors.

As epic suggested, don’t rely on the messages from Errors pane. Instead, read the actual errors on the Output pane.

I experienced the waitMutex error before. I was able to fix it by restarting all the Visual Studio instances.

Try running visual studio as an admin and check that your have permission over the folder the engine is in.

I added the output.

Okay this is interesting but,

I switched to Visual Studio Enterprise 2017 and selected every C++ related extensions while installation.

I did same steps for installing Community 2017 before but idk why problem occured with this version.

A clean installation may solve problem for Community 2017 as well but I didn’t reinstall it to test.

I didn’t have this issue until upgrading to UE4.21.
In my case, upgrading visual studio from 15.8.6 to 15.9.6 solved the issue.