Unable to build Unreal Engine on ubuntu 18.04

**Edit: removed previous post as this is the order to follow to fix the issue. Previous posts order is in reverse and could confuse new user **

Trial 1

Unreal linux build tool chain detects the distribution and uses libc downloaded with unreal or supplied with os based on distribution by checking things like is source os? etc according to the distribution. This is the root of the problem, along with typical installation mistake of os.

If you install any live os please remember to install the build tools. (eg ubuntu, fedora)

Ubuntu

sudo apt-get update
udo apt-get install build-essential llvm

Fedora

sudo dnf groupinstall “Development Tools”
sudo dnf install flex kernel-devel bison dkms

if you have rpmfusion repository enabled and using nvidia drivers.

sudo dnf install akmod-nvidia

(Ubuntu with its dependency on debian has many things different from other distributions. See other at also had similar issue with compiling softwares in ubuntu even after installing the build-essential. https://stackoverflow.com/questions/…23339#11823339 https://stackoverflow.com/questions/…file-not-found
)

Redhat/Fedora has better engineering than Ubuntu. Eg it all software are forced to use universal libraries rather than libraries being packed with each software. There could be many copies of same libraries/dependencies is some distribution.

Trial 2
--------

I have seen in the forums people with very high threads having similar problem with ubuntu and debian.
Signal errors are very complicated issue. Most possible reason could be how they have implimented their os dev enviroment.
Two methods:

  1. If it is a race condition. Since you have many core. Try limiting the total number of thread in using home/username/.config/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml Set MaxProcessorCount = to very low number and see if compiles. refer for settings https://docs.unrealengine.com/en-US/…ion/index.html

  2. Another method I would recommend you to try it on another distro like fedora / Open suse 15.2 / centos 7 (too old)
    If you go for centos 8 or you will have to configure os without wayland.

Trial 3
--------

Are you on a very old distro with obsolate android ndk. Then remove it

Trial 4
---------

Are you using any methods like perforce.txt to use system provided clang. Each version of unreal will only work with a specific version of clang eg 4.25 with clang 9. 4.26 with clang 10 etc. Have you modified build tools to use gcc for compiling.
If anything like this is done then revoke it.
if you used git to clone (git clone unrealsourceweblink)Try in console with

git reset --hard
If it does not work Easiest method will be to remove the unreal source and redowload (use git clone if it is possible)

Trial 5

If it still does not work ask in forum or if its a bug report it!

PS

Many things in documentation such as system requirements, linux installation method etc are old (as of 2020). In requirements it says 100 gb for source. But now the compiled engine is around 120gb and having 100gb will not work.

2 Likes