Generating data for project indexing... 0%ERROR: clang 3.4.x is known to miscompile the engine - refusing to register the Linux toolchain

I am trying to build Unreal Engine 4.18.3 (I am actually not sure if -b 4.18 would serve this purpose).

I get the following error:

[jalal@goku UnrealEngine]$ ./GenerateProjectFiles.sh

System/XGE.cs(80,24): warning CS0414: The private field `UnrealBuildTool.XGE.XGEDurationRegex' is assigned but its value is never used
+ mono Binaries/DotNET/UnrealBuildTool.exe -projectfiles
Generating data for project indexing... 0%ERROR: clang 3.4.x is known to miscompile the engine - refusing to register the Linux toolchain.

Generating data for project indexing... 0%ERROR: clang 3.4.x is known to miscompile the engine - refusing to register the Linux toolchain.

Generating data for project indexing... 0%ERROR: clang 3.4.x is known to miscompile the engine - refusing to register the Linux toolchain.

Generating data for project indexing... 0%ERROR: clang 3.4.x is known to miscompile the engine - refusing to register the Linux toolchain.

Generating data for project indexing... 0%ERROR: clang 3.4.x is known to miscompile the engine - refusing to register the Linux toolchain.

+ set +x

Here is what I cloned:

git clone -b 4.18 https://github.com/EpicGames/UnrealEngine.git

I am using CentOS 7 and I used a combination of these guides and installed all the prerequisites.
How can I fix this error:

https://wiki.unrealengine.com/Building_On_Linux
https://wiki.unrealengine.com/Building_On_Centos

Here is more information about my system:

[jalal@goku UnrealEngine]$ uname -a
Linux goku.bu.edu 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[jalal@goku UnrealEngine]$ lsb_release -a
LSB Version:	:core-4.1-amd64:core-4.1-noarch
Distributor ID:	CentOS
Description:	CentOS Linux release 7.5.1804 (Core) 
Release:	7.5.1804
Codename:	Core
[jalal@goku UnrealEngine]$ clang --version
clang version 3.4.2 (tags/RELEASE_34/dot2-final)
Target: x86_64-redhat-linux-gnu
Thread model: posix
[jalal@goku UnrealEngine]$ gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I used the following commands:

$ sudo yum install centos-release-scl
$ sudo yum install llvm-toolset-7
$ scl enable llvm-toolset-7 bash

my current clang version is:

$ clang --version
clang version 5.0.1 (tags/RELEASE_501/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rh/llvm-toolset-7/root/usr/bin

I did the setup again and it works now:
[jalal@goku UnrealEngine]$ ./Setup.sh
Registering git hooks… (this will override existing ones!)

Github build
Checking / downloading the latest archives
Checking dependencies (excluding Win32, Win64, Mac, Android)...
Result: 0
Fixing inconsistent case in filenames.

Building ThirdParty libraries

If you don't see SUCCESS message in the end, then building did not finish properly.
In that case, take a look into /scratch2/epic/UnrealEngine/Engine/Build/BatchFiles/Linux/BuildThirdParty.log for details.

No third party libs needed to be built locally

**********  SUCCESS ****************
Attempting to set up UE4 pretty printers for gdb (existing UE4Printers.py, if any, will be overwritten)...
	updated UE4Printers.py
	found necessary entries in ~/.gdbinit file, not changing it.
Setup successful.
[jalal@goku UnrealEngine]$ ./GenerateProjectFiles.sh 

Setting up Unreal Engine 4 project files...

+ xbuild Source/Programs/UnrealBuildTool/UnrealBuildTool.csproj /verbosity:quiet /nologo /p:TargetFrameworkVersion=v4.5 /p:Configuration=Development
+ mono Binaries/DotNET/UnrealBuildTool.exe -projectfiles
Generating data for project indexing... 100%
Generating data for project indexing... 100%
Generating data for project indexing... 100%
Generating data for project indexing... 100%
Generating data for project indexing... 100%
Writing project files... 100%
+ set +x