Morning 
I have the exact same issue, but I don’t understand how to fix it. I went to HlslLexer.cpp and try few things but none of them work… would you mind explaining to me how you fixed it? (I am using Debian 11)
Running command : Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool ShaderCompileWorker Linux Development
Linux using Manual SDK v17_clang-10.0.1-centos7
Using 'git status' to determine working set for adaptive non-unity build (/xxx/UnrealEngine-5.0.0-early-access-1).
Building ShaderCompileWorker...
Performing 7 actions (16 in parallel)
[1/7] Compile Module.ShaderCompilerCommon.cpp
In file included from /xxx/UnrealEngine-5.0.0-early-access-1/Engine/Intermediate/Build/Linux/B4D820EA/ShaderCompileWorker/Development/ShaderCompilerCommon/Module.ShaderCompilerCommon.cpp:6:
In file included from /xxx/UnrealEngine-5.0.0-early-access-1/Engine/Source/Developer/ShaderCompilerCommon/Private/HlslUtils.cpp:11:
In file included from Developer/ShaderCompilerCommon/Public/ShaderCompilerCommon.h:6:
In file included from Runtime/RenderCore/Public/UniformBuffer.h:9:
In file included from Runtime/RenderCore/Public/ShaderParameterMacros.h:10:
In file included from Runtime/RenderCore/Public/ShaderParameterMetadata.h:12:
In file included from Runtime/RHI/Public/RHI.h:2390:
/xxx/UnrealEngine-5.0.0-early-access-1/Engine/Source/Runtime/RHI/Public/RHIResources.h:2910:5: error: expected class member or base class name
, ArraySize(InArraySize)
^
/xxx/UnrealEngine-5.0.0-early-access-1/Engine/Source/Developer/ShaderCompilerCommon/Private/HlslLexer.cpp:15:26: note: expanded from macro 'ArraySize'
#define ArraySize(array) (sizeof(ArraySizeHelper(array)))
^
1 error generated.
make: *** [Makefile:763 : ShaderCompileWorker] Erreur 6