This is a C++ ABI problem. Please share with me:

What OS you are running on,
What compiler version,
What PyTorch version

Also, if you can, please run the build with make VERBOSE=1 (where you previously typed `make) and paste the output here.
Thanks!