Precompiled header build errors in Visual C++ 2015 CE update 3

It seems something goes wrong during precompiled headers generation. I get errors like:

1>------ Build started: Project: ShaderCacheTool, Configuration: Development_Program x64 ------
1> Creating makefile for ShaderCacheTool (no existing makefile)
1> Performing full C++ include scan (no include cache file)
1> Performing 17 actions (4 in parallel)
1> PCH.Core.h.cpp
1> PCH.CorePrivatePCH.h.cpp
1> Module.RenderCore.cpp
1> Module.RHI.cpp
1> Module.Projects.cpp
1> Module.Json.cpp
1>C:\libs\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCacheTool\Development\RenderCore\Module.RenderCore.cpp : error C4605: ‘/DORIGINAL_FILE_NAME=“ShaderCacheTool.exe”’ specified on current command line, but was not specified when precompiled header was built
1>C:\libs\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCacheTool\Development\RenderCore\Module.RenderCore.cpp : error C4605: ‘/DRENDERCORE_API=’ specified on current command line, but was not specified when precompiled header was built
1>C:\libs\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCacheTool\Development\RenderCore\Module.RenderCore.cpp : error C4605: ‘/DRHI_API=’ specified on current command line, but was not specified when precompiled header was built
1>C:\libs\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCacheTool\Development\RenderCore\Module.RenderCore.cpp : error C4599: ‘/IC:\libs\UnrealEngine\Engine\Source\Runtime\RenderCore\Public’: command line argument number 2 does not match precompiled header
1>C:\libs\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCacheTool\Development\RHI\Module.RHI.cpp : error C4605: ‘/DORIGINAL_FILE_NAME=“ShaderCacheTool.exe”’ specified on current command line, but was not specified when precompiled header was builtC:\libs\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCacheTool\Development\Projects\Module.Projects.cpp: error C4605: ‘/DORIGINAL_FILE_NAME=“ShaderCacheTool.exe”’ specified on current command line, but was not specified when precompiled header was built
1>

Sources obtained from git.
Followed the instructions in Readme.md.
Deleted the intermediates (Engine\Intermediate\Build), cleaned the solution… the problems remain.
The same thing happens on release, promoted and branches
(commits 4e83cfda9af6d4012c4052415acb1213c23778bc , 14cc08332d17834979389c3c9a41c9adb6215814 , and 879939a60a234cc7bb795a229aca766e5917deeb respectively).

Visual version:

Microsoft Visual Studio Community 2015
Version 14.0.25421.03 Update 3
Microsoft .NET Framework
Version 4.6.01038

Installed Version: Community

Visual C# 2015 00322-20000-00000-AA357
Microsoft Visual C# 2015

Visual C++ 2015 00322-20000-00000-AA357
Microsoft Visual C++ 2015

Any workarounds?

Hi there,

UE4 does not yet support update 3 properly, so that is most likely the reason for the build errors.

You can find more info, and potential workarounds here:

Thanks,

Anyone know how to revert back to update 2? Can’t do anything while this issue exists…

Any solution ? I try this solution, but didn’t work for me :/…

Hey Everyone,

Following the directions in the post by Infected_Post here allowed me to uninstall/reinstall VS2015 Community without Update 3. It does not appear to include a means of obtaining Update 1 or 2, but you should be able to continue using your code projects.

Cheers

VS2015 is very long to install… Epic games don’t give more news about ?

We do plan to address this compatibility issue as quickly as possible, however for now the best options are to avoid updating to Update 3 if possible or, as mentioned, using the instructions from Infected_Post to remove Update 3 until a fix for the problem can be put in.

Ok, how to stay informed ? I can wait, but if the issues with VS2015 update 3 still here in the end of the week, i prefere now to reinstall VS2015. Thank you for your quick responses.

The best way to keep up to date on changes to the engine are to review patch/release notes for newer versions as they become available. There is no time frame yet of when a fix for the Update 3 issue will be implemented and I would suggest going ahead and reinstalling for the time being.

I found a workaround - basically remove 4599 and 4609 warning to error pragmas in Engine/Source/Runtime/Core/Public/Windows/WindowsPlatformCompilerSetup.h.

Here is a commit you can cherry-pick:
https://github.com/Neurochrom/UnrealEngine/commit/89ab7a08af165cad02073261b4b8e7af61a63d2c

Then i’ll reinstall VS2015, thanks for the help.

Dude, 4605 not 4609.

4.12.5 fixes this for Windows, but not for XboxOne. The same changes are needed in Engine\Source\Runtime\Core\Public\XboxOne\XboxOneCompilerSetup.h.

Nah 404 error