UE 4.2.1 source build error - Fatal error C1069

Hi, I am having a problem with a build on clean installation of Windows 8.1, Windows SDK 8.1, DirectX End-User Runtimes (June 2010), DirectX SDK (June 2010), VS Studio Express 2013, VC++ 2010 Redistributables, .NET 4.5.

I have downloaded the source for UE 4.2.1 and two required zips, everything as described in README file. What I noticed is that my configuration properties for VC++ are empty except for Executable Directories: $(VC_ExecutablePath_x64);$(WindowsSDK_ExecutablePath);$(VS_ExecutablePath);$(MSBuild_ExecutablePath);$(FxCopDir);$(PATH);

Build fails with the output:

1>------ Build started: Project: UE4, Configuration: Development_Editor x64 ------
1>  Building UnrealHeaderTool...
1>  Performing 29 actions (max 4 parallel jobs)
1>  [3/29] rc.exe PCLaunch.rc
1>  PCH.Shared.CoreUObject.h.cpp
1>  PCH.Shared.Core.h.cpp
1>  PCH.Core.CorePrivate.h.cpp
1>  [5/29] rc.exe PCLaunch.rc
1>  Module.CoreUObject.1_of_5.cpp
1>D:\Projects\GitHub\UnrealEngine-4.2.1-release\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\SharedPCHs\PCH.Shared.Core.h.cpp(2): fatal error C1069: cannot read compiler command line
1>  Module.CoreUObject.4_of_5.cpp
1>D:\Projects\GitHub\UnrealEngine-4.2.1-release\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\Core\PCH.Core.CorePrivate.h.cpp(2): fatal error C1069: cannot read compiler command line
1>  Module.CoreUObject.3_of_5.cpp
1>D:\Projects\GitHub\UnrealEngine-4.2.1-release\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\SharedPCHs\PCH.Shared.CoreUObject.h.cpp(2): fatal error C1069: cannot read compiler command line
1>  Module.CoreUObject.2_of_5.cpp
1>d:\projects\github\unrealengine-4.2.1-release\engine\source\runtime\core\public\templates\SharedPointerInternals.h(573): fatal error C1069: cannot read compiler command line
1>  Module.CoreUObject.5_of_5.cpp
1>d:\projects\github\unrealengine-4.2.1-release\engine\source\runtime\core\public\delegates\DelegateSignatureImpl.inl(621): fatal error C1069: cannot read compiler command line
1>  [11/29] rc.exe PCLaunch.rc
1>  [12/29] rc.exe PCLaunch.rc
1>  [13/29] rc.exe PCLaunch.rc
1>D:\Projects\GitHub\UnrealEngine-4.2.1-release\Engine\Source\Runtime\Core\Public\Containers\Set.h(888): fatal error C1069: cannot read compiler command line
1>d:\projects\github\unrealengine-4.2.1-release\engine\source\runtime\core\public\templates\SharedPointerInternals.h(573): fatal error C1069: cannot read compiler command line
1>D:\Projects\GitHub\UnrealEngine-4.2.1-release\Engine\Source\Runtime\Core\Public\Containers\SparseArray.h(461): fatal error C1069: cannot read compiler command line
1>  -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: D:\Projects\GitHub\UnrealEngine-4.2.1-release\Engine\Binaries\Win64\UnrealHeaderTool-Core.dll
1>  Cumulative action seconds (8 processors): 0,00 building projects, 23,44 compiling, 0,00 creating app bundles, 0,00 generating debug info, 0,00 linking, 0,00 other
1>  UBT execution time: 10,10 seconds
1>  UnrealHeaderTool failed for target 'UE4Editor' (platform: Win64, module info: D:\Projects\GitHub\UnrealEngine-4.2.1-release\Engine\Intermediate\Build\Win64\UE4Editor\Development\UnrealHeaderTool.manifest).
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command "..\..\Build\BatchFiles\Build.bat UE4Editor Win64 Development" exited with code -1.
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

What else do I need?

Problem solved - it seems that VS doesn’t like spaces in paths of TMP and TEMP environmental variables which I had set to custom. After changing it to x:\Windows_Temp, compilation process was finished successfully.