Why does Incredibuild fail on certain systems?

Hi,

I’m migrating to a new PC and have hit an issue with Incredibuild - I’ve seen this on one other system that we briefly tried to build Unreal (that didn’t previously have Visual Studio installed).

So far all I’ve installed is Windows 8.1 Pro, VS2013 + Update 1, Visual Assist, Perforce. This worked fine on my old PC and all the others in the studio except the one mentioned above.

The problem is a rather cryptic error message from Incredibuild which I can only find referenced in passing in one other thread on here which is Linux-related.

The error is copied below, any suggestions gratefully received.

Thanks,

1>------ Build started: Project: UnrealBuildTool, Configuration: Development Any CPU ------
1>  UnrealBuildTool -> D:\dev\game\branch\ue4\Engine\Binaries\DotNET\UnrealBuildTool.exe
2>------ Build started: Project: game, Configuration: Development_Editor x64 ------
2>  Building UnrealHeaderTool...
2>  Initializing...
2>  --------------------Project: Default-------------------------------------------
2>  PCH.Shared.Core.h.cpp (0:00.01 at +0:00)
2>  IncrediBuild [PID 7148, 64bit]: Exception at +0x00000000000C25C9: Failed to find empty code for patch
2>  ($CALLTRACE:000000006FEBB120:6FF025C9,3E5,8F2,CA9,DA3,E82F4A,3438,5ED91,AB09,EC15,3F26,8F2A9,4F5,E800000000000000)
2>   
2>  ---------------------- Done ----------------------
2>   
2>      Rebuild All: 0 succeeded, 1 failed, 0 skipped
2>ERROR : UBT error : Failed to produce item: D:\dev\game\branch\ue4\Engine\Binaries\Win64\UnrealHeaderTool-Core.dll
2>  XGE execution time: 3.13 seconds
2>  UnrealHeaderTool failed for target 'gameEditor' (platform: Win64, module info: D:\dev\game\branch\game\Intermediate\Build\Win64\gameEditor\Development\UnrealHeaderTool.manifest).
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command "D:\dev\game\branch\ue4\Engine\Build\BatchFiles\Build.bat gameEditor Win64 Development "D:\dev\game\branch\game\game.uproject"" exited with code -1.
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Answering my own question here - but turned out to be Avast! anti-virus interfering in some way. Uninstalled that and the issue went away - posting this for the benefit of anyone else who comes across the same issue.

I had the same problem, removed avast and it all works fine.