OK, thanks for the description. Given this it seems that you were never successful in building from source in this setup. As a further debugging step: would it be possible for you to use a clean docker container and try to build PyTorch from source there? If this would be working then the issue would potentially point to a setup issue which causes the slowdown/hang.