Cool Tools - GCC for Sun Systems 4.2.0, ATS, BIT, Discover Install
The first step in the installation process is deciding which parts of GCC for Sun Systems to install. There are
2 different parts:
GCC for Sun Systems compilers hosted and targeted for SPARC/Solaris systems.
GCC for Sun Systems compilers hosted on Intel and AMD Solaris systems and targeted for SPARC/Solaris systems.
The installation process for each part is the same.
Download the needed tarballs.
Un-bzip and un-tar the tarballs.
Likewise the uninstalling process is the same.
GCC for Sun Systems compilers hosted and targeted for SPARC/Solaris systems
The needed tarballs are
SUNWgccfss which contains the GCC binaries and is licensed under GPL
SUNWscgfss which contains the SPARC® optimizer and code generator, ATS,
BIT, and Discover. This tar ball contains only binaries and is licensed under Sun's SLA. Please read the SLA
for further details. This tar ball handles both Solaris 9 and Solaris 10 operation systems.
SUNWgccfss_runtime which contains the SPARC/Solaris runtime support routines needed for execution of user programs
and are licensed under GPL
GCC for Sun Systems compilers hosted on Intel and AMD Solaris systems and targeted for SPARC/Solaris systems
The needed tarballs are
SUNWgccfss_x86sparc which contains the GCC binaries and is licensed under GPL
SUNWscgfss_x86sparc which contains the SPARC® optimizer and code generator. This tar ball contains only binaries and is licensed under Sun's SLA. Please read the SLA for further details.
SUNWgccfss_runtime which contains the SPARC/Solaris runtime support routines needed for execution of user programs
and are licensed under GPL
Downloading and Installing Tar Balls
All of the GCC for Sun Systems tar balls may be
obtained from the
Sun Download Center.
Successful installation of any one of the three parts GCC for Sun Systems requires that
the components for that part be from the same release and all of the tarballs for that part have been installed.
The gccfss_src.tar tar ball includes source code and is licensed under GPL.
Once the bzipped tar files containing the packages have been downloaded, the packages
may be extracted using the bunzip2 and tar commands.
With release 4.2.0 the installation can be in any directory the user desires
(and has write permission).
Assuming that these files
are to be installed in the directory /my/install/dir, download the tar balls in /my/install/dir.
The following commands can be used to extract the packages:
GCC for Sun Systems compilers hosted and targeted for SPARC/Solaris systems.
cd /my/install/dir
/bin/bunzip2 -c SUNWgccfss.tar.bz2 | /bin/tar xf -
/bin/bunzip2 -c SUNWscgfss.tar.bz2 | /bin/tar xf -
GCC for Sun Systems compilers hosted on Intel and AMD Solaris systems and targeted for SPARC/Solaris systems.
On the Intel and AMD Solaris system:
cd /my/install/dir
/bin/bunzip2 -c SUNWgccfss_x86sparc.tar.bz2 | /bin/tar xf -
/bin/bunzip2 -c SUNWscgfss_x86sparc.tar.bz2 | /bin/tar xf -
On the SPARC/Solaris sytem install the runtime support routines
cd /my/install/dir
/bin/bunzip2 -c SUNWgccfss_runtime.tar.bz2 | /bin/tar xf -
For ease-of-use reasons the binaries from the tar balls should be installed in the same directory.
Installation creates two subdirectories: gcc and SUNW0scgfss in the installation
directory. If the two Intel and AMD hosted compiler parts are to be installed on
the same system, the /my/install/dir should be distinct for each part.
It is possible to install SUNWgccfss and SUNWscgfss (or
SUNW0gccfss_x86sparc and SUNW0scgfss_x86sparc)
in different directories
but an environment variable needs to be set so that the back end files can be
found. Assume that SUNWgccfss in installed in /my/install/dir
and
SUNWscgfss is installed in /yet/another/dir then the
environment variable SUNW_SCGFSS_PATH needs to be set to /yet/another/dir/SUNWOscgfss.
Also, you will need to change the symbolic links for ATS, bit and discover
in the gcc/bin directory, to point to
/yet/another/dir/SUNW0scgfss/4.2.0/prod/bin/{ats,bit,discover}.
Uninstalling GCCFSS
Since this release does not use packages, uninstalling GCCFSS 4.2.0 is
simply the
removal of the two directories gcc and SUNW0gccfss in /my/install/dir.