# Installation Error for UnrealHeaderTool in Ubuntu 16.04

**URL:** <https://forums.unrealengine.com/t/installation-error-for-unrealheadertool-in-ubuntu-16-04/408119>\
**Category:** Platform & Builds\
**Tags:** make, ubuntu, Linux, unreal-engine, UE4, question\
**Created:** [October 27, 2017, 5:05pm UTC](https://forums.unrealengine.com/t/installation-error-for-unrealheadertool-in-ubuntu-16-04/408119 "2017-10-27T17:05:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dninde](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dninde](https://forums.unrealengine.com/u/Dninde)\
**Post date:** [October 27, 2017, 5:05pm UTC](https://forums.unrealengine.com/t/installation-error-for-unrealheadertool-in-ubuntu-16-04/408119/1 "2017-10-27T17:05:42Z")

</div>

I tried searching for solutions but it seems everyone who gets this error made the mistake of running as root, I have not. Setup.sh and GenerateProjectFiles.sh run without a problem, but after running make I receive the following output:

```
bash "/home/drew/Applications/UnrealEngine/Engine/Build/BatchFiles/Linux/Build.sh" CrashReportClient Linux Shipping  
Building CrashReportClient...
Using 'git status' to determine working set for adaptive non-unity build.
Creating makefile for CrashReportClient (no existing makefile)
Performing full C++ include scan (no include cache file)
Using clang version '3.8.0' (string), 3 (major), 8 (minor), 0 (patch)
Building UnrealHeaderTool...
Using 'git status' to determine working set for adaptive non-unity build.
Creating makefile for UnrealHeaderTool (no existing makefile)
Using clang version '3.8.0' (string), 3 (major), 8 (minor), 0 (patch)
Using bundled libc++ standard C++ library.
Using fast way to relink circularly dependent libraries (no FixDeps).
Target is up to date
Total build time: 3.36 seconds (NoActionsToExecute executor: 0.00 seconds)
Parsing headers for CrashReportClient
  Running UnrealHeaderTool CrashReportClient "/home/drew/Applications/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Shipping/CrashReportClient.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -NoEnginePlugins
Error: UnrealHeaderTool failed for target 'CrashReportClient' (platform: Linux, module info: /home/drew/Applications/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Shipping/CrashReportClient.uhtmanifest, exit code: CrashOrAssert (3)).
Makefile:252: recipe for target 'CrashReportClient-Linux-Shipping' failed
make: *** [CrashReportClient-Linux-Shipping] Error 3

```

I followed the instructions [posted here](https://wiki.unrealengine.com/Building_On_Linux) and tried twice with fresh downloads.

Any help with this would be greatly appreciated, please let me know if anything else from me is required.

---

<div class="post-metadata">

**Author:** ![Dninde](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dninde](https://forums.unrealengine.com/u/Dninde)\
**Post date:** [October 27, 2017, 7:19pm UTC](https://forums.unrealengine.com/t/installation-error-for-unrealheadertool-in-ubuntu-16-04/408119/2 "2017-10-27T19:19:28Z")

</div>

My google-fu is weak. I found [this question](https://answers.unrealengine.com/questions/719183/unrealengine-418-fails-to-compile.html) just down the page from mine, and after checking through everything mentioned in the comments, found that it was failing at HasNonoptionalCPUFeatures() in the exact same manner.

By changing this:

```
#define PLATFORM_ENABLE_POPCNT_INTRINSIC 0

```

in LinuxPlatform.h I was able to continue compiling.

---

<div class="post-metadata">

**Author:** ![RCL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCL](https://forums.unrealengine.com/u/RCL)\
**Post date:** [October 30, 2017, 2:45pm UTC](https://forums.unrealengine.com/t/installation-error-for-unrealheadertool-in-ubuntu-16-04/408119/3 "2017-10-30T14:45:08Z")

</div>

This was fixed in 4.18, you can either clone 4.18 branch (not release) or cherry pick [this commit](https://github.com/EpicGames/UnrealEngine/commit/3b8430f38c40172459e6c3afb10d913b6b347baf).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9ce3a8d4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9ce3a8d4](https://forums.unrealengine.com/u/anonymous_user_9ce3a8d4)\
**Post date:** [January 21, 2018, 12:34am UTC](https://forums.unrealengine.com/t/installation-error-for-unrealheadertool-in-ubuntu-16-04/408119/4 "2018-01-21T00:34:00Z")

</div>

`$ chown -R user: filepath`  
  
`$ su user`  
  
`$ make`

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9ce3a8d4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9ce3a8d4](https://forums.unrealengine.com/u/anonymous_user_9ce3a8d4)\
**Post date:** [January 21, 2018, 12:37am UTC](https://forums.unrealengine.com/t/installation-error-for-unrealheadertool-in-ubuntu-16-04/408119/5 "2018-01-21T00:37:24Z")

</div>

Do not use ‘sudo’ or ‘root user’.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7fa99f5e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7fa99f5e](https://forums.unrealengine.com/u/anonymous_user_7fa99f5e)\
**Post date:** [January 18, 2019, 5:56pm UTC](https://forums.unrealengine.com/t/installation-error-for-unrealheadertool-in-ubuntu-16-04/408119/6 "2019-01-18T17:56:15Z")

</div>

I ran the first line as `sudo` and everything worked. `make` failed when I originally omitted `sudo`.

My OS is Ubuntu 18.04.01  
I’m using Unreal Engine 4.21
