Having trouble with the initial build of UnrealEngine4 using UnrealTournament source

During the compile of ShaderCompileWorker I’m recieving the following errors:

> ...
> 
> [16/48] Compile Module.SandboxFile.cpp
> In file included from
> /home/user/XXXXXXX/UnrealTournament/Engine/Intermediate/Build/Linux/x86_64-unknown-linux-gnu/ShaderCompileWorker/Development/ShaderCore/Module.ShaderCore.cpp:3:
> /home/user/XXXXXXX/UnrealTournament/Engine/Source/Runtime/ShaderCore/Private/ShaderCache.cpp(19,55)
> :  error: use of logical '||' with
> constant operand
> [-Werror,-Wconstant-logical-operand]
> int32 FShaderCache::bUseShaderCaching
> = ((PLATFORM_MAC || PLATFORM_LINUX) && !WITH_EDITOR) ? 1 : 0;
>                                                        ^  ~~~~~~~~~~~~~~
> /home/user/XXXXXXX/UnrealTournament/Engine/Source/Runtime/ShaderCore/Private/ShaderCache.cpp(19,55)
> :  note: use '|' for a bitwise
> operation int32
> FShaderCache::bUseShaderCaching =
> ((PLATFORM_MAC || PLATFORM_LINUX) &&
> !WITH_EDITOR) ? 1 : 0;
>                                                        ^~
>                                                        |
> /home/user/XXXXXXX/UnrealTournament/Engine/Source/Runtime/ShaderCore/Private/ShaderCache.cpp(29,55)
> :  error: use of logical '||' with
> constant operand
> [-Werror,-Wconstant-logical-operand]
> int32 FShaderCache::bUseShaderPredraw
> = ((PLATFORM_MAC || PLATFORM_LINUX) && !WITH_EDITOR) ? 1 : 0;
>                                                        ^  ~~~~~~~~~~~~~~
> /home/user/XXXXXXX/UnrealTournament/Engine/Source/Runtime/ShaderCore/Private/ShaderCache.cpp(29,55)
> :  note: use '|' for a bitwise
> operation int32
> FShaderCache::bUseShaderPredraw =
> ((PLATFORM_MAC || PLATFORM_LINUX) &&
> !WITH_EDITOR) ? 1 : 0;
>                                                        ^~
>                                                        | 2 errors generated.
> 
> ...
> 
> [43/48] Link
> libShaderCompileWorker-DerivedDataCache.so
> -------- End Detailed Actions Stats ----------------------------------------------------------- ERROR: UBT ERROR: Failed to produce
> item:
> /home/user/XXXXXXX/UnrealTournament/Engine/Binaries/Linux/libShaderCompileWorker-ShaderCore.so
> 
> ...

If there are any logs I should post just let me know. Thanks for the help in advance.

Hey -

Are you able to compile only ShaderCompileWorker rather than trying to compile the entire engine? If you still get an error let me know what steps you took to download/install Unreal Tournament.

Cheers

I tried make ShaderCompileWorker ARGS=-clean and make ShaderCompileWorker. It gave me the same error.

To download and install I used the instructions on Building On Linux - Epic Wiki

which was:

  1. git clone https://github.com/EpicGames/UnrealTournament.git
  2. cd UnrealTournament
  3. ./Setup.sh
  4. ./GenerateProjectFiles
  5. make ShaderCompileWorker UnrealLightmass UnrealPak CrashReportClient UE4Editor UnrealTournament

Hey -

I was able to reproduce the issue and have submitted a bug report (UE-13565) for further investigation. For the time being I would suggest using the engine from the UnrealEngine repository rather than the UnrealTournament repository.

Cheers

Hi ,
Thanks for looking into it for me. I’ll use the UnrealEngine repo.