Building Static Libraries Fail

I didn’t face the libshm.so linking error with Pytorch v1.9.1.

However, I faced a different error which I was able to solve with -DBUILD_PYTHON:BOOL=OFF as explained here: Errors when building static linked LibTorch