Error building Unreal Engine 4.26 on Linux Debian 11 (Bullseye)

Some things we can try here.

  1. Could you double check that “sudo dmesg -H” doesn’t show anything getting killed due to oom or other? 64GB should be enough, but just want to double check on this.

  2. Maybe set your own compiler up:

wget http://cdn.unrealengine.com/Toolchain_Linux/native-linux-v17_clang-10.0.1-centos7.tar.gz

extract that, and then set up the env to point to wherever you put it. Something like:

export LINUX_MULTIARCH_ROOT=/epic/v17_clang-10.0.1-centos7

Maybe do a git clean -d -fx -i to make sure your git repo is completely clean. Doing the -i so you don’t delete anything important in there! :slight_smile:

Then run the regular ./Setup.sh && ./GenerateProjectFiles.sh -Makefile && make thing.

  1. You can try building with the system compiler as well. Couple caveats - I’ve got clang 11.0.1 on my system and we haven’t tested with that yet. You’ll have to apply the below patch to get it to build if that’s what you’ve got.

After applying the patch, you should be able to build with something like:

ARGS="-ForceUseSystemCompiler" make BlankProgram

Let me know how it goes. Thanks !
-Mike

Clang 11 patch:

    mikesart@mikesart-tr3 :/epic/UE4.git (4.26.1-release *)$ git diff
    --- i/Engine/Source/Programs/UnrealBuildTool/Platform/Linux/LinuxToolChain.cs
    +++ w/Engine/Source/Programs/UnrealBuildTool/Platform/Linux/LinuxToolChain.cs
    @@ -186,7 +186,7 @@ namespace UnrealBuildTool
                }
                // prevent unknown clangs since the build is likely to fail on too old or too new compilers
    -           else if ((CompilerVersionMajor * 10 + CompilerVersionMinor) > 100 || (CompilerVersionMajor * 10 + CompilerVersionMinor) < 60)
    +           else if ((CompilerVersionMajor * 10 + CompilerVersionMinor) > 110 || (CompilerVersionMajor * 10 + CompilerVersionMinor) < 60)
                {