The RuntimeError points only to the failure of the build, but no error message is shown.
The log should thus have a proper error message explaining why it’s failing in the previous logs.
Yes, disabling ninja might be slower, but could yield the error message closer to the actual failure.