Hi,
Doing cross compilation is know to be tricky. I wouldn’t recommend it if you’re not already familiar with build systems.
I think your best change is to get a newer version of gcc on the cluster.
You can either use conda and install a gcc there that will be recent enough that you can compile pytorch with it.
Or ask the people that maintain the cluster how you can get a newer version of gcc locally. You usually can get that for your user only.