Go to the first, previous, next, last section, table of contents.


Installing GNU CC on the Sun

On Solaris, do not use the linker or other tools in `/usr/ucb' to build GNU CC. Use /usr/ccs/bin.

If the assembler reports `Error: misaligned data' when bootstrapping, you are probably using an obsolete version of the GNU assembler. Upgrade to the latest version of GNU binutils, or use the Solaris assembler.

Make sure the environment variable FLOAT_OPTION is not set when you compile `libgcc.a'. If this option were set to f68881 when `libgcc.a' is compiled, the resulting code would demand to be linked with a special startup file and would not link properly without special pains.

There is a bug in alloca in certain versions of the Sun library. To avoid this bug, install the binaries of GNU CC that were compiled by GNU CC. They use alloca as a built-in function and never the one in the library.

Some versions of the Sun compiler crash when compiling GNU CC. The problem is a segmentation fault in cpp. This problem seems to be due to the bulk of data in the environment variables. You may be able to avoid it by using the following command to compile GNU CC with Sun CC:

make CC="TERMCAP=x OBJS=x LIBFUNCS=x STAGESTUFF=x cc"

SunOS 4.1.3 and 4.1.3_U1 have bugs that can cause intermittent core dumps when compiling GNU CC. A common symptom is an internal compiler error which does not recur if you run it again. To fix the problem, install Sun recommended patch 100726 (for SunOS 4.1.3) or 101508 (for SunOS 4.1.3_U1), or upgrade to a later SunOS release.


Go to the first, previous, next, last section, table of contents.