Install g++-6-multilib-sparc64-linux-gnu by entering the following commands in the terminal:
sudo apt update sudo apt install g++-6-multilib-sparc64-linux-gnu
Description:
GNU C++ compiler (multilib support)
This is the GNU C++ compiler, a fairly portable optimizing compiler for C++. . This is a dependency package, depending on development packages for the non-default multilib architecture(s).
Homepage: http://gcc.gnu.org/
Version: 6.4.0-17ubuntu1cross1
Section: universe/devel