Arch Linux: Could not determine version of the compiler, not registering Linux toolchain

Following the instructions on the ArchWiki,

While running GenerateProjectFiles.sh, I got a long list of errors about not being able to determine the version of the complier, like this:

WARNING: Exception while generating include data for UE4Editor: Could not determine version of the compiler, not registering Linux toolchain.
WARNING: Exception while generating include data for BlankProgram: Could not determine version of the compiler, not registering Linux toolchain.
WARNING: Exception while generating include data for BuildPatchTool: Could not determine version of the compiler, not registering Linux toolchain.
WARNING: Exception while generating include data for CrashReportClient: Could not determine version of the compiler, not registering Linux toolchain.

and so on. I downgraded clang to 5.0.1-2 but that didn’t help.

Trying to make it returns the same error.

$ make -j1
bash "/home/bns/Downloads/random_programs/UnrealEngine-4.19.2-release/Engine/Build/BatchFiles/Linux/Build.sh" CrashReportClient Linux Shipping  
Building CrashReportClient...
Creating makefile for CrashReportClient (no existing makefile)
Performing full C++ include scan (no include cache file)
ERROR: Could not determine version of the compiler, not registering Linux toolchain.
make: *** [Makefile:257: CrashReportClient-Linux-Shipping] Error 5

Does anyone know what might be going on here?

Use the AUR package? or let yourself be inspired by it. https://aur.archlinux.org/packages/unreal-engine/

Ah, I should have mentioned that. ~14 GiB of download + all that build storage is not good for a limited data wifi plan and 120GB of storage. (Well yes, I probably shouldn’t try to install UE4 with a 120 GB of SSD but I figured it was worth a try.)

Well it does not download anything extra. You still get the same amount of data either way. But look at the patches in that AUR package, they do resolve some stuff.

Thank you very much for the help. Like most Linux installation problems, it had to do with clang. After I patched LinuxToolChain.cs with a clang 6 support patch, I was able to run GenerateProjectFiles.sh without any errors and then compile it with make.

My only problem is that I don’t see it in the menu, and there’s no Unreal stuff in /opt. Should I try running some scripts again?

Oh, NVM. After checking out the official build instructions, all I had to do was run ./Engine/Binaries/Linux/UE4Editor. Thanks again! =)