Swift compiler building error after cloning the repo

Any reason you are using --debug-swift? That flag is not tested much and has had regressions over the years. Unless you're really sure you need it for your work to have a Swift compiler frontend built in debug mode, you may be better off building with --release-debuginfo or one of the other build options to start off with.