Login | Register
Login | Register

My pages Projects SunSource.net openCollabNet
OpenSPARC.net >  Cool Tools >  GCC for SPARC® Systems 4.0.3, ATS, BIT Install
OpenSPARC Cool Tools
GCC for SPARC Systems 4.0.3  
 Get the Free Download

Cool Tools - GCC for SPARC Systems 4.0.3, ATS, BIT Install

GCC for SPARC® Systems 4.0.3 may be installed on a system by downloading and installing the SUNW0gccfss package. With GCC for SPARC Systems version 4.0.3 there is only ONE GCC for SPARC Systems installation package. This package handles both SolarisTM 9 and Solaris 10 operating systems. Currently, only the Solaris 9 and Solaris 10 operating systems running on SPARC processors are supported by GCC for SPARC Systems.

Successful installation of the GCC for SPARC Systems package (SUNW0gccfss) requires that the SunTM Code Generator for SPARC Systems (SUNW0scgfss) package already be installed on the system and is the same release as SUNW0gccfss. SUNW0scgfss also includes ATS and BIT. The SUNW0scgfss package is binaries only and is licensed under Sun's SLA. Please read SLA for further details. For convenience, this package is provided on the download site along with the GCC for SPARC Systems package. The SUNW0gccfss package includes source code and is licensed under GPL.

Downloading Packages

The GCC for SPARC Systems package (SUNW0gccfss) [Release 4.0.3], as well as the Sun Code Generator for SPARC Systems (SUNW0scgfss) [Release 4.0.3] package, may be obtained from the Sun Download Center. The downloading process has been simplified from the previous release. There are now just 2 packages to install with no choices.

Once the gzipped tar files containing the packages have been downloaded, the packages may be extracted using the gunzip and tar commands. Assuming that these files have been downloaded to the directory /my/download/dir, the following commands can be used to extract the packages:
    cd /my/download/dir
   /bin/gunzip -c SUNW0gccfss.tar.gz | /bin/tar xf -
   /bin/gunzip -c SUNW0scgfss.tar.gz | /bin/tar xf -

>> Get the download here. <<

Installing Packages

Once the packages are available, they may be installed using the pkgadd command. The command must be executed as root. The following instructions assume that the appropriate packages have been downloaded and extracted into the directory, /my/download/dir.

If the SUNW0scgfss package is not already installed on the system, it may be installed using the following command:
    pkgadd -d /my/download/dir SUNW0scgfss

If the SUNW0scgfss package is already installed on the system and it is for Release 4.0.2, it may be removed using the following command:
    pkgrm SUNW0scgfss

All files will be installed under the /opt/SUNW0scgfss directory.

If the GCC for SPARC Systems package is not already installed on the system, it may be installed using the following command:
    pkgadd -d /my/download/dir SUNW0gccfss

If the GCC for SPARC Systems package is already installed on the system and it is for Release 4.0.2, it may be removed using the following command:
    pkgrm SUNW0gccfss

    pkgadd -d /my/download/dir SUNW0gccfss

All files will be installed under the /opt/gcc directory.

WARNING: Please do not attempt to override the default installation directories for either of these packages. If they are not installed in the default locations, it is possible that incompatible versions of libraries and headers may be used when compiling with GCC for SPARC Systems.

Uninstalling Packages

The packages described in this document may be uninstalled via the pkgrm command. Be sure to uninstall any existing installations of both of these packages prior to installing newer versions.