1 1 10 Old installation documentation 1 ********************************* 1 1 Note most of this information is out of date and superseded by the 1 previous chapters of this manual. It is provided for historical 1 reference only, because of a lack of volunteers to merge it into the 1 main manual. 1
1 · Configurations Configurations Supported by GCC. 1 1 Here is the procedure for installing GCC on a GNU or Unix system. 1 1 1. If you have chosen a configuration for GCC which requires other GNU 1 tools (such as GAS or the GNU linker) instead of the standard 1 system tools, install the required tools in the build directory 1 under the names 'as', 'ld' or whatever is appropriate. 1 1 Alternatively, you can do subsequent compilation using a value of 1 the 'PATH' environment variable such that the necessary GNU tools 1 come before the standard system tools. 1 1 2. Specify the host, build and target machine configurations. You do 1 this when you run the 'configure' script. 1 1 The "build" machine is the system which you are using, the "host" 1 machine is the system where you want to run the resulting compiler 1 (normally the build machine), and the "target" machine is the 1 system for which you want the compiler to generate code. 1 1 If you are building a compiler to produce code for the machine it 1 runs on (a native compiler), you normally do not need to specify 1 any operands to 'configure'; it will try to guess the type of 1 machine you are on and use that as the build, host and target 1 machines. So you don't need to specify a configuration when 1 building a native compiler unless 'configure' cannot figure out 1 what your configuration is or guesses wrong. 1 1 In those cases, specify the build machine's "configuration name" 1 with the '--host' option; the host and target will default to be 1 the same as the host machine. 1 1 Here is an example: 1 1 ./configure --host=sparc-sun-sunos4.1 1 1 A configuration name may be canonical or it may be more or less 1 abbreviated. 1 1 A canonical configuration name has three parts, separated by 1 dashes. It looks like this: 'CPU-COMPANY-SYSTEM'. (The three 1 parts may themselves contain dashes; 'configure' can figure out 1 which dashes serve which purpose.) For example, 1 'm68k-sun-sunos4.1' specifies a Sun 3. 1 1 You can also replace parts of the configuration by nicknames or 1 aliases. For example, 'sun3' stands for 'm68k-sun', so 1 'sun3-sunos4.1' is another way to specify a Sun 3. 1 1 You can specify a version number after any of the system types, and 1 some of the CPU types. In most cases, the version is irrelevant, 1 and will be ignored. So you might as well specify the version if 1 you know it. 1 1 See ⇒Configurations, for a list of supported configuration 1 names and notes on many of the configurations. You should check 1 the notes in that section before proceeding any further with the 1 installation of GCC. 1