Unable to install SAM2 on Orin Nano

It looks like it may be encountering that error building a PyTorch extension. Beforehand did you install one of the PyTorch wheels built for Jetson, like from this topic: