MinidumpDiagnostics compilation failed

Hello. I’m trying to build Minidump Diagnostics (4.11.2) project maually and I get an error message (Visual Studio 2015).

1>------ Build started: Project: MinidumpDiagnostics, Configuration: Development_Program x64 ------
1>  Creating makefile for MinidumpDiagnostics (no existing makefile)
1>  Building UnrealHeaderTool...
1>  Target is up to date
1>  Parsing headers for MinidumpDiagnostics
1>    Running UnrealHeaderTool MinidumpDiagnostics "D:\MyProjects\UnrealEngine4\UnrealEngine4\UnrealEngine\Engine\Intermediate\Build\Win64\MinidumpDiagnostics\Development\UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -NoEnginePlugins
1>  Reflection code generated for MinidumpDiagnostics in 0,7917485 seconds
1>  Performing 2 actions (4 in parallel)
1>  Module.EditorStyle.cpp
1>D:\MyProjects\UnrealEngine4\UnrealEngine4\UnrealEngine\Engine\Intermediate\Build\Win64\MinidumpDiagnostics\Development\EditorStyle\Module.EditorStyle.cpp : warning C4653: compiler option 'Optimizations (one or more of /Oawstgp[y]) or debug checks (one or more of /GZ, /RTCcsu)' inconsistent with precompiled header; current command-line option ignored
1>d:\myprojects\unrealengine4\unrealengine4\unrealengine\engine\source\editor\editorstyle\private\slateeditorstyle.cpp(159): error C4883: 'FSlateEditorStyle::FStyle::SetupGeneralStyles': function size suppresses optimizations
1>  -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: D:\MyProjects\UnrealEngine4\UnrealEngine4\UnrealEngine\Engine\Binaries\Win64\MinidumpDiagnostics.exe

Hello v.s.,

Just to be sure, have you compiled the engine itself for this particular installation? I’m not having this issue on my end so I’ll need to look into those error messages. Do you have any issues compiling any other sections of the engine and have you tried compiling this before with another version of the engine? What were the results in that case?

I compiled an engine and all programs successfully. I compiled this with Visual Studio 2013 without errors. And after that I upgraded to Visual Studio 2015 Update 2.

Unfortunately I can not reinstall VS on my PC but may be it will be possible on the other PC. I have another PC with Update 1 and I’ll tell you result tomorrow.

Thank you for that information; This could be a symptom of Update 2 for Visual Studio 2015, as we’ve had a few problems with that update. A co-worker also failed building this module, albeit with a different error, and he also has Update 2. I was able to build it with no problem and I’m on Update 1. Would it be possible for you to reinstall Visual Studio 2015 and avoid upgrading to Update 2, to see if you’ll be able to build this in 2015 then?

There is no error in the VS without Update 2

Thank you for testing that. I’ve placed a bug in for the issue under the number UE-31723. It seems that the issue may be that there is a new warning that was introduced with Update 2 which is what is causing this to fail. The reason why is because UE4 is set to treat all warnings as errors except for ones that we explicitly ignore. In the meantime, I can only suggest to use a version without Update 2. I’ll update you when the issue is fixed.

Have a nice day!

It looks like this issue has already been fixed and will be included in the next hotfix, so be on the look out for it in our next update!