/usr/sparc64-linux-gnu/lib/libgfortran.so.5 is in libgfortran5-sparc64-cross 8-20180414-1ubuntu2cross1.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/sparc64-linux-gnu/lib/libgfortran.so.5.0.0
/usr/sparc64-linux-gnu/lib/libgfortran.so.5.0.0