How to build the editor and the project using clang 5?

Everything worked in 4.18, but in 4.19 it says that toolchain is too old. I used v9_clang-4.0.0-centos7. Then I updated clang to v11_clang-5.0.0-centos7 and now I’m getting errors “specified path differs in case from file name on disk

It is the same exact issue as it is in Non-portable path to file:when building project for linux - Platform & Builds - Unreal Engine Forums