Gcc Installation Instruction Release 12.0.1 (Experimental 20210414)

Gcc Installation Instruction Release 12.0.1 (Experimental 20210414)

Gcc Installation Instruction Release 12.0.1 (experimental 20210414) GCC Developer Community Aug 27, 2021 CONTENTS 1 Copyright 3 2 Installing GCC 5 3 Prerequisites 7 3.1 Tools/packages necessary for building GCC ............................... 7 3.2 Tools/packages necessary for modifying GCC .............................. 9 4 Downloading GCC 11 5 Configuration 13 5.1 Distributor options ............................................ 14 5.2 Host, Build and Target specification ................................... 14 5.3 Options specification ........................................... 15 5.4 Cross-Compiler-Specific Options ..................................... 33 5.5 Objective-C-Specific Options ....................................... 35 5.6 D-Specific Options ............................................ 36 6 Building 37 6.1 Building a native compiler ........................................ 37 6.2 Building a cross compiler ......................................... 39 6.3 Building in parallel ............................................ 40 6.4 Building the Ada compiler ........................................ 40 6.5 Building with profile feedback ...................................... 41 7 Testing 43 7.1 How can you run the testsuite on selected tests? ............................. 43 7.2 Passing options and running multiple testsuites .............................. 44 7.3 How to interpret test results ........................................ 45 7.4 Submitting test results .......................................... 45 8 Final installation 47 9 Binaries 49 10 Host/target specific installation notes for GCC 51 10.1 aarch64*-*-* ............................................... 51 10.2 alpha*-*-* ................................................ 52 10.3 amd64-*-solaris2* ............................................ 52 10.4 amdgcn-*-amdhsa ............................................ 52 10.5 arc-*-elf32 ................................................ 52 i 10.6 arc-linux-uclibc .............................................. 52 10.7 arm-*-eabi ................................................ 52 10.8 avr .................................................... 53 10.9 Blackfin .................................................. 53 10.10 CR16 ................................................... 53 10.11 CRIS ................................................... 53 10.12 DOS ................................................... 54 10.13 epiphany-*-elf .............................................. 54 10.14 *-*-freebsd* ............................................... 54 10.15 ft32-*-elf ................................................. 54 10.16 h8300-hms ................................................ 54 10.17 hppa*-hp-hpux* ............................................. 55 10.18 hppa*-hp-hpux10 ............................................. 55 10.19 hppa*-hp-hpux11 ............................................. 55 10.20 *-*-linux-gnu ............................................... 57 10.21 i?86-*-linux* ............................................... 57 10.22 i?86-*-solaris2* ............................................. 57 10.23 ia64-*-linux ................................................ 57 10.24 ia64-*-hpux* ............................................... 58 10.25 *-ibm-aix* ................................................ 58 10.26 iq2000-*-elf ............................................... 60 10.27 lm32-*-elf ................................................ 60 10.28 lm32-*-uclinux .............................................. 60 10.29 m32c-*-elf ................................................ 60 10.30 m32r-*-elf ................................................ 60 10.31 m68k-*-* ................................................. 60 10.32 m68k-*-uclinux .............................................. 61 10.33 microblaze-*-elf ............................................. 61 10.34 mips-*-* ................................................. 61 10.35 moxie-*-elf ................................................ 61 10.36 msp430-*-elf* .............................................. 61 10.37 nds32le-*-elf ............................................... 62 10.38 nds32be-*-elf ............................................... 62 10.39 nvptx-*-none ............................................... 62 10.40 or1k-*-elf ................................................. 62 10.41 or1k-*-linux ............................................... 62 10.42 powerpc-*-* ............................................... 62 10.43 powerpc-*-darwin* ............................................ 63 10.44 powerpc-*-elf ............................................... 63 10.45 powerpc*-*-linux-gnu* .......................................... 63 10.46 powerpc-*-netbsd* ............................................ 63 10.47 powerpc-*-eabisim ............................................ 63 10.48 powerpc-*-eabi .............................................. 63 10.49 powerpcle-*-elf .............................................. 63 10.50 powerpcle-*-eabisim ........................................... 64 10.51 powerpcle-*-eabi ............................................. 64 10.52 rl78-*-elf ................................................. 64 10.53 riscv32-*-elf ............................................... 64 10.54 riscv32-*-linux .............................................. 64 10.55 riscv64-*-elf ............................................... 64 10.56 riscv64-*-linux .............................................. 64 10.57 rx-*-elf .................................................. 64 10.58 s390-*-linux* ............................................... 65 10.59 s390x-*-linux* .............................................. 65 ii 10.60 s390x-ibm-tpf* .............................................. 65 10.61 *-*-solaris2* ............................................... 65 10.62 sparc*-*-* ................................................ 66 10.63 sparc-sun-solaris2* ............................................ 66 10.64 sparc-*-linux* .............................................. 66 10.65 sparc64-*-solaris2* ............................................ 66 10.66 sparcv9-*-solaris2* ............................................ 67 10.67 c6x-*-* .................................................. 67 10.68 tilegx-*-linux* .............................................. 67 10.69 tilegxbe-*-linux* ............................................. 67 10.70 tilepro-*-linux* .............................................. 67 10.71 visium-*-elf ................................................ 67 10.72 *-*-vxworks* ............................................... 67 10.73 x86_64-*-*, amd64-*-* ......................................... 68 10.74 x86_64-*-solaris2* ............................................ 68 10.75 xtensa*-*-elf ............................................... 68 10.76 xtensa*-*-linux* ............................................. 68 10.77 Microsoft Windows ............................................ 68 10.78 Intel 16-bit versions ............................................ 68 10.79 Intel 32-bit versions ............................................ 69 10.80 Intel 64-bit versions ............................................ 69 10.81 Windows CE ............................................... 69 10.82 Other Windows Platforms ........................................ 69 10.83 *-*-cygwin ................................................ 69 10.84 *-*-mingw32 ............................................... 70 10.85 Older systems ............................................... 70 10.86 all ELF targets (SVR4, Solaris 2, etc.) .................................. 70 11 GNU Free Documentation License 71 Index 77 iii iv Gcc Installation Instruction, Release 12.0.1 (experimental 20210414) Contents: CONTENTS 1 Gcc Installation Instruction, Release 12.0.1 (experimental 20210414) 2 CONTENTS CHAPTER ONE COPYRIGHT Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with the Invariant Sections being GNU General Public License and Funding Free Software, the Front-Cover texts being (a) (see below), and with the Back-Cover Texts being (b) (see below). A copy of the license is included in the gfdl(7) man page. (a) The FSF’s Front-Cover Text is: A GNU Manual (b) The FSF’s Back-Cover Text is: You have freedom to copy and modify this GNU Manual, like GNU software. Copies published by the Free Software Foundation raise funds for GNU development. 3 Gcc Installation Instruction, Release 12.0.1 (experimental 20210414) 4 Chapter 1. Copyright CHAPTER TWO INSTALLING GCC The latest version of this document is always available at http://gcc.gnu.org/install/. It refers to the current development sources, instructions for specific released versions are included with the sources. This document describes the generic installation procedure for GCC as well as detailing some target specific installation instructions. GCC includes several components that previously were separate distributions with their own installation instructions. This document supersedes all package-specific installation instructions. Before starting the build/install procedure please check the Host/target specific installation notes for GCC. We recommend you browse the entire generic installation instructions before you proceed. Lists of successful builds for released versions of GCC are available at http://gcc.gnu.org/buildstat.html.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    88 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us