Solaris Package Archive -- GNUgcc.2.8.1
Solaris Package Archive
What is it
GNUgcc is the C compiler from the Free Software Foundation. It compiles C and C++
source files, and when merged with g77 it will compile Fortran programs. Since
Solaris does not ship with a usable C compiler, (it's a pay-for feature), having
gcc on your system is almost essential for any type of development work.
Remember to also install the GNUlibstdc++ package as well, (18.104.22.168 to
match this version of GNUg77), if you wish to compile C++ packages.
The compilers are gcc for normal
C compiling and g++ for C++ compiling.
If you install this package you should not also install GNUg77. GNUgcc and GNUg77
are mutually exclusive packages, they should not be on the same machine together.
The reason is that GNUgcc contains the C and C++ compilers, and GNUg77 contains
the C, C++ and Fortran F77 compilers. If you don't want to compile Fortran, use
GNUgcc. If you want to compile Fortran, only use GNUg77.
If you've goofed and put them both on, pkgrm
GNUgcc GNUg77 and then pkgadd
the one you want.
GNUg77 0.5.23 contains all of GNUgcc 2.8.1 as well as the previously mentioned
Send email to email@example.com
GNUgcc is compiled on, and specifically for, the release of Solaris specified in the
package name. It is very bad practice to attempt to use a compiler on one Solaris
release when it was compiled for another. This is because the compiler is hardwired
to use the specific O.S. release header files, and running it on another release will
almost certainly fail.
Because of this I have provided a number of GNUgcc packages for all versions of Solaris
I have access to, and all types of architectures I have access to. If the latest and
greatest compiler release isn't offered, simply use the most recent one for your
Click here to read about the Solaris 7 packages.
You can download the source code from
For those who are inclined to be clumsy, this source code link is NOT
the package you should install, go back to the main index and select the binary release for
your computer and Solaris release.
There are some problems with GNUgcc 2.8.1. Specifically programs like Mozilla
clash with GNUgcc 2.8.1 because both packages define lcong48 and seed48. This
means to build Mozilla you'll need GNUgcc 22.214.171.124 for instance. It's what I'm using.
Mostly though you won't see a problem, it just depends what you are trying to
See the main packages README for installation information.