install

来自「GCC编译器源代码」· 代码 · 共 1,454 行 · 第 1/5 页

TXT
1,454
字号
     version) seems not to have this problem.     See *Note Sun Install::, for information on installing GNU CC on     Sun systems.`i[345]86-*-winnt3.5'     This version requires a GAS that has not yet been released.  Until     it is, you can get a prebuilt binary version via anonymous ftp from     `cs.washington.edu:pub/gnat' or `cs.nyu.edu:pub/gnat'. You must     also use the Microsoft header files from the Windows NT 3.5 SDK.     Find these on the CDROM in the `/mstools/h' directory dated     9/4/94.  You must use a fixed version of Microsoft linker made     especially for NT 3.5, which is also is available on the NT 3.5     SDK CDROM.  If you do not have this linker, can you also use the     linker from Visual C/C++ 1.0 or 2.0.     Installing GNU CC for NT builds a wrapper linker, called `ld.exe',     which mimics the behaviour of Unix `ld' in the specification of     libraries (`-L' and `-l').  `ld.exe' looks for both Unix and     Microsoft named libraries.  For example, if you specify `-lfoo',     `ld.exe' will look first for `libfoo.a' and then for `foo.lib'.     You may install GNU CC for Windows NT in one of two ways,     depending on whether or not you have a Unix-like shell and various     Unix-like utilities.       1. If you do not have a Unix-like shell and few Unix-like          utilities, you will use a DOS style batch script called          `configure.bat'.  Invoke it as `configure winnt' from an          MSDOS console window or from the program manager dialog box.          `configure.bat' assumes you have already installed and have          in your path a Unix-like `sed' program which is used to          create a working `Makefile' from `Makefile.in'.          `Makefile' uses the Microsoft Nmake program maintenance          utility and the Visual C/C++ V8.00 compiler to build GNU CC.          You need only have the utilities `sed' and `touch' to use          this installation method, which only automatically builds the          compiler itself.  You must then examine what `fixinc.winnt'          does, edit the header files by hand and build `libgcc.a'          manually.       2. The second type of installation assumes you are running a          Unix-like shell, have a complete suite of Unix-like utilities          in your path, and have a previous version of GNU CC already          installed, either through building it via the above          installation method or acquiring a pre-built binary.  In this          case, use the `configure' script in the normal fashion.`i860-intel-osf1'     This is the Paragon.  If you have version 1.0 of the operating     system, you need to take special steps to build GNU CC due to     peculiarities of the system.  Newer system versions have no     problem.  See the section `Installation Problems' in the GNU CC     Manual.`*-lynx-lynxos'     LynxOS 2.2 and earlier comes with GNU CC 1.x already installed as     `/bin/gcc'.  You should compile with this instead of `/bin/cc'.     You can tell GNU CC to use the GNU assembler and linker, by     specifying `--with-gnu-as --with-gnu-ld' when configuring.  These     will produce COFF format object files and executables;  otherwise     GNU CC will use the installed tools, which produce `a.out' format     executables.`m32r-*-elf'     Mitsubishi M32R processor.  This configuration is intended for     embedded systems.`m68000-hp-bsd'     HP 9000 series 200 running BSD.  Note that the C compiler that     comes with this system cannot compile GNU CC; contact     `law@cs.utah.edu' to get binaries of GNU CC for bootstrapping.`m68k-altos'     Altos 3068.  You must use the GNU assembler, linker and debugger.     Also, you must fix a kernel bug.  Details in the file     `README.ALTOS'.`m68k-apple-aux'     Apple Macintosh running A/UX.  You may configure GCC  to use     either the system assembler and linker or the GNU assembler and     linker.  You should use the GNU configuration if you can,     especially if you also want to use GNU C++.  You enabled that     configuration with + the `--with-gnu-as' and `--with-gnu-ld'     options to `configure'.     Note the C compiler that comes with this system cannot compile GNU     CC.  You can fine binaries of GNU CC for bootstrapping on     `jagubox.gsfc.nasa.gov'.  You will also a patched version of     `/bin/ld' there that raises some of the arbitrary limits found in     the original.`m68k-att-sysv'     AT&T 3b1, a.k.a. 7300 PC.  Special procedures are needed to     compile GNU CC with this machine's standard C compiler, due to     bugs in that compiler.  You can bootstrap it more easily with     previous versions of GNU CC if you have them.     Installing GNU CC on the 3b1 is difficult if you do not already     have GNU CC running, due to bugs in the installed C compiler.     However, the following procedure might work.  We are unable to     test it.       1. Comment out the `#include "config.h"' line near the start of          `cccp.c' and do `make cpp'.  This makes a preliminary version          of GNU cpp.       2. Save the old `/lib/cpp' and copy the preliminary GNU cpp to          that file name.       3. Undo your change in `cccp.c', or reinstall the original          version, and do `make cpp' again.       4. Copy this final version of GNU cpp into `/lib/cpp'.       5. Replace every occurrence of `obstack_free' in the file          `tree.c' with `_obstack_free'.       6. Run `make' to get the first-stage GNU CC.       7. Reinstall the original version of `/lib/cpp'.       8. Now you can compile GNU CC with itself and install it in the          normal fashion.`m68k-bull-sysv'     Bull DPX/2 series 200 and 300 with BOS-2.00.45 up to BOS-2.01. GNU     CC works either with native assembler or GNU assembler. You can use     GNU assembler with native coff generation by providing     `--with-gnu-as' to the configure script or use GNU assembler with     dbx-in-coff encapsulation by providing `--with-gnu-as --stabs'.     For any problem with native assembler or for availability of the     DPX/2 port of GAS, contact `F.Pierresteguy@frcl.bull.fr'.`m68k-crds-unox'     Use `configure unos' for building on Unos.     The Unos assembler is named `casm' instead of `as'.  For some     strange reason linking `/bin/as' to `/bin/casm' changes the     behavior, and does not work.  So, when installing GNU CC, you     should install the following script as `as' in the subdirectory     where the passes of GCC are installed:          #!/bin/sh          casm $*     The default Unos library is named `libunos.a' instead of `libc.a'.     To allow GNU CC to function, either change all references to     `-lc' in `gcc.c' to `-lunos' or link `/lib/libc.a' to     `/lib/libunos.a'.     When compiling GNU CC with the standard compiler, to overcome bugs     in the support of `alloca', do not use `-O' when making stage 2.     Then use the stage 2 compiler with `-O' to make the stage 3     compiler.  This compiler will have the same characteristics as the     usual stage 2 compiler on other systems.  Use it to make a stage 4     compiler and compare that with stage 3 to verify proper     compilation.     (Perhaps simply defining `ALLOCA' in `x-crds' as described in the     comments there will make the above paragraph superfluous.  Please     inform us of whether this works.)     Unos uses memory segmentation instead of demand paging, so you     will need a lot of memory.  5 Mb is barely enough if no other     tasks are running.  If linking `cc1' fails, try putting the object     files into a library and linking from that library.`m68k-hp-hpux'     HP 9000 series 300 or 400 running HP-UX.  HP-UX version 8.0 has a     bug in the assembler that prevents compilation of GNU CC.  To fix     it, get patch PHCO_4484 from HP.     In addition, if you wish to use gas `--with-gnu-as' you must use     gas version 2.1 or later, and you must use the GNU linker version     2.1 or later.  Earlier versions of gas relied upon a program which     converted the gas output into the native HP/UX format, but that     program has not been kept up to date.  gdb does not understand     that native HP/UX format, so you must use gas if you wish to use     gdb.`m68k-sun'     Sun 3.  We do not provide a configuration file to use the Sun FPA     by default, because programs that establish signal handlers for     floating point traps inherently cannot work with the FPA.     See *Note Sun Install::, for information on installing GNU CC on     Sun systems.`m88k-*-svr3'     Motorola m88k running the AT&T/Unisoft/Motorola V.3 reference port.     These systems tend to use the Green Hills C, revision 1.8.5, as the     standard C compiler.  There are apparently bugs in this compiler     that result in object files differences between stage 2 and stage     3.  If this happens, make the stage 4 compiler and compare it to     the stage 3 compiler.  If the stage 3 and stage 4 object files are     identical, this suggests you encountered a problem with the     standard C compiler; the stage 3 and 4 compilers may be usable.     It is best, however, to use an older version of GNU CC for     bootstrapping if you have one.`m88k-*-dgux'     Motorola m88k running DG/UX.  To build 88open BCS native or cross     compilers on DG/UX, specify the configuration name as     `m88k-*-dguxbcs' and build in the 88open BCS software development     environment.  To build ELF native or cross compilers on DG/UX,     specify `m88k-*-dgux' and build in the DG/UX ELF development     environment.  You set the software development environment by     issuing `sde-target' command and specifying either `m88kbcs' or     `m88kdguxelf' as the operand.     If you do not specify a configuration name, `configure' guesses the     configuration based on the current software development     environment.`m88k-tektronix-sysv3'     Tektronix XD88 running UTekV 3.2e.  Do not turn on optimization     while building stage1 if you bootstrap with the buggy Green Hills     compiler.  Also, The bundled LAI System V NFS is buggy so if you     build in an NFS mounted directory, start from a fresh reboot, or     avoid NFS all together.  Otherwise you may have trouble getting     clean comparisons between stages.`mips-mips-bsd'     MIPS machines running the MIPS operating system in BSD mode.  It's     possible that some old versions of the system lack the functions     `memcpy', `memcmp', and `memset'.  If your system lacks these, you     must remove or undo the definition of `TARGET_MEM_FUNCTIONS' in     `mips-bsd.h'.     The MIPS C compiler needs to be told to increase its table size     for switch statements with the `-Wf,-XNg1500' option in order to     compile `cp/parse.c'.  If you use the `-O2' optimization option,     you also need to use `-Olimit 3000'.  Both of these options are     automatically generated in the `Makefile' that the shell script     `configure' builds.  If you override the `CC' make variable and     use the MIPS compilers, you may need to add `-Wf,-XNg1500 -Olimit     3000'.`mips-mips-riscos*'     The MIPS C compiler needs to be told to increase its table size     for switch statements with the `-Wf,-XNg1500' option in order to     compile `cp/parse.c'.  If you use the `-O2' optimization option,     you also need to use `-Olimit 3000'.  Both of these options are     automatically generated in the `Makefile' that the shell script     `configure' builds.  If you override the `CC' make variable and     use the MIPS compilers, you may need to add `-Wf,-XNg1500 -Olimit     3000'.     MIPS computers running RISC-OS can support four different     personalities: default, BSD 4.3, System V.3, and System V.4 (older     versions of RISC-OS don't support V.4).  To configure GCC for     these platforms use the following configurations:    `mips-mips-riscos`rev''          Default configuration for RISC-OS, revision `rev'.    `mips-mips-riscos`rev'bsd'          BSD 4.3 configuration for RISC-OS, revision `rev'.    `mips-mips-riscos`rev'sysv4'          System V.4 configuration for RISC-OS, revision `rev'.    `mips-mips-riscos`rev'sysv'          System V.3 configuration for RISC-OS, revision `rev'.     The revision `rev' mentioned above is the revision of RISC-OS to     use.  You must reconfigure GCC when going from a RISC-OS revision     4 to RISC-OS revision 5.  This has the effect of avoiding a linker     bug.`mips-sgi-*'     In order to compile GCC on an SGI running IRIX 4, the "c.hdr.lib"     option must be installed from the CD-ROM supplied from Silicon     Graphics.  This is found on the 2nd CD in release 4.0.1.     In order to compile GCC on an SGI running IRIX 5, the     "compiler_dev.hdr" subsystem must be installed from the IDO CD-ROM     supplied by Silicon Graphics.     `make compare' may fail on version 5 of IRIX unless you add     `-save-temps' to `CFLAGS'.  On these systems, the name of the     assembler input file is stored in the object file, and that makes     comparison fail if it differs between the `stage1' and `stage2'     compilations.  The option `-save-temps' forces a fixed name to be     used for the assembler input file, instead of a randomly chosen     name in `/tmp'.  Do not add `-save-temps' unless the comparisons     fail without that option.  If you do you `-save-temps', you will     have to manually delete the `.i' and `.s' files after each series

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?