Solved by Shisho_Sama in post #2 
              
              
                OK, I guess I found the culprit. 
I built fbgemm on my local system which has avx2 support. but my vm CPU only supports avx instruction set and that’s why all hell breaks loose! 

FBGEMM requires gcc 5+ and a CPU with support for avx2 instruction set or higher 

Thanks everyone!