OK, that doesn’t seem to be the root cause then.
Was building PyTorch from source working before at one point? If so, did you change anything in the build stack (GCC etc.) or is this your first build?
Could you also python setup.py clean the build and try to rebuild afterwards?