Installation Error for UnrealHeaderTool in Ubuntu 16.04

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 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.

My google-fu is weak. I found this question 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.

This was fixed in 4.18, you can either clone 4.18 branch (not release) or cherry pick this commit.

$ chown -R user: filepath

$ su user

$ make

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

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