PyTorch source build failed due to can't detect existing .so files

I build PyTorch source according to the steps. After I run python install. it returned errors

/usr/bin/ld: warning:, needed by /home/pytorch/build/lib/, not found (try using -rpath or -rpath-link)
/home/pytorch/build/lib/ undefined reference to mkldnn_convolution_backward_data_desc_init' /home/pytorch/build/lib/ undefined reference tomkldnn_primitive_destroy’
/home/pytorch/build/lib/ undefined reference to `mkldnn_reorder_primitive_desc_create’

but I could find the in ~/anaconda3/lib. why it shows “not found”? i am very confused about it.
it blocked me for long time