'make' fails when trying to build UE4 for Linux

Hey all

I am trying to follow this guide

however, when entering ‘make’ in the Building UE4 on Linux phase, I get the following error:


@GIP-2018-1:/media//Data/UnrealEngine$ make
bash "/media//Data/UnrealEngine/Engine/Build/BatchFiles/Linux/Build.sh" CrashReportClient Linux Shipping
Fixing inconsistent case in filenames.
Setting up Mono
Building CrashReportClient...
Using 'git status' to determine working set for adaptive non-unity build (/media//Data/UnrealEngine).
Waiting for 'git status' command to complete
Building CrashReportClient...
Performing 3 actions (8 in parallel)
[1/3] Compile Module.CoreUObject.3_of_7.cpp
fatal error: error in backend: Invalid abbrev number
clang++: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 8.0.1 (tags/RELEASE_801/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /media//Data/UnrealEngine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v15_clang-8.0.1-centos7/x86_64-unknown-linux-gnu/bin
clang++: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
clang++: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: /tmp/Module-d62ec8.cpp
clang++: note: diagnostic msg: /tmp/Module-d62ec8.sh
clang++: note: diagnostic msg:

********************
Makefile:302: recipe for target 'CrashReportClient-Linux-Shipping' failed
make: *** [CrashReportClient-Linux-Shipping] Error 5



I am clueless. searched the web for a solution but didn’t find anything useful.

Thank you for your help

Are you trying to build most recent version (which is 4.26) of Unreal?
Try to go to
Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/
and check whether v17_clang-10.0.1-centos7 exists there.

If not - run Setup.sh from root of Unreal source code repositoy.

Anyway, I’m do not recommend to use UE4 on Linux because it’s pure piece of garbage: horrible startup time (10 times more than on Windows), instant crashes everywhere, lot of things not working properly in Vulkan mode.

Just switch to Windows.