Make command failing for UE4.18

Hi, I am trying to install UE4.18 in ubuntu 16.04. My clang is 5.0.2 I am following the instructions from the A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums

I made the git clone and then the git checkout, then I ran the ./Setup.sh and the ./GenerateProjectFiles.sh and finally the make command and this is the result. Please let me know what you see that I am doing wrong, or should change.

bash “/home/cscarbone/UnrealEngine/Engine/Build/BatchFiles/Linux/Build.sh” CrashReportClient Linux Shipping
Building CrashReportClient…
Using ‘git status’ to determine working set for adaptive non-unity build.
Creating makefile for CrashReportClient (no existing makefile)
Performing full C++ include scan (no include cache file)
Using clang version ‘5.0.2’ (string), 5 (major), 0 (minor), 2 (patch)
Building UnrealHeaderTool…
Using ‘git status’ to determine working set for adaptive non-unity build.
Creating makefile for UnrealHeaderTool (no existing makefile)
Using clang version ‘5.0.2’ (string), 5 (major), 0 (minor), 2 (patch)
Using bundled libc++ standard C++ library.
Using fast way to relink circularly dependent libraries (no FixDeps).
Performing 2 actions (8 in parallel)
[1/2] Compile Module.UnrealHeaderTool.cpp
In file included from /home/cscarbone/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UnrealHeaderTool/Development/UnrealHeaderTool/Module.UnrealHeaderTool.cpp:2:
In file included from /home/cscarbone/UnrealEngine/Engine/Source/Programs/UnrealHeaderTool/Private/BaseParser.cpp:3:
In file included from Programs/UnrealHeaderTool/Private/BaseParser.h:5:
In file included from Runtime/Core/Public/CoreMinimal.h:117:
In file included from Runtime/Core/Public/Internationalization/TextLocalizationManager.h:14:
Runtime/Core/Public/Internationalization/LocTesting.h:9:19: error: use of logical ‘||’ with constant operand [-Werror,-Wconstant-logical-operand]
static_assert(!(0 || 1 || 0) || !0, “ENABLE_LOC_TESTING can never be enabled in shipping builds”);
^ ~
Runtime/Core/Public/Internationalization/LocTesting.h:9:19: note: use ‘|’ for a bitwise operation
static_assert(!(0 || 1 || 0) || !0, “ENABLE_LOC_TESTING can never be enabled in shipping builds”);
^~
|
1 error generated.
ERROR: UBT ERROR: Failed to produce item: /home/cscarbone/UnrealEngine/Engine/Binaries/Linux/UnrealHeaderTool
Total build time: 5.06 seconds (Local executor: 0.00 seconds)
Error: UnrealHeaderTool failed for target ‘CrashReportClient’ (platform: Linux, module info: /home/cscarbone/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/CrashReportClient/Shipping/CrashReportClient.uhtmanifest, exit code: OtherCompilationError (5)).
Makefile:247: recipe for target ‘CrashReportClient-Linux-Shipping’ failed
make: *** [CrashReportClient-Linux-Shipping] Error 5

Are you sure you are building 4.18? Did you checkout the 4.18 branch? Also why not 4.21? it has the clang bundled with it and makes things just easier.

I need 4.18 for the usage of Airsim. I am sure it was 4.18. Thanks

I solved the problem, by switching the || for | in the Runtime/Core/Public/Internationalization/LocTesting.h as the log suggest.