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


Unpacking

The gcc source distribution is a stand-alone distribution. It is designed to be unpacked (producing the gcc source tree) and built as is, assuming certain prerequisites are met (including the availability of compatible UNIX programs such as make, cc, and so on).

However, before building gcc, you will want to unpack and merge the g77 distribution in with it, so that you build a Fortran-capable version of gcc, which includes the g77 command, the necessary run-time libraries, and this manual.

Unlike gcc, the g77 source distribution is not a stand-alone distribution. It is designed to be unpacked and, afterwards, immediately merged into an applicable gcc source tree. That is, the g77 distribution augments a gcc distribution--without gcc, generally only the documentation is immediately usable.

A sequence of commands typically used to unpack gcc and g77 is:

sh# cd /usr/src
sh# gunzip -c /usr/FSF/gcc-2.8.1.tar.gz | tar xf -
sh# gunzip -c /usr/FSF/g77-0.5.23.tar.gz | tar xf -
sh# ln -s gcc-2.8.1 gcc
sh# ln -s g77-0.5.23 g77
sh# mv -i g77/* gcc

Notes: The commands beginning with `gunzip...' might print `Broken pipe...' as they complete. That is nothing to worry about, unless you actually hear a pipe breaking. The ln commands are helpful in reducing typing and clutter in installation examples in this manual. Hereafter, the top level of gcc source tree is referred to as `gcc', and the top level of just the g77 source tree (prior to issuing the mv command, above) is referred to as `g77'.

There are three top-level names in a g77 distribution:

g77/COPYING.g77
g77/README.g77
g77/f

All three entries should be moved (or copied) into a gcc source tree (typically named after its version number and as it appears in the FSF distributions--e.g. `gcc-2.8.1').

`g77/f' is the subdirectory containing all of the code, documentation, and other information that is specific to g77. The other two files exist to provide information on g77 to someone encountering a gcc source tree with g77 already present, who has not yet read these installation instructions and thus needs help understanding that the source tree they are looking at does not come from a single FSF distribution. They also help people encountering an unmerged g77 source tree for the first time.

Note: Please use only gcc and g77 source trees as distributed by the FSF. Use of modified versions is likely to result in problems that appear to be in the g77 code but, in fact, are not. Do not use such modified versions unless you understand all the differences between them and the versions the FSF distributes--in which case you should be able to modify the g77 (or gcc) source trees appropriately so g77 and gcc can coexist as they do in the stock FSF distributions.


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