install-old.texi
来自「理解和实践操作系统的一本好书」· TEXI 代码 · 共 195 行
TEXI
195 行
@c Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.@c This is part of the GCC manual.@c For copying conditions, see the file install.texi.@ifnothtml@comment node-name, next, previous, up@node Old, GNU Free Documentation License, Specific, Top@end ifnothtml@html<h1 align="center">Old installation documentation</h1>@end html@ifnothtml@chapter Old installation documentation@end ifnothtmlNote most of this information is out of date and superseded by theprevious chapters of this manual. It is provided for historicalreference only, because of a lack of volunteers to merge it into themain manual.@ifnothtml@menu* Configurations:: Configurations Supported by GCC.@end menu@end ifnothtmlHere is the procedure for installing GCC on a GNU or Unix system.@enumerate@itemIf you have chosen a configuration for GCC which requires other GNUtools (such as GAS or the GNU linker) instead of the standard systemtools, install the required tools in the build directory under the names@file{as}, @file{ld} or whatever is appropriate.Alternatively, you can do subsequent compilation using a value of the@code{PATH} environment variable such that the necessary GNU tools comebefore the standard system tools.@itemSpecify the host, build and target machine configurations. You do thiswhen you run the @file{configure} script.The @dfn{build} machine is the system which you are using, the@dfn{host} machine is the system where you want to run the resultingcompiler (normally the build machine), and the @dfn{target} machine isthe system for which you want the compiler to generate code.If you are building a compiler to produce code for the machine it runson (a native compiler), you normally do not need to specify any operandsto @file{configure}; it will try to guess the type of machine you are onand use that as the build, host and target machines. So you don't needto specify a configuration when building a native compiler unless@file{configure} cannot figure out what your configuration is or guesseswrong.In those cases, specify the build machine's @dfn{configuration name}with the @option{--host} option; the host and target will default to bethe same as the host machine.Here is an example:@smallexample./configure --host=sparc-sun-sunos4.1@end smallexampleA configuration name may be canonical or it may be more or lessabbreviated.A canonical configuration name has three parts, separated by dashes.It looks like this: @samp{@var{cpu}-@var{company}-@var{system}}.(The three parts may themselves contain dashes; @file{configure}can figure out which dashes serve which purpose.) For example,@samp{m68k-sun-sunos4.1} specifies a Sun 3.You can also replace parts of the configuration by nicknames or aliases.For example, @samp{sun3} stands for @samp{m68k-sun}, so@samp{sun3-sunos4.1} is another way to specify a Sun 3.You can specify a version number after any of the system types, and someof the CPU types. In most cases, the version is irrelevant, and will beignored. So you might as well specify the version if you know it.See @ref{Configurations}, for a list of supported configuration names andnotes on many of the configurations. You should check the notes in thatsection before proceeding any further with the installation of GCC@.@end enumerate@ifnothtml@node Configurations, , , Old@section Configurations Supported by GCC@end ifnothtml@html<h2>@anchor{Configurations}Configurations Supported by GCC</h2>@end html@cindex configurations supported by GCCHere are the possible CPU types:@quotation@c gmicro, fx80, spur and tahoe omitted since they don't work.1750a, a29k, alpha, arm, avr, c@var{n}, clipper, dsp16xx, elxsi, fr30, h8300,hppa1.0, hppa1.1, i370, i386, i486, i586, i686, i786, i860, i960, ip2k, m32r,m68000, m68k, m6811, m6812, m88k, mcore, mips, mipsel, mips64, mips64el,mn10200, mn10300, ns32k, pdp11, powerpc, powerpcle, romp, rs6000, sh, sparc,sparclite, sparc64, v850, vax, we32k.@end quotationHere are the recognized company names. As you can see, customaryabbreviations are used rather than the longer official names.@c What should be done about merlin, tek*, dolphin?@quotationacorn, alliant, altos, apollo, apple, att, bull,cbm, convergent, convex, crds, dec, dg, dolphin,elxsi, encore, harris, hitachi, hp, ibm, intergraph, isi,mips, motorola, ncr, next, ns, omron, plexus,sequent, sgi, sony, sun, tti, unicom, wrs.@end quotationThe company name is meaningful only to disambiguate when the rest ofthe information supplied is insufficient. You can omit it, writingjust @samp{@var{cpu}-@var{system}}, if it is not needed. For example,@samp{vax-ultrix4.2} is equivalent to @samp{vax-dec-ultrix4.2}.Here is a list of system types:@quotation386bsd, aix, acis, amigaos, aos, aout, aux, bosx, bsd, clix, coff, ctix, cxux,dgux, dynix, ebmon, ecoff, elf, esix, freebsd, hms, genix, gnu, linux,linux-gnu, hiux, hpux, iris, irix, isc, luna, lynxos, mach, minix, msdos, mvs,netbsd, newsos, nindy, ns, osf, osfrose, ptx, riscix, riscos, rtu, sco, sim,solaris, sunos, sym, sysv, udi, ultrix, unicos, uniplus, unos, vms, vsta,vxworks, winnt, xenix.@end quotation@noindentYou can omit the system type; then @file{configure} guesses theoperating system from the CPU and company.You can add a version number to the system type; this may or may notmake a difference. For example, you can write @samp{bsd4.3} or@samp{bsd4.4} to distinguish versions of BSD@. In practice, the versionnumber is most needed for @samp{sysv3} and @samp{sysv4}, which are oftentreated differently.@samp{linux-gnu} is the canonical name for the GNU/Linux target; howeverGCC will also accept @samp{linux}. The version of the kernel in use isnot relevant on these systems. A suffix such as @samp{libc1} or @samp{aout}distinguishes major versions of the C library; all of the suffixed versionsare obsolete.If you specify an impossible combination such as @samp{i860-dg-vms},then you may get an error message from @file{configure}, or it mayignore part of the information and do the best it can with the rest.@file{configure} always prints the canonical name for the alternativethat it used. GCC does not support all possible alternatives.Often a particular model of machine has a name. Many machine names arerecognized as aliases for CPU/company combinations. Thus, the machinename @samp{sun3}, mentioned above, is an alias for @samp{m68k-sun}.Sometimes we accept a company name as a machine name, when the name ispopularly used for a particular machine. Here is a table of the knownmachine names:@quotation3300, 3b1, 3b@var{n}, 7300, altos3068, altos,apollo68, att-7300, balance,convex-c@var{n}, crds, decstation-3100,decstation, delta, encore,fx2800, gmicro, hp7@var{nn}, hp8@var{nn},hp9k2@var{nn}, hp9k3@var{nn}, hp9k7@var{nn},hp9k8@var{nn}, iris4d, iris, isi68,m3230, magnum, merlin, miniframe,mmax, news-3600, news800, news, next,pbd, pc532, pmax, powerpc, powerpcle, ps2, risc-news,rtpc, sun2, sun386i, sun386, sun3,sun4, symmetry, tower-32, tower.@end quotation@noindentRemember that a machine name specifies both the cpu type and the companyname.If you want to install your own homemade configuration files, you canuse @samp{local} as the company name to access them. If you useconfiguration @samp{@var{cpu}-local}, the configuration namewithout the cpu prefixis used to form the configuration file names.Thus, if you specify @samp{m68k-local}, configuration usesfiles @file{m68k.md}, @file{local.h}, @file{m68k.c},@file{xm-local.h}, @file{t-local}, and @file{x-local}, all in thedirectory @file{config/m68k}.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?