Build of UE-4.21.2 on Ubuntu 18.04 fails

when I build UE-4.21.2 and it processing building UE4Editor, it fails. How can I fix this?

[1305/1686] Link (ld) libUE4Editor-UE4Game.so
[1306/1686] Link (ld) libUE4Editor-BlankModule.so
ERROR: UBT ERROR: Failed to produce item: /home/changq/UnrealEngine-4.21.2/Engine/Binaries/Linux/libUE4Editor-Engine.so
 (see ../Programs/UnrealBuildTool/Log.txt for full exception trace)
Total build time: 7626.81 seconds (Local executor: 0.00 seconds)
Makefile:548: recipe for target 'UE4Editor' failed
make: *** [UE4Editor] Error 5