Compiling the engine from source on Linux and getting a error of "make*** Error 6"

could you please try compiling some parts to see if it succeeds, thus making sure that everything is working.
make ARGS=“-clean” UnrealLightmass && make UnrealLightmass
make ARGS=“-clean” ShaderCompileWorker && make ShaderCompileWorker

if any of the above steps fails could you link more log with something like to pastebin.
I too have a fedora 34 setup on another ue5 branch.
Also for every cpu thread you should have around 2gb of ram.

Try these also:

  1. do you have full folder permissions the source directory
  2. change Unreal Engine to UnrealEngine
  3. redownload the sdk (here)

Hope that you are not on the ue5-main branch as this is too bleeding edge to work on linux unless you know to work in engine source.