Filed to build UE4 on ubuntu 20.04

i’ve downloaded release version from github. then:

[ kirill@UnrealEngine-release ]$ ./Setup.sh 
Fixing inconsistent case in filenames.
Setting up Mono
Checking dependencies...
The following file(s) have been modified:
  Engine/Binaries/ThirdParty/Mono/Linux/etc/mono/registry/last-btime
Would you like to overwrite your changes (y/n)? n
Result: 0
Register the engine installation...
Installing a bundled clang toolchain
Toolchain already installed skipping.

Target arch set to: x86_64-unknown-linux-gnu
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 /media/kirill/DATA/UnrealEngine-release/Engine/Build/BatchFiles/Linux/BuildThirdParty.log for details.

No third party libs needed to be built locally

**********  SUCCESS ****************
Setup successful.

after that:

[ kirill@UnrealEngine-release ]$ ./GenerateProjectFiles.sh 
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.

Setting up Unreal Engine 4 project files...

Fixing inconsistent case in filenames.
Setting up Mono
ERROR: Unable to instantiate instance of 'BenchmarkToolTarget' object type from compiled assembly 'UE4ProgramRules'.  Unreal Build Tool creates an instance of your module's 'Rules' object in order to find out about your module's requirements.  The CLR exception details may provide more information:  System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> UnrealBuildTool.BuildException: GetBuildPlatform: No BuildPlatform found for Linux
         at UnrealBuildTool.UEBuildPlatform.GetBuildPlatform (UnrealBuildTool.UnrealTargetPlatform InPlatform, System.Boolean bInAllowFailure) [0x0003e] in <c26d1fedc1f94ea7a5b4a8d79c6ab67a>:0 
         at UnrealBuildTool.TargetRules..ctor (UnrealBuildTool.TargetInfo Target) [0x002fd] in <c26d1fedc1f94ea7a5b4a8d79c6ab67a>:0 
         at BenchmarkToolTarget..ctor (UnrealBuildTool.TargetInfo Target) [0x00000] in <3b9312c0efcb41878f4b8daebbacd88b>:0 
         at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
         at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in <98fac219bd4e453693d76fda7bd96ab0>:0 
          --- End of inner exception stack trace ---
         at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00017] in <98fac219bd4e453693d76fda7bd96ab0>:0 
         at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0007a] in <98fac219bd4e453693d76fda7bd96ab0>:0 
         at System.Reflection.MonoCMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0002f] in <98fac219bd4e453693d76fda7bd96ab0>:0 
         at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <98fac219bd4e453693d76fda7bd96ab0>:0 
         at UnrealBuildTool.RulesAssembly.CreateTargetRulesInstance (System.String TypeName, UnrealBuildTool.TargetInfo TargetInfo) [0x00093] in <c26d1fedc1f94ea7a5b4a8d79c6ab67a>:0

mono-complete and clang-10 installed

Dear valued Unreal Engine user,

It looks as though the actual error may be: Exception: GetBuildPlatform: No BuildPlatform found for Linux, which seems to indicate it is not finding the Linux toolchain. You should not need to use your system mono or compiler, as these are provided as part of the engine.

If you run ./GenerateProjectFiles.sh -verbose, it should reveal further debugging information.

If you look in Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/ you should find a toolchain that matches the value of ExpectedSDKVersion in Engine/Source/Programs/UnrealBuildTool/Platform/Linux/UEBuildLinux.cs. Inside that directory there should be a ToolchainVersion.txt. If there is not, then you may need to delete the contents of Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/ and rerun Setup.sh or specifically Engine/Build/BatchFiles/Linux/SetupToolchain.sh to re-download the toolchain.

Please also check if LINUX_ROOT or LINUX_MULTIARCH_ROOT are set and if so, unset those, as they should not be needed on Linux.

Thank you for your continued support,