# Cant compile engine

**URL:** <https://forums.unrealengine.com/t/cant-compile-engine/431718>\
**Category:** Pipeline & Plugins\
**Tags:** error, compiler-error, unreal-engine, compile-error, question\
**Created:** [August 15, 2018, 9:11pm UTC](https://forums.unrealengine.com/t/cant-compile-engine/431718 "2018-08-15T21:11:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![VashTheBrutal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VashTheBrutal](https://forums.unrealengine.com/u/VashTheBrutal)\
**Post date:** [August 15, 2018, 9:11pm UTC](https://forums.unrealengine.com/t/cant-compile-engine/431718/1 "2018-08-15T21:11:19Z")

</div>

ShaderCompileWorker  
Build started Thu 16.08.18 1:08:55 AM.  
Target Build:  
Creating makefile for ShaderCompileWorker (no existing makefile)  
Performing full C++ include scan (no include cache file)  
Using Visual Studio 2017 14.14.26428 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428) and Windows 10.0.17134.0 SDK (C:\Program Files (x86)\Windows Kits\10).  
Building UnrealHeaderTool…  
Distributing 40 actions to XGE  
Fatal Error: An IncrediBuild distributed job cannot be started from within another distributed job.  
ERROR: UBT ERROR: Failed to produce item: C:\UnrealEngine\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\Core\UnrealHeaderTool-Core.lib  
(see …\Programs\UnrealBuildTool\Log\_UHT.txt for full exception trace)  
Total build time: 0.28 seconds (XGE executor: 0.00 seconds)  
Error: UnrealHeaderTool failed for target ‘ShaderCompileWorker’ (platform: Win64, module info: C:\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCompileWorker\Development\ShaderCompileWorker.uhtmanifest, exit code: OtherCompilationError (5)).  
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 -FromMsBuild” exited with code 5. Please verify that you have sufficient rights to run this command.  
Done building target “Build” in project “ShaderCompileWorker.vcxproj” – FAILED.

```
Done building project "ShaderCompileWorker.vcxproj" -- FAILED.

Build FAILED.

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 -FromMsBuild" exited with code 5. Please verify that you have sufficient rights to run this command.
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:01.58

```

---

<div class="post-metadata">

**Author:** ![VashTheBrutal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VashTheBrutal](https://forums.unrealengine.com/u/VashTheBrutal)\
**Post date:** [August 15, 2018, 9:21pm UTC](https://forums.unrealengine.com/t/cant-compile-engine/431718/2 "2018-08-15T21:21:22Z")

</div>

It should work out of the box if you use the VS interface to build and let UnrealBuildTool call incredibuild. just dont use incredibuild to build ue4, that wont work because ubt calls incredibuild already.
