Error in building Caffe2 on Jetson Nano Developer Kit

I followed the instructions from : https://caffe2.ai/docs/getting-started.html?platform=tegra&configuration=compile

Upon running the build script, this comes up :
.
.
.
[ 77%] Linking CXX shared library …/lib/libcaffe2.so
[ 77%] Built target caffe2
Makefile:140: recipe for target ‘all’ failed
make: *** [all] Error 2

Things I’ve tried :

SET USE_DISTRIBUTED to OFF
Upgrading cmake to latest version

Details of my device :
NVIDIA Jetson TX1
L4T 32.1.0 [ JetPack UNKNOWN ]
Board: t210ref
Ubuntu 18.04.2 LTS
Kernel Version: 4.9.140-tegra
CUDA 10.0.166
Cudnn version : 7.3.1

Hi,

You can find the steps to build pyTorch from source here:
https://devtalk.nvidia.com/default/topic/1049071/jetson-nano/pytorch-for-jetson-nano/post/5324123/#5324123

Please remember to add caffe2 extension for your use case.
Thanks.