Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

1514 lines
69KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with no
  7. Invariant Sections, the Front-Cover texts being (a) (see below), and
  8. with the Back-Cover Texts being (b) (see below). A copy of the
  9. license is included in the section entitled "GNU
  10. Free Documentation License".
  11. (a) The FSF's Front-Cover Text is:
  12. A GNU Manual
  13. (b) The FSF's Back-Cover Text is:
  14. You have freedom to copy and modify this GNU Manual, like GNU
  15. software. Copies published by the Free Software Foundation raise
  16. funds for GNU development. -->
  17. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  20. <title>Host/Target specific installation notes for GCC</title>
  21. <meta name="description" content="Host/Target specific installation notes for GCC">
  22. <meta name="keywords" content="Host/Target specific installation notes for GCC">
  23. <meta name="resource-type" content="document">
  24. <meta name="distribution" content="global">
  25. <meta name="Generator" content="makeinfo">
  26. <style type="text/css">
  27. <!--
  28. a.summary-letter {text-decoration: none}
  29. blockquote.indentedblock {margin-right: 0em}
  30. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  31. blockquote.smallquotation {font-size: smaller}
  32. div.display {margin-left: 3.2em}
  33. div.example {margin-left: 3.2em}
  34. div.lisp {margin-left: 3.2em}
  35. div.smalldisplay {margin-left: 3.2em}
  36. div.smallexample {margin-left: 3.2em}
  37. div.smalllisp {margin-left: 3.2em}
  38. kbd {font-style: oblique}
  39. pre.display {font-family: inherit}
  40. pre.format {font-family: inherit}
  41. pre.menu-comment {font-family: serif}
  42. pre.menu-preformatted {font-family: serif}
  43. pre.smalldisplay {font-family: inherit; font-size: smaller}
  44. pre.smallexample {font-size: smaller}
  45. pre.smallformat {font-family: inherit; font-size: smaller}
  46. pre.smalllisp {font-size: smaller}
  47. span.nolinebreak {white-space: nowrap}
  48. span.roman {font-family: initial; font-weight: normal}
  49. span.sansserif {font-family: sans-serif; font-weight: normal}
  50. ul.no-bullet {list-style: none}
  51. -->
  52. </style>
  53. </head>
  54. <body lang="en">
  55. <h1 class="settitle" align="center">Host/Target specific installation notes for GCC</h1>
  56. <a name="index-Specific"></a>
  57. <a name="index-Specific-installation-notes"></a>
  58. <a name="index-Target-specific-installation"></a>
  59. <a name="index-Host-specific-installation"></a>
  60. <a name="index-Target-specific-installation-notes"></a>
  61. <p>Please read this document carefully <em>before</em> installing the
  62. GNU Compiler Collection on your machine.
  63. </p>
  64. <p>Note that this list of install notes is <em>not</em> a list of supported
  65. hosts or targets. Not all supported hosts and targets are listed
  66. here, only the ones that require host-specific or target-specific
  67. information have to.
  68. </p>
  69. <ul>
  70. <li> <a href="#aarch64-x-x">aarch64*-*-*</a>
  71. </li><li> <a href="#alpha-x-x">alpha*-*-*</a>
  72. </li><li> <a href="#amd64-x-solaris2">amd64-*-solaris2*</a>
  73. </li><li> <a href="#arm-x-eabi">arm-*-eabi</a>
  74. </li><li> <a href="#avr">avr</a>
  75. </li><li> <a href="#bfin">Blackfin</a>
  76. </li><li> <a href="#dos">DOS</a>
  77. </li><li> <a href="#x-x-freebsd">*-*-freebsd*</a>
  78. </li><li> <a href="#h8300-hms">h8300-hms</a>
  79. </li><li> <a href="#hppa-hp-hpux">hppa*-hp-hpux*</a>
  80. </li><li> <a href="#hppa-hp-hpux10">hppa*-hp-hpux10</a>
  81. </li><li> <a href="#hppa-hp-hpux11">hppa*-hp-hpux11</a>
  82. </li><li> <a href="#x-x-linux-gnu">*-*-linux-gnu</a>
  83. </li><li> <a href="#ix86-x-linux">i?86-*-linux*</a>
  84. </li><li> <a href="#ix86-x-solaris2">i?86-*-solaris2*</a>
  85. </li><li> <a href="#ia64-x-linux">ia64-*-linux</a>
  86. </li><li> <a href="#ia64-x-hpux">ia64-*-hpux*</a>
  87. </li><li> <a href="#x-ibm-aix">*-ibm-aix*</a>
  88. </li><li> <a href="#iq2000-x-elf">iq2000-*-elf</a>
  89. </li><li> <a href="#lm32-x-elf">lm32-*-elf</a>
  90. </li><li> <a href="#lm32-x-uclinux">lm32-*-uclinux</a>
  91. </li><li> <a href="#m32c-x-elf">m32c-*-elf</a>
  92. </li><li> <a href="#m32r-x-elf">m32r-*-elf</a>
  93. </li><li> <a href="#m68k-x-x">m68k-*-*</a>
  94. </li><li> <a href="#m68k-uclinux">m68k-uclinux</a>
  95. </li><li> <a href="#microblaze-x-elf">microblaze-*-elf</a>
  96. </li><li> <a href="#mips-x-x">mips-*-*</a>
  97. </li><li> <a href="#nds32le-x-elf">nds32le-*-elf</a>
  98. </li><li> <a href="#nds32be-x-elf">nds32be-*-elf</a>
  99. </li><li> <a href="#nvptx-x-none">nvptx-*-none</a>
  100. </li><li> <a href="#or1k-x-elf">or1k-*-elf</a>
  101. </li><li> <a href="#or1k-x-linux">or1k-*-linux</a>
  102. </li><li> <a href="#powerpc-x-x">powerpc*-*-*</a>
  103. </li><li> <a href="#powerpc-x-darwin">powerpc-*-darwin*</a>
  104. </li><li> <a href="#powerpc-x-elf">powerpc-*-elf</a>
  105. </li><li> <a href="#powerpc-x-linux-gnu">powerpc*-*-linux-gnu*</a>
  106. </li><li> <a href="#powerpc-x-netbsd">powerpc-*-netbsd*</a>
  107. </li><li> <a href="#powerpc-x-eabisim">powerpc-*-eabisim</a>
  108. </li><li> <a href="#powerpc-x-eabi">powerpc-*-eabi</a>
  109. </li><li> <a href="#powerpcle-x-elf">powerpcle-*-elf</a>
  110. </li><li> <a href="#powerpcle-x-eabisim">powerpcle-*-eabisim</a>
  111. </li><li> <a href="#powerpcle-x-eabi">powerpcle-*-eabi</a>
  112. </li><li> <a href="#riscv32-x-elf">riscv32-*-elf</a>
  113. </li><li> <a href="#riscv32-x-linux">riscv32-*-linux</a>
  114. </li><li> <a href="#riscv64-x-elf">riscv64-*-elf</a>
  115. </li><li> <a href="#riscv64-x-linux">riscv64-*-linux</a>
  116. </li><li> <a href="#s390-x-linux">s390-*-linux*</a>
  117. </li><li> <a href="#s390x-x-linux">s390x-*-linux*</a>
  118. </li><li> <a href="#s390x-ibm-tpf">s390x-ibm-tpf*</a>
  119. </li><li> <a href="#x-x-solaris2">*-*-solaris2*</a>
  120. </li><li> <a href="#sparc-x-x">sparc*-*-*</a>
  121. </li><li> <a href="#sparc-sun-solaris2">sparc-sun-solaris2*</a>
  122. </li><li> <a href="#sparc-x-linux">sparc-*-linux*</a>
  123. </li><li> <a href="#sparc64-x-solaris2">sparc64-*-solaris2*</a>
  124. </li><li> <a href="#sparcv9-x-solaris2">sparcv9-*-solaris2*</a>
  125. </li><li> <a href="#c6x-x-x">c6x-*-*</a>
  126. </li><li> <a href="#tilegx-x-linux">tilegx-*-linux*</a>
  127. </li><li> <a href="#tilegxbe-x-linux">tilegxbe-*-linux*</a>
  128. </li><li> <a href="#tilepro-x-linux">tilepro-*-linux*</a>
  129. </li><li> <a href="#visium-x-elf">visium-*-elf</a>
  130. </li><li> <a href="#x-x-vxworks">*-*-vxworks*</a>
  131. </li><li> <a href="#x86-64-x-x">x86_64-*-*, amd64-*-*</a>
  132. </li><li> <a href="#x86-64-x-solaris2">x86_64-*-solaris2*</a>
  133. </li><li> <a href="#xtensa-x-elf">xtensa*-*-elf</a>
  134. </li><li> <a href="#xtensa-x-linux">xtensa*-*-linux*</a>
  135. </li><li> <a href="#windows">Microsoft Windows</a>
  136. </li><li> <a href="#x-x-cygwin">*-*-cygwin</a>
  137. </li><li> <a href="#x-x-mingw32">*-*-mingw32</a>
  138. </li><li> <a href="#os2">OS/2</a>
  139. </li><li> <a href="#older">Older systems</a>
  140. </li></ul>
  141. <ul>
  142. <li> <a href="#elf">all ELF targets</a> (SVR4, Solaris 2, etc.)
  143. </li></ul>
  144. <!-- -------- host/target specific issues start here ---------------- -->
  145. <hr />
  146. <a name="aarch64-x-x"></a><a name="aarch64*-*-*"></a>
  147. <h3 class="heading">aarch64*-*-*</h3>
  148. <p>Binutils pre 2.24 does not have support for selecting <samp>-mabi</samp> and
  149. does not support ILP32. If it is used to build GCC 4.9 or later, GCC will
  150. not support option <samp>-mabi=ilp32</samp>.
  151. </p>
  152. <p>To enable a workaround for the Cortex-A53 erratum number 835769 by default
  153. (for all CPUs regardless of -mcpu option given) at configure time use the
  154. <samp>--enable-fix-cortex-a53-835769</samp> option. This will enable the fix by
  155. default and can be explicitly disabled during compilation by passing the
  156. <samp>-mno-fix-cortex-a53-835769</samp> option. Conversely,
  157. <samp>--disable-fix-cortex-a53-835769</samp> will disable the workaround by
  158. default. The workaround is disabled by default if neither of
  159. <samp>--enable-fix-cortex-a53-835769</samp> or
  160. <samp>--disable-fix-cortex-a53-835769</samp> is given at configure time.
  161. </p>
  162. <p>To enable a workaround for the Cortex-A53 erratum number 843419 by default
  163. (for all CPUs regardless of -mcpu option given) at configure time use the
  164. <samp>--enable-fix-cortex-a53-843419</samp> option. This workaround is applied at
  165. link time. Enabling the workaround will cause GCC to pass the relevant option
  166. to the linker. It can be explicitly disabled during compilation by passing the
  167. <samp>-mno-fix-cortex-a53-843419</samp> option. Conversely,
  168. <samp>--disable-fix-cortex-a53-843419</samp> will disable the workaround by default.
  169. The workaround is disabled by default if neither of
  170. <samp>--enable-fix-cortex-a53-843419</samp> or
  171. <samp>--disable-fix-cortex-a53-843419</samp> is given at configure time.
  172. </p>
  173. <p>To enable Branch Target Identification Mechanism and Return Address Signing by
  174. default at configure time use the <samp>--enable-standard-branch-protection</samp>
  175. option. This is equivalent to having <samp>-mbranch-protection=standard</samp>
  176. during compilation. This can be explicitly disabled during compilation by
  177. passing the <samp>-mbranch-protection=none</samp> option which turns off all
  178. types of branch protections. Conversely,
  179. <samp>--disable-standard-branch-protection</samp> will disable both the
  180. protections by default. This mechanism is turned off by default if neither
  181. of the options are given at configure time.
  182. </p>
  183. <hr />
  184. <a name="alpha-x-x"></a><a name="alpha*-*-*"></a>
  185. <h3 class="heading">alpha*-*-*</h3>
  186. <p>This section contains general configuration information for all
  187. Alpha-based platforms using ELF. In addition to reading this
  188. section, please read all other sections that match your target.
  189. </p>
  190. <hr />
  191. <a name="amd64-x-solaris2"></a><a name="amd64-*-solaris2*"></a>
  192. <h3 class="heading">amd64-*-solaris2*</h3>
  193. <p>This is a synonym for &lsquo;<samp>x86_64-*-solaris2*</samp>&rsquo;.
  194. </p>
  195. <hr />
  196. <a name="amdgcn-x-amdhsa"></a><a name="amdgcn-*-amdhsa"></a>
  197. <h3 class="heading">amdgcn-*-amdhsa</h3>
  198. <p>AMD GCN GPU target.
  199. </p>
  200. <p>Instead of GNU Binutils, you will need to install LLVM 6, or later, and copy
  201. <samp>bin/llvm-mc</samp> to <samp>amdgcn-amdhsa/bin/as</samp>,
  202. <samp>bin/lld</samp> to <samp>amdgcn-amdhsa/bin/ld</samp>,
  203. <samp>bin/llvm-nm</samp> to <samp>amdgcn-amdhsa/bin/nm</samp>, and
  204. <samp>bin/llvm-ar</samp> to both <samp>bin/amdgcn-amdhsa-ar</samp> and
  205. <samp>bin/amdgcn-amdhsa-ranlib</samp>.
  206. </p>
  207. <p>Use Newlib (2019-01-16, or newer).
  208. </p>
  209. <p>To run the binaries, install the HSA Runtime from the
  210. <a href="https://rocm.github.io">ROCm Platform</a>, and use
  211. <samp>libexec/gcc/amdhsa-amdhsa/<var>version</var>/gcn-run</samp> to launch them
  212. on the GPU.
  213. </p>
  214. <hr />
  215. <a name="arc-x-elf32"></a><a name="arc-*-elf32"></a>
  216. <h3 class="heading">arc-*-elf32</h3>
  217. <p>Use &lsquo;<samp>configure --target=arc-elf32 --with-cpu=<var>cpu</var> --enable-languages=&quot;c,c++&quot;</samp>&rsquo;
  218. to configure GCC, with <var>cpu</var> being one of &lsquo;<samp>arc600</samp>&rsquo;, &lsquo;<samp>arc601</samp>&rsquo;,
  219. or &lsquo;<samp>arc700</samp>&rsquo;.
  220. </p>
  221. <hr />
  222. <a name="arc-linux-uclibc"></a><a name="arc-linux-uclibc-1"></a>
  223. <h3 class="heading">arc-linux-uclibc</h3>
  224. <p>Use &lsquo;<samp>configure --target=arc-linux-uclibc --with-cpu=arc700 --enable-languages=&quot;c,c++&quot;</samp>&rsquo; to configure GCC.
  225. </p>
  226. <hr />
  227. <a name="arm-x-eabi"></a><a name="arm-*-eabi"></a>
  228. <h3 class="heading">arm-*-eabi</h3>
  229. <p>ARM-family processors.
  230. </p>
  231. <p>Building the Ada frontend commonly fails (an infinite loop executing
  232. <code>xsinfo</code>) if the host compiler is GNAT 4.8. Host compilers built from the
  233. GNAT 4.6, 4.9 or 5 release branches are known to succeed.
  234. </p>
  235. <hr />
  236. <a name="avr"></a><a name="avr-1"></a>
  237. <h3 class="heading">avr</h3>
  238. <p>ATMEL AVR-family micro controllers. These are used in embedded
  239. applications. There are no standard Unix configurations.
  240. See &ldquo;AVR Options&rdquo; in the main manual
  241. for the list of supported MCU types.
  242. </p>
  243. <p>Use &lsquo;<samp>configure --target=avr --enable-languages=&quot;c&quot;</samp>&rsquo; to configure GCC.
  244. </p>
  245. <p>Further installation notes and other useful information about AVR tools
  246. can also be obtained from:
  247. </p>
  248. <ul>
  249. <li> <a href="http://www.nongnu.org/avr/">http://www.nongnu.org/avr/</a>
  250. </li><li> <a href="http://www.amelek.gda.pl/avr/">http://www.amelek.gda.pl/avr/</a>
  251. </li></ul>
  252. <p>The following error:
  253. </p><div class="smallexample">
  254. <pre class="smallexample">Error: register required
  255. </pre></div>
  256. <p>indicates that you should upgrade to a newer version of the binutils.
  257. </p>
  258. <hr />
  259. <a name="bfin"></a><a name="Blackfin"></a>
  260. <h3 class="heading">Blackfin</h3>
  261. <p>The Blackfin processor, an Analog Devices DSP.
  262. See &ldquo;Blackfin Options&rdquo; in the main manual
  263. </p>
  264. <p>More information, and a version of binutils with support for this processor,
  265. are available at <a href="https://sourceforge.net/projects/adi-toolchain/">https://sourceforge.net/projects/adi-toolchain/</a>.
  266. </p>
  267. <hr />
  268. <a name="cr16"></a><a name="CR16"></a>
  269. <h3 class="heading">CR16</h3>
  270. <p>The CR16 CompactRISC architecture is a 16-bit architecture. This
  271. architecture is used in embedded applications.
  272. </p>
  273. <p>See &ldquo;CR16 Options&rdquo; in the main manual for a list of CR16-specific options.
  274. </p>
  275. <p>Use &lsquo;<samp>configure --target=cr16-elf --enable-languages=c,c++</samp>&rsquo; to configure
  276. GCC&nbsp;for building a CR16 elf cross-compiler.
  277. </p>
  278. <p>Use &lsquo;<samp>configure --target=cr16-uclinux --enable-languages=c,c++</samp>&rsquo; to
  279. configure GCC&nbsp;for building a CR16 uclinux cross-compiler.
  280. </p>
  281. <hr />
  282. <a name="cris"></a><a name="CRIS"></a>
  283. <h3 class="heading">CRIS</h3>
  284. <p>CRIS is the CPU architecture in Axis Communications ETRAX system-on-a-chip
  285. series. These are used in embedded applications.
  286. </p>
  287. <p>See &ldquo;CRIS Options&rdquo; in the main manual
  288. for a list of CRIS-specific options.
  289. </p>
  290. <p>There are a few different CRIS targets:
  291. </p><dl compact="compact">
  292. <dt><code>cris-axis-elf</code></dt>
  293. <dd><p>Mainly for monolithic embedded systems. Includes a multilib for the
  294. &lsquo;<samp>v10</samp>&rsquo; core used in &lsquo;<samp>ETRAX 100 LX</samp>&rsquo;.
  295. </p></dd>
  296. <dt><code>cris-axis-linux-gnu</code></dt>
  297. <dd><p>A GNU/Linux port for the CRIS architecture, currently targeting
  298. &lsquo;<samp>ETRAX 100 LX</samp>&rsquo; by default.
  299. </p></dd>
  300. </dl>
  301. <p>Pre-packaged tools can be obtained from
  302. <a href="ftp://ftp.axis.com/pub/axis/tools/cris/compiler-kit/">ftp://ftp.axis.com/pub/axis/tools/cris/compiler-kit/</a>. More
  303. information about this platform is available at
  304. <a href="http://developer.axis.com/">http://developer.axis.com/</a>.
  305. </p>
  306. <hr />
  307. <a name="dos"></a><a name="DOS"></a>
  308. <h3 class="heading">DOS</h3>
  309. <p>Please have a look at the <a href="binaries.html">binaries page</a>.
  310. </p>
  311. <p>You cannot install GCC by itself on MSDOS; it will not compile under
  312. any MSDOS compiler except itself. You need to get the complete
  313. compilation package DJGPP, which includes binaries as well as sources,
  314. and includes all the necessary compilation tools and libraries.
  315. </p>
  316. <hr />
  317. <a name="epiphany-x-elf"></a><a name="epiphany-*-elf"></a>
  318. <h3 class="heading">epiphany-*-elf</h3>
  319. <p>Adapteva Epiphany.
  320. This configuration is intended for embedded systems.
  321. </p>
  322. <hr />
  323. <a name="x-x-freebsd"></a><a name="g_t*-*-freebsd*"></a>
  324. <h3 class="heading">*-*-freebsd*</h3>
  325. <p>Support for FreeBSD 1 was discontinued in GCC 3.2. Support for
  326. FreeBSD 2 (and any mutant a.out variants of FreeBSD 3) was
  327. discontinued in GCC 4.0.
  328. </p>
  329. <p>In order to better utilize FreeBSD base system functionality and match
  330. the configuration of the system compiler, GCC 4.5 and above as well as
  331. GCC 4.4 past 2010-06-20 leverage SSP support in libc (which is present
  332. on FreeBSD 7 or later) and the use of <code>__cxa_atexit</code> by default
  333. (on FreeBSD 6 or later). The use of <code>dl_iterate_phdr</code> inside
  334. <samp>libgcc_s.so.1</samp> and boehm-gc (on FreeBSD 7 or later) is enabled
  335. by GCC 4.5 and above.
  336. </p>
  337. <p>We support FreeBSD using the ELF file format with DWARF 2 debugging
  338. for all CPU architectures. You may use <samp>-gstabs</samp> instead of
  339. <samp>-g</samp>, if you really want the old debugging format. There are
  340. no known issues with mixing object files and libraries with different
  341. debugging formats. Otherwise, this release of GCC should now match
  342. more of the configuration used in the stock FreeBSD configuration of
  343. GCC. In particular, <samp>--enable-threads</samp> is now configured by
  344. default. However, as a general user, do not attempt to replace the
  345. system compiler with this release. Known to bootstrap and check with
  346. good results on FreeBSD 7.2-STABLE. In the past, known to bootstrap
  347. and check with good results on FreeBSD 3.0, 3.4, 4.0, 4.2, 4.3, 4.4,
  348. 4.5, 4.8, 4.9 and 5-CURRENT.
  349. </p>
  350. <p>The version of binutils installed in <samp>/usr/bin</samp> probably works
  351. with this release of GCC. Bootstrapping against the latest GNU
  352. binutils and/or the version found in <samp>/usr/ports/devel/binutils</samp> has
  353. been known to enable additional features and improve overall testsuite
  354. results. However, it is currently known that boehm-gc may not configure
  355. properly on FreeBSD prior to the FreeBSD 7.0 release with GNU binutils
  356. after 2.16.1.
  357. </p>
  358. <hr />
  359. <a name="ft32-x-elf"></a><a name="ft32-*-elf"></a>
  360. <h3 class="heading">ft32-*-elf</h3>
  361. <p>The FT32 processor.
  362. This configuration is intended for embedded systems.
  363. </p>
  364. <hr />
  365. <a name="h8300-hms"></a><a name="h8300-hms-1"></a>
  366. <h3 class="heading">h8300-hms</h3>
  367. <p>Renesas H8/300 series of processors.
  368. </p>
  369. <p>Please have a look at the <a href="binaries.html">binaries page</a>.
  370. </p>
  371. <p>The calling convention and structure layout has changed in release 2.6.
  372. All code must be recompiled. The calling convention now passes the
  373. first three arguments in function calls in registers. Structures are no
  374. longer a multiple of 2 bytes.
  375. </p>
  376. <hr />
  377. <a name="hppa-hp-hpux"></a><a name="hppa*-hp-hpux*"></a>
  378. <h3 class="heading">hppa*-hp-hpux*</h3>
  379. <p>Support for HP-UX version 9 and older was discontinued in GCC 3.4.
  380. </p>
  381. <p>We require using gas/binutils on all hppa platforms. Version 2.19 or
  382. later is recommended.
  383. </p>
  384. <p>It may be helpful to configure GCC with the
  385. <a href="./configure.html#with-gnu-as"><samp>--with-gnu-as</samp></a> and
  386. <samp>--with-as=&hellip;</samp> options to ensure that GCC can find GAS.
  387. </p>
  388. <p>The HP assembler should not be used with GCC. It is rarely tested and may
  389. not work. It shouldn&rsquo;t be used with any languages other than C due to its
  390. many limitations.
  391. </p>
  392. <p>Specifically, <samp>-g</samp> does not work (HP-UX uses a peculiar debugging
  393. format which GCC does not know about). It also inserts timestamps
  394. into each object file it creates, causing the 3-stage comparison test to
  395. fail during a bootstrap. You should be able to continue by saying
  396. &lsquo;<samp>make all-host all-target</samp>&rsquo; after getting the failure from &lsquo;<samp>make</samp>&rsquo;.
  397. </p>
  398. <p>Various GCC features are not supported. For example, it does not support weak
  399. symbols or alias definitions. As a result, explicit template instantiations
  400. are required when using C++. This makes it difficult if not impossible to
  401. build many C++ applications.
  402. </p>
  403. <p>There are two default scheduling models for instructions. These are
  404. PROCESSOR_7100LC and PROCESSOR_8000. They are selected from the pa-risc
  405. architecture specified for the target machine when configuring.
  406. PROCESSOR_8000 is the default. PROCESSOR_7100LC is selected when
  407. the target is a &lsquo;<samp>hppa1*</samp>&rsquo; machine.
  408. </p>
  409. <p>The PROCESSOR_8000 model is not well suited to older processors. Thus,
  410. it is important to completely specify the machine architecture when
  411. configuring if you want a model other than PROCESSOR_8000. The macro
  412. TARGET_SCHED_DEFAULT can be defined in BOOT_CFLAGS if a different
  413. default scheduling model is desired.
  414. </p>
  415. <p>As of GCC 4.0, GCC uses the UNIX 95 namespace for HP-UX 10.10
  416. through 11.00, and the UNIX 98 namespace for HP-UX 11.11 and later.
  417. This namespace change might cause problems when bootstrapping with
  418. an earlier version of GCC or the HP compiler as essentially the same
  419. namespace is required for an entire build. This problem can be avoided
  420. in a number of ways. With HP cc, <code>UNIX_STD</code> can be set to &lsquo;<samp>95</samp>&rsquo;
  421. or &lsquo;<samp>98</samp>&rsquo;. Another way is to add an appropriate set of predefines
  422. to <code>CC</code>. The description for the <samp>munix=</samp> option contains
  423. a list of the predefines used with each standard.
  424. </p>
  425. <p>More specific information to &lsquo;<samp>hppa*-hp-hpux*</samp>&rsquo; targets follows.
  426. </p>
  427. <hr />
  428. <a name="hppa-hp-hpux10"></a><a name="hppa*-hp-hpux10"></a>
  429. <h3 class="heading">hppa*-hp-hpux10</h3>
  430. <p>For hpux10.20, we <em>highly</em> recommend you pick up the latest sed patch
  431. <code>PHCO_19798</code> from HP.
  432. </p>
  433. <p>The C++ ABI has changed incompatibly in GCC 4.0. COMDAT subspaces are
  434. used for one-only code and data. This resolves many of the previous
  435. problems in using C++ on this target. However, the ABI is not compatible
  436. with the one implemented under HP-UX 11 using secondary definitions.
  437. </p>
  438. <hr />
  439. <a name="hppa-hp-hpux11"></a><a name="hppa*-hp-hpux11"></a>
  440. <h3 class="heading">hppa*-hp-hpux11</h3>
  441. <p>GCC 3.0 and up support HP-UX 11. GCC 2.95.x is not supported and cannot
  442. be used to compile GCC 3.0 and up.
  443. </p>
  444. <p>The libffi library haven&rsquo;t been ported to 64-bit HP-UX&nbsp;and doesn&rsquo;t build.
  445. </p>
  446. <p>Refer to <a href="binaries.html">binaries</a> for information about obtaining
  447. precompiled GCC binaries for HP-UX. Precompiled binaries must be obtained
  448. to build the Ada language as it cannot be bootstrapped using C. Ada is
  449. only available for the 32-bit PA-RISC runtime.
  450. </p>
  451. <p>Starting with GCC 3.4 an ISO C compiler is required to bootstrap. The
  452. bundled compiler supports only traditional C; you will need either HP&rsquo;s
  453. unbundled compiler, or a binary distribution of GCC.
  454. </p>
  455. <p>It is possible to build GCC 3.3 starting with the bundled HP compiler,
  456. but the process requires several steps. GCC 3.3 can then be used to
  457. build later versions.
  458. </p>
  459. <p>There are several possible approaches to building the distribution.
  460. Binutils can be built first using the HP tools. Then, the GCC
  461. distribution can be built. The second approach is to build GCC
  462. first using the HP tools, then build binutils, then rebuild GCC.
  463. There have been problems with various binary distributions, so it
  464. is best not to start from a binary distribution.
  465. </p>
  466. <p>On 64-bit capable systems, there are two distinct targets. Different
  467. installation prefixes must be used if both are to be installed on
  468. the same system. The &lsquo;<samp>hppa[1-2]*-hp-hpux11*</samp>&rsquo; target generates code
  469. for the 32-bit PA-RISC runtime architecture and uses the HP linker.
  470. The &lsquo;<samp>hppa64-hp-hpux11*</samp>&rsquo; target generates 64-bit code for the
  471. PA-RISC 2.0 architecture.
  472. </p>
  473. <p>The script config.guess now selects the target type based on the compiler
  474. detected during configuration. You must define <code>PATH</code> or <code>CC</code> so
  475. that configure finds an appropriate compiler for the initial bootstrap.
  476. When <code>CC</code> is used, the definition should contain the options that are
  477. needed whenever <code>CC</code> is used.
  478. </p>
  479. <p>Specifically, options that determine the runtime architecture must be
  480. in <code>CC</code> to correctly select the target for the build. It is also
  481. convenient to place many other compiler options in <code>CC</code>. For example,
  482. <code>CC=&quot;cc -Ac +DA2.0W -Wp,-H16376 -D_CLASSIC_TYPES -D_HPUX_SOURCE&quot;</code>
  483. can be used to bootstrap the GCC 3.3 branch with the HP compiler in
  484. 64-bit K&amp;R/bundled mode. The <samp>+DA2.0W</samp> option will result in
  485. the automatic selection of the &lsquo;<samp>hppa64-hp-hpux11*</samp>&rsquo; target. The
  486. macro definition table of cpp needs to be increased for a successful
  487. build with the HP compiler. _CLASSIC_TYPES and _HPUX_SOURCE need to
  488. be defined when building with the bundled compiler, or when using the
  489. <samp>-Ac</samp> option. These defines aren&rsquo;t necessary with <samp>-Ae</samp>.
  490. </p>
  491. <p>It is best to explicitly configure the &lsquo;<samp>hppa64-hp-hpux11*</samp>&rsquo; target
  492. with the <samp>--with-ld=&hellip;</samp> option. This overrides the standard
  493. search for ld. The two linkers supported on this target require different
  494. commands. The default linker is determined during configuration. As a
  495. result, it&rsquo;s not possible to switch linkers in the middle of a GCC build.
  496. This has been reported to sometimes occur in unified builds of binutils
  497. and GCC.
  498. </p>
  499. <p>A recent linker patch must be installed for the correct operation of
  500. GCC 3.3 and later. <code>PHSS_26559</code> and <code>PHSS_24304</code> are the
  501. oldest linker patches that are known to work. They are for HP-UX
  502. 11.00 and 11.11, respectively. <code>PHSS_24303</code>, the companion to
  503. <code>PHSS_24304</code>, might be usable but it hasn&rsquo;t been tested. These
  504. patches have been superseded. Consult the HP patch database to obtain
  505. the currently recommended linker patch for your system.
  506. </p>
  507. <p>The patches are necessary for the support of weak symbols on the
  508. 32-bit port, and for the running of initializers and finalizers. Weak
  509. symbols are implemented using SOM secondary definition symbols. Prior
  510. to HP-UX 11, there are bugs in the linker support for secondary symbols.
  511. The patches correct a problem of linker core dumps creating shared
  512. libraries containing secondary symbols, as well as various other
  513. linking issues involving secondary symbols.
  514. </p>
  515. <p>GCC 3.3 uses the ELF DT_INIT_ARRAY and DT_FINI_ARRAY capabilities to
  516. run initializers and finalizers on the 64-bit port. The 32-bit port
  517. uses the linker <samp>+init</samp> and <samp>+fini</samp> options for the same
  518. purpose. The patches correct various problems with the +init/+fini
  519. options, including program core dumps. Binutils 2.14 corrects a
  520. problem on the 64-bit port resulting from HP&rsquo;s non-standard use of
  521. the .init and .fini sections for array initializers and finalizers.
  522. </p>
  523. <p>Although the HP and GNU linkers are both supported for the
  524. &lsquo;<samp>hppa64-hp-hpux11*</samp>&rsquo; target, it is strongly recommended that the
  525. HP linker be used for link editing on this target.
  526. </p>
  527. <p>At this time, the GNU linker does not support the creation of long
  528. branch stubs. As a result, it cannot successfully link binaries
  529. containing branch offsets larger than 8 megabytes. In addition,
  530. there are problems linking shared libraries, linking executables
  531. with <samp>-static</samp>, and with dwarf2 unwind and exception support.
  532. It also doesn&rsquo;t provide stubs for internal calls to global functions
  533. in shared libraries, so these calls cannot be overloaded.
  534. </p>
  535. <p>The HP dynamic loader does not support GNU symbol versioning, so symbol
  536. versioning is not supported. It may be necessary to disable symbol
  537. versioning with <samp>--disable-symvers</samp> when using GNU ld.
  538. </p>
  539. <p>POSIX threads are the default. The optional DCE thread library is not
  540. supported, so <samp>--enable-threads=dce</samp> does not work.
  541. </p>
  542. <hr />
  543. <a name="x-x-linux-gnu"></a><a name="g_t*-*-linux-gnu"></a>
  544. <h3 class="heading">*-*-linux-gnu</h3>
  545. <p>Versions of libstdc++-v3 starting with 3.2.1 require bug fixes present
  546. in glibc 2.2.5 and later. More information is available in the
  547. libstdc++-v3 documentation.
  548. </p>
  549. <hr />
  550. <a name="ix86-x-linux"></a><a name="i_003f86-*-linux*"></a>
  551. <h3 class="heading">i?86-*-linux*</h3>
  552. <p>As of GCC 3.3, binutils 2.13.1 or later is required for this platform.
  553. See <a href="http://gcc.gnu.org/PR10877">bug 10877</a> for more information.
  554. </p>
  555. <p>If you receive Signal 11 errors when building on GNU/Linux, then it is
  556. possible you have a hardware problem. Further information on this can be
  557. found on <a href="http://www.bitwizard.nl/sig11/">www.bitwizard.nl</a>.
  558. </p>
  559. <hr />
  560. <a name="ix86-x-solaris2"></a><a name="i_003f86-*-solaris2*"></a>
  561. <h3 class="heading">i?86-*-solaris2*</h3>
  562. <p>Use this for Solaris 11.3 or later on x86 and x86-64 systems. Starting
  563. with GCC 4.7, there is also a 64-bit &lsquo;<samp>amd64-*-solaris2*</samp>&rsquo; or
  564. &lsquo;<samp>x86_64-*-solaris2*</samp>&rsquo; configuration that corresponds to
  565. &lsquo;<samp>sparcv9-sun-solaris2*</samp>&rsquo;.
  566. </p>
  567. <p>It is recommended that you configure GCC to use the GNU assembler. The
  568. versions included in Solaris 11.3, from GNU binutils 2.23.1 or
  569. newer (available as <samp>/usr/bin/gas</samp> and
  570. <samp>/usr/gnu/bin/as</samp>), work fine. The current version, from GNU
  571. binutils 2.34, is known to work. Recent versions of the Solaris assembler in
  572. <samp>/usr/bin/as</samp> work almost as well, though.
  573. </p>
  574. <p>For linking, the Solaris linker is preferred. If you want to use the GNU
  575. linker instead, the version in Solaris 11.3, from GNU binutils 2.23.1 or
  576. newer (in <samp>/usr/gnu/bin/ld</samp> and <samp>/usr/bin/gld</samp>), works,
  577. as does the latest version, from GNU binutils 2.34.
  578. </p>
  579. <p>To use GNU <code>as</code>, configure with the options
  580. <samp>--with-gnu-as --with-as=/usr/gnu/bin/as</samp>. It may be necessary
  581. to configure with <samp>--without-gnu-ld --with-ld=/usr/ccs/bin/ld</samp> to
  582. guarantee use of Solaris <code>ld</code>.
  583. </p>
  584. <hr />
  585. <a name="ia64-x-linux"></a><a name="ia64-*-linux"></a>
  586. <h3 class="heading">ia64-*-linux</h3>
  587. <p>IA-64 processor (also known as IPF, or Itanium Processor Family)
  588. running GNU/Linux.
  589. </p>
  590. <p>If you are using the installed system libunwind library with
  591. <samp>--with-system-libunwind</samp>, then you must use libunwind 0.98 or
  592. later.
  593. </p>
  594. <p>None of the following versions of GCC has an ABI that is compatible
  595. with any of the other versions in this list, with the exception that
  596. Red Hat 2.96 and Trillian 000171 are compatible with each other:
  597. 3.1, 3.0.2, 3.0.1, 3.0, Red Hat 2.96, and Trillian 000717.
  598. This primarily affects C++ programs and programs that create shared libraries.
  599. GCC 3.1 or later is recommended for compiling linux, the kernel.
  600. As of version 3.1 GCC is believed to be fully ABI compliant, and hence no
  601. more major ABI changes are expected.
  602. </p>
  603. <hr />
  604. <a name="ia64-x-hpux"></a><a name="ia64-*-hpux*"></a>
  605. <h3 class="heading">ia64-*-hpux*</h3>
  606. <p>Building GCC on this target requires the GNU Assembler. The bundled HP
  607. assembler will not work. To prevent GCC from using the wrong assembler,
  608. the option <samp>--with-gnu-as</samp> may be necessary.
  609. </p>
  610. <p>The GCC libunwind library has not been ported to HPUX. This means that for
  611. GCC versions 3.2.3 and earlier, <samp>--enable-libunwind-exceptions</samp>
  612. is required to build GCC. For GCC 3.3 and later, this is the default.
  613. For gcc 3.4.3 and later, <samp>--enable-libunwind-exceptions</samp> is
  614. removed and the system libunwind library will always be used.
  615. </p>
  616. <hr />
  617. <!-- rs6000-ibm-aix*, powerpc-ibm-aix* -->
  618. <a name="x-ibm-aix"></a><a name="g_t*-ibm-aix*"></a>
  619. <h3 class="heading">*-ibm-aix*</h3>
  620. <p>Support for AIX version 3 and older was discontinued in GCC 3.4.
  621. Support for AIX version 4.2 and older was discontinued in GCC 4.5.
  622. </p>
  623. <p>&ldquo;out of memory&rdquo; bootstrap failures may indicate a problem with
  624. process resource limits (ulimit). Hard limits are configured in the
  625. <samp>/etc/security/limits</samp> system configuration file.
  626. </p>
  627. <p>GCC 4.9 and above require a C++ compiler for bootstrap. IBM VAC++ / xlC
  628. cannot bootstrap GCC. xlc can bootstrap an older version of GCC and
  629. G++ can bootstrap recent releases of GCC.
  630. </p>
  631. <p>GCC can bootstrap with recent versions of IBM XLC, but bootstrapping
  632. with an earlier release of GCC is recommended. Bootstrapping with XLC
  633. requires a larger data segment, which can be enabled through the
  634. <var>LDR_CNTRL</var> environment variable, e.g.,
  635. </p>
  636. <div class="smallexample">
  637. <pre class="smallexample">% LDR_CNTRL=MAXDATA=0x50000000
  638. % export LDR_CNTRL
  639. </pre></div>
  640. <p>One can start with a pre-compiled version of GCC to build from
  641. sources. One may delete GCC&rsquo;s &ldquo;fixed&rdquo; header files when starting
  642. with a version of GCC built for an earlier release of AIX.
  643. </p>
  644. <p>To speed up the configuration phases of bootstrapping and installing GCC,
  645. one may use GNU Bash instead of AIX <code>/bin/sh</code>, e.g.,
  646. </p>
  647. <div class="smallexample">
  648. <pre class="smallexample">% CONFIG_SHELL=/opt/freeware/bin/bash
  649. % export CONFIG_SHELL
  650. </pre></div>
  651. <p>and then proceed as described in <a href="build.html">the build
  652. instructions</a>, where we strongly recommend specifying an absolute path
  653. to invoke <var>srcdir</var>/configure.
  654. </p>
  655. <p>Because GCC on AIX is built as a 32-bit executable by default,
  656. (although it can generate 64-bit programs) the GMP and MPFR libraries
  657. required by gfortran must be 32-bit libraries. Building GMP and MPFR
  658. as static archive libraries works better than shared libraries.
  659. </p>
  660. <p>Errors involving <code>alloca</code> when building GCC generally are due
  661. to an incorrect definition of <code>CC</code> in the Makefile or mixing files
  662. compiled with the native C compiler and GCC. During the stage1 phase of
  663. the build, the native AIX compiler <strong>must</strong> be invoked as <code>cc</code>
  664. (not <code>xlc</code>). Once <code>configure</code> has been informed of
  665. <code>xlc</code>, one needs to use &lsquo;<samp>make distclean</samp>&rsquo; to remove the
  666. configure cache files and ensure that <code>CC</code> environment variable
  667. does not provide a definition that will confuse <code>configure</code>.
  668. If this error occurs during stage2 or later, then the problem most likely
  669. is the version of Make (see above).
  670. </p>
  671. <p>The native <code>as</code> and <code>ld</code> are recommended for
  672. bootstrapping on AIX. The GNU Assembler, GNU Linker, and GNU
  673. Binutils version 2.20 is the minimum level that supports bootstrap on
  674. AIX 5. The GNU Assembler has not been updated to support AIX 6&nbsp;or
  675. AIX 7. The native AIX tools do interoperate with GCC.
  676. </p>
  677. <p>AIX 7.1 added partial support for DWARF debugging, but full support
  678. requires AIX 7.1 TL03 SP7 that supports additional DWARF sections and
  679. fixes a bug in the assembler. AIX 7.1 TL03 SP5 distributed a version
  680. of libm.a missing important symbols; a fix for IV77796 will be
  681. included in SP6.
  682. </p>
  683. <p>AIX 5.3 TL10, AIX 6.1 TL05 and AIX 7.1 TL00 introduced an AIX
  684. assembler change that sometimes produces corrupt assembly files
  685. causing AIX linker errors. The bug breaks GCC bootstrap on AIX and
  686. can cause compilation failures with existing GCC installations. An
  687. AIX iFix for AIX 5.3 is available (APAR IZ98385 for AIX 5.3 TL10, APAR
  688. IZ98477 for AIX 5.3 TL11 and IZ98134 for AIX 5.3 TL12). AIX 5.3 TL11 SP8,
  689. AIX 5.3 TL12 SP5, AIX 6.1 TL04 SP11, AIX 6.1 TL05 SP7, AIX 6.1 TL06 SP6,
  690. AIX 6.1 TL07 and AIX 7.1 TL01 should include the fix.
  691. </p>
  692. <p>Building <samp>libstdc++.a</samp> requires a fix for an AIX Assembler bug
  693. APAR IY26685 (AIX 4.3) or APAR IY25528 (AIX 5.1). It also requires a
  694. fix for another AIX Assembler bug and a co-dependent AIX Archiver fix
  695. referenced as APAR IY53606 (AIX 5.2) or as APAR IY54774 (AIX 5.1)
  696. </p>
  697. <a name="TransferAixShobj"></a><p>&lsquo;<samp>libstdc++</samp>&rsquo; in GCC 3.4 increments the major version number of the
  698. shared object and GCC installation places the <samp>libstdc++.a</samp>
  699. shared library in a common location which will overwrite the and GCC
  700. 3.3 version of the shared library. Applications either need to be
  701. re-linked against the new shared library or the GCC 3.1 and GCC 3.3
  702. versions of the &lsquo;<samp>libstdc++</samp>&rsquo; shared object needs to be available
  703. to the AIX runtime loader. The GCC 3.1 &lsquo;<samp>libstdc++.so.4</samp>&rsquo;, if
  704. present, and GCC 3.3 &lsquo;<samp>libstdc++.so.5</samp>&rsquo; shared objects can be
  705. installed for runtime dynamic loading using the following steps to set
  706. the &lsquo;<samp>F_LOADONLY</samp>&rsquo; flag in the shared object for <em>each</em>
  707. multilib <samp>libstdc++.a</samp> installed:
  708. </p>
  709. <p>Extract the shared objects from the currently installed
  710. <samp>libstdc++.a</samp> archive:
  711. </p><div class="smallexample">
  712. <pre class="smallexample">% ar -x libstdc++.a libstdc++.so.4 libstdc++.so.5
  713. </pre></div>
  714. <p>Enable the &lsquo;<samp>F_LOADONLY</samp>&rsquo; flag so that the shared object will be
  715. available for runtime dynamic loading, but not linking:
  716. </p><div class="smallexample">
  717. <pre class="smallexample">% strip -e libstdc++.so.4 libstdc++.so.5
  718. </pre></div>
  719. <p>Archive the runtime-only shared object in the GCC 3.4
  720. <samp>libstdc++.a</samp> archive:
  721. </p><div class="smallexample">
  722. <pre class="smallexample">% ar -q libstdc++.a libstdc++.so.4 libstdc++.so.5
  723. </pre></div>
  724. <p>Eventually, the
  725. <a href="./configure.html#WithAixSoname"><samp>--with-aix-soname=svr4</samp></a>
  726. configure option may drop the need for this procedure for libraries that
  727. support it.
  728. </p>
  729. <p>Linking executables and shared libraries may produce warnings of
  730. duplicate symbols. The assembly files generated by GCC for AIX always
  731. have included multiple symbol definitions for certain global variable
  732. and function declarations in the original program. The warnings should
  733. not prevent the linker from producing a correct library or runnable
  734. executable.
  735. </p>
  736. <p>AIX 4.3 utilizes a &ldquo;large format&rdquo; archive to support both 32-bit and
  737. 64-bit object modules. The routines provided in AIX 4.3.0 and AIX 4.3.1
  738. to parse archive libraries did not handle the new format correctly.
  739. These routines are used by GCC and result in error messages during
  740. linking such as &ldquo;not a COFF file&rdquo;. The version of the routines shipped
  741. with AIX 4.3.1 should work for a 32-bit environment. The <samp>-g</samp>
  742. option of the archive command may be used to create archives of 32-bit
  743. objects using the original &ldquo;small format&rdquo;. A correct version of the
  744. routines is shipped with AIX 4.3.2 and above.
  745. </p>
  746. <p>Some versions of the AIX binder (linker) can fail with a relocation
  747. overflow severe error when the <samp>-bbigtoc</samp> option is used to link
  748. GCC-produced object files into an executable that overflows the TOC. A fix
  749. for APAR IX75823 (OVERFLOW DURING LINK WHEN USING GCC AND -BBIGTOC) is
  750. available from IBM Customer Support and from its
  751. <a href="http://techsupport.services.ibm.com/">techsupport.services.ibm.com</a>
  752. website as PTF U455193.
  753. </p>
  754. <p>The AIX 4.3.2.1 linker (bos.rte.bind_cmds Level 4.3.2.1) will dump core
  755. with a segmentation fault when invoked by any version of GCC. A fix for
  756. APAR IX87327 is available from IBM Customer Support and from its
  757. <a href="http://techsupport.services.ibm.com/">techsupport.services.ibm.com</a>
  758. website as PTF U461879. This fix is incorporated in AIX 4.3.3 and above.
  759. </p>
  760. <p>The initial assembler shipped with AIX 4.3.0 generates incorrect object
  761. files. A fix for APAR IX74254 (64BIT DISASSEMBLED OUTPUT FROM COMPILER FAILS
  762. TO ASSEMBLE/BIND) is available from IBM Customer Support and from its
  763. <a href="http://techsupport.services.ibm.com/">techsupport.services.ibm.com</a>
  764. website as PTF U453956. This fix is incorporated in AIX 4.3.1 and above.
  765. </p>
  766. <p>AIX provides National Language Support (NLS). Compilers and assemblers
  767. use NLS to support locale-specific representations of various data
  768. formats including floating-point numbers (e.g., &lsquo;<samp>.</samp>&rsquo; vs &lsquo;<samp>,</samp>&rsquo; for
  769. separating decimal fractions). There have been problems reported where
  770. GCC does not produce the same floating-point formats that the assembler
  771. expects. If one encounters this problem, set the <code>LANG</code>
  772. environment variable to &lsquo;<samp>C</samp>&rsquo; or &lsquo;<samp>En_US</samp>&rsquo;.
  773. </p>
  774. <p>A default can be specified with the <samp>-mcpu=<var>cpu_type</var></samp>
  775. switch and using the configure option <samp>--with-cpu-<var>cpu_type</var></samp>.
  776. </p>
  777. <hr />
  778. <a name="iq2000-x-elf"></a><a name="iq2000-*-elf"></a>
  779. <h3 class="heading">iq2000-*-elf</h3>
  780. <p>Vitesse IQ2000 processors. These are used in embedded
  781. applications. There are no standard Unix configurations.
  782. </p>
  783. <hr />
  784. <a name="lm32-x-elf"></a><a name="lm32-*-elf"></a>
  785. <h3 class="heading">lm32-*-elf</h3>
  786. <p>Lattice Mico32 processor.
  787. This configuration is intended for embedded systems.
  788. </p>
  789. <hr />
  790. <a name="lm32-x-uclinux"></a><a name="lm32-*-uclinux"></a>
  791. <h3 class="heading">lm32-*-uclinux</h3>
  792. <p>Lattice Mico32 processor.
  793. This configuration is intended for embedded systems running uClinux.
  794. </p>
  795. <hr />
  796. <a name="m32c-x-elf"></a><a name="m32c-*-elf"></a>
  797. <h3 class="heading">m32c-*-elf</h3>
  798. <p>Renesas M32C processor.
  799. This configuration is intended for embedded systems.
  800. </p>
  801. <hr />
  802. <a name="m32r-x-elf"></a><a name="m32r-*-elf"></a>
  803. <h3 class="heading">m32r-*-elf</h3>
  804. <p>Renesas M32R processor.
  805. This configuration is intended for embedded systems.
  806. </p>
  807. <hr />
  808. <a name="m68k-x-x"></a><a name="m68k-*-*"></a>
  809. <h3 class="heading">m68k-*-*</h3>
  810. <p>By default,
  811. &lsquo;<samp>m68k-*-elf*</samp>&rsquo;, &lsquo;<samp>m68k-*-rtems</samp>&rsquo;, &lsquo;<samp>m68k-*-uclinux</samp>&rsquo; and
  812. &lsquo;<samp>m68k-*-linux</samp>&rsquo;
  813. build libraries for both M680x0 and ColdFire processors. If you only
  814. need the M680x0 libraries, you can omit the ColdFire ones by passing
  815. <samp>--with-arch=m68k</samp> to <code>configure</code>. Alternatively, you
  816. can omit the M680x0 libraries by passing <samp>--with-arch=cf</samp> to
  817. <code>configure</code>. These targets default to 5206 or 5475 code as
  818. appropriate for the target system when
  819. configured with <samp>--with-arch=cf</samp> and 68020 code otherwise.
  820. </p>
  821. <p>The &lsquo;<samp>m68k-*-netbsd</samp>&rsquo; and
  822. &lsquo;<samp>m68k-*-openbsd</samp>&rsquo; targets also support the <samp>--with-arch</samp>
  823. option. They will generate ColdFire CFV4e code when configured with
  824. <samp>--with-arch=cf</samp> and 68020 code otherwise.
  825. </p>
  826. <p>You can override the default processors listed above by configuring
  827. with <samp>--with-cpu=<var>target</var></samp>. This <var>target</var> can either
  828. be a <samp>-mcpu</samp> argument or one of the following values:
  829. &lsquo;<samp>m68000</samp>&rsquo;, &lsquo;<samp>m68010</samp>&rsquo;, &lsquo;<samp>m68020</samp>&rsquo;, &lsquo;<samp>m68030</samp>&rsquo;,
  830. &lsquo;<samp>m68040</samp>&rsquo;, &lsquo;<samp>m68060</samp>&rsquo;, &lsquo;<samp>m68020-40</samp>&rsquo; and &lsquo;<samp>m68020-60</samp>&rsquo;.
  831. </p>
  832. <p>GCC requires at least binutils version 2.17 on these targets.
  833. </p>
  834. <hr />
  835. <a name="m68k-x-uclinux"></a><a name="m68k-*-uclinux"></a>
  836. <h3 class="heading">m68k-*-uclinux</h3>
  837. <p>GCC 4.3 changed the uClinux configuration so that it uses the
  838. &lsquo;<samp>m68k-linux-gnu</samp>&rsquo; ABI rather than the &lsquo;<samp>m68k-elf</samp>&rsquo; ABI.
  839. It also added improved support for C++ and flat shared libraries,
  840. both of which were ABI changes.
  841. </p>
  842. <hr />
  843. <a name="microblaze-x-elf"></a><a name="microblaze-*-elf"></a>
  844. <h3 class="heading">microblaze-*-elf</h3>
  845. <p>Xilinx MicroBlaze processor.
  846. This configuration is intended for embedded systems.
  847. </p>
  848. <hr />
  849. <a name="mips-x-x"></a><a name="mips-*-*"></a>
  850. <h3 class="heading">mips-*-*</h3>
  851. <p>If on a MIPS system you get an error message saying &ldquo;does not have gp
  852. sections for all it&rsquo;s [sic] sectons [sic]&rdquo;, don&rsquo;t worry about it. This
  853. happens whenever you use GAS with the MIPS linker, but there is not
  854. really anything wrong, and it is okay to use the output file. You can
  855. stop such warnings by installing the GNU linker.
  856. </p>
  857. <p>It would be nice to extend GAS to produce the gp tables, but they are
  858. optional, and there should not be a warning about their absence.
  859. </p>
  860. <p>The libstdc++ atomic locking routines for MIPS targets requires MIPS II
  861. and later. A patch went in just after the GCC 3.3 release to
  862. make &lsquo;<samp>mips*-*-*</samp>&rsquo; use the generic implementation instead. You can also
  863. configure for &lsquo;<samp>mipsel-elf</samp>&rsquo; as a workaround. The
  864. &lsquo;<samp>mips*-*-linux*</samp>&rsquo; target continues to use the MIPS II routines. More
  865. work on this is expected in future releases.
  866. </p>
  867. <p>The built-in <code>__sync_*</code> functions are available on MIPS II and
  868. later systems and others that support the &lsquo;<samp>ll</samp>&rsquo;, &lsquo;<samp>sc</samp>&rsquo; and
  869. &lsquo;<samp>sync</samp>&rsquo; instructions. This can be overridden by passing
  870. <samp>--with-llsc</samp> or <samp>--without-llsc</samp> when configuring GCC.
  871. Since the Linux kernel emulates these instructions if they are
  872. missing, the default for &lsquo;<samp>mips*-*-linux*</samp>&rsquo; targets is
  873. <samp>--with-llsc</samp>. The <samp>--with-llsc</samp> and
  874. <samp>--without-llsc</samp> configure options may be overridden at compile
  875. time by passing the <samp>-mllsc</samp> or <samp>-mno-llsc</samp> options to
  876. the compiler.
  877. </p>
  878. <p>MIPS systems check for division by zero (unless
  879. <samp>-mno-check-zero-division</samp> is passed to the compiler) by
  880. generating either a conditional trap or a break instruction. Using
  881. trap results in smaller code, but is only supported on MIPS II and
  882. later. Also, some versions of the Linux kernel have a bug that
  883. prevents trap from generating the proper signal (<code>SIGFPE</code>). To enable
  884. the use of break, use the <samp>--with-divide=breaks</samp>
  885. <code>configure</code> option when configuring GCC. The default is to
  886. use traps on systems that support them.
  887. </p>
  888. <hr />
  889. <a name="moxie-x-elf"></a><a name="moxie-*-elf"></a>
  890. <h3 class="heading">moxie-*-elf</h3>
  891. <p>The moxie processor.
  892. </p>
  893. <hr />
  894. <a name="msp430-x-elf"></a><a name="msp430-*-elf*"></a>
  895. <h3 class="heading">msp430-*-elf*</h3>
  896. <p>TI MSP430 processor.
  897. This configuration is intended for embedded systems.
  898. </p>
  899. <p>&lsquo;<samp>msp430-*-elf</samp>&rsquo; is the standard configuration with most GCC
  900. features enabled by default.
  901. </p>
  902. <p>&lsquo;<samp>msp430-*-elfbare</samp>&rsquo; is tuned for a bare-metal environment, and disables
  903. features related to shared libraries and other functionality not used for
  904. this device. This reduces code and data usage of the GCC libraries, resulting
  905. in a minimal run-time environment by default.
  906. </p>
  907. <p>Features disabled by default include:
  908. </p><ul>
  909. <li> transactional memory
  910. </li><li> __cxa_atexit
  911. </li></ul>
  912. <hr />
  913. <a name="nds32le-x-elf"></a><a name="nds32le-*-elf"></a>
  914. <h3 class="heading">nds32le-*-elf</h3>
  915. <p>Andes NDS32 target in little endian mode.
  916. </p>
  917. <hr />
  918. <a name="nds32be-x-elf"></a><a name="nds32be-*-elf"></a>
  919. <h3 class="heading">nds32be-*-elf</h3>
  920. <p>Andes NDS32 target in big endian mode.
  921. </p>
  922. <hr />
  923. <a name="nvptx-x-none"></a><a name="nvptx-*-none"></a>
  924. <h3 class="heading">nvptx-*-none</h3>
  925. <p>Nvidia PTX target.
  926. </p>
  927. <p>Instead of GNU binutils, you will need to install
  928. <a href="https://github.com/MentorEmbedded/nvptx-tools/">nvptx-tools</a>.
  929. Tell GCC where to find it:
  930. <samp>--with-build-time-tools=[install-nvptx-tools]/nvptx-none/bin</samp>.
  931. </p>
  932. <p>You will need newlib 3.0 git revision
  933. cd31fbb2aea25f94d7ecedc9db16dfc87ab0c316 or later. It can be
  934. automatically built together with GCC. For this, add a symbolic link
  935. to nvptx-newlib&rsquo;s <samp>newlib</samp> directory to the directory containing
  936. the GCC sources.
  937. </p>
  938. <p>Use the <samp>--disable-sjlj-exceptions</samp> and
  939. <samp>--enable-newlib-io-long-long</samp> options when configuring.
  940. </p>
  941. <hr />
  942. <a name="or1k-x-elf"></a><a name="or1k-*-elf"></a>
  943. <h3 class="heading">or1k-*-elf</h3>
  944. <p>The OpenRISC 1000 32-bit processor with delay slots.
  945. This configuration is intended for embedded systems.
  946. </p>
  947. <hr />
  948. <a name="or1k-x-linux"></a><a name="or1k-*-linux"></a>
  949. <h3 class="heading">or1k-*-linux</h3>
  950. <p>The OpenRISC 1000 32-bit processor with delay slots.
  951. </p>
  952. <hr />
  953. <a name="powerpc-x-x"></a><a name="powerpc-*-*"></a>
  954. <h3 class="heading">powerpc-*-*</h3>
  955. <p>You can specify a default version for the <samp>-mcpu=<var>cpu_type</var></samp>
  956. switch by using the configure option <samp>--with-cpu-<var>cpu_type</var></samp>.
  957. </p>
  958. <p>You will need GNU binutils 2.20 or newer.
  959. </p>
  960. <hr />
  961. <a name="powerpc-x-darwin"></a><a name="powerpc-*-darwin*"></a>
  962. <h3 class="heading">powerpc-*-darwin*</h3>
  963. <p>PowerPC running Darwin (Mac OS X kernel).
  964. </p>
  965. <p>Pre-installed versions of Mac OS X may not include any developer tools,
  966. meaning that you will not be able to build GCC from source. Tool
  967. binaries are available at
  968. <a href="https://opensource.apple.com">https://opensource.apple.com</a>.
  969. </p>
  970. <p>This version of GCC requires at least cctools-590.36. The
  971. cctools-590.36 package referenced from
  972. <a href="http://gcc.gnu.org/ml/gcc/2006-03/msg00507.html">http://gcc.gnu.org/ml/gcc/2006-03/msg00507.html</a> will not work
  973. on systems older than 10.3.9 (aka darwin7.9.0).
  974. </p>
  975. <hr />
  976. <a name="powerpc-x-elf"></a><a name="powerpc-*-elf"></a>
  977. <h3 class="heading">powerpc-*-elf</h3>
  978. <p>PowerPC system in big endian mode, running System V.4.
  979. </p>
  980. <hr />
  981. <a name="powerpc-x-linux-gnu"></a><a name="powerpc*-*-linux-gnu*"></a>
  982. <h3 class="heading">powerpc*-*-linux-gnu*</h3>
  983. <p>PowerPC system in big endian mode running Linux.
  984. </p>
  985. <hr />
  986. <a name="powerpc-x-netbsd"></a><a name="powerpc-*-netbsd*"></a>
  987. <h3 class="heading">powerpc-*-netbsd*</h3>
  988. <p>PowerPC system in big endian mode running NetBSD.
  989. </p>
  990. <hr />
  991. <a name="powerpc-x-eabisim"></a><a name="powerpc-*-eabisim"></a>
  992. <h3 class="heading">powerpc-*-eabisim</h3>
  993. <p>Embedded PowerPC system in big endian mode for use in running under the
  994. PSIM simulator.
  995. </p>
  996. <hr />
  997. <a name="powerpc-x-eabi"></a><a name="powerpc-*-eabi"></a>
  998. <h3 class="heading">powerpc-*-eabi</h3>
  999. <p>Embedded PowerPC system in big endian mode.
  1000. </p>
  1001. <hr />
  1002. <a name="powerpcle-x-elf"></a><a name="powerpcle-*-elf"></a>
  1003. <h3 class="heading">powerpcle-*-elf</h3>
  1004. <p>PowerPC system in little endian mode, running System V.4.
  1005. </p>
  1006. <hr />
  1007. <a name="powerpcle-x-eabisim"></a><a name="powerpcle-*-eabisim"></a>
  1008. <h3 class="heading">powerpcle-*-eabisim</h3>
  1009. <p>Embedded PowerPC system in little endian mode for use in running under
  1010. the PSIM simulator.
  1011. </p>
  1012. <hr />
  1013. <a name="powerpcle-x-eabi"></a><a name="powerpcle-*-eabi"></a>
  1014. <h3 class="heading">powerpcle-*-eabi</h3>
  1015. <p>Embedded PowerPC system in little endian mode.
  1016. </p>
  1017. <hr />
  1018. <a name="rl78-x-elf"></a><a name="rl78-*-elf"></a>
  1019. <h3 class="heading">rl78-*-elf</h3>
  1020. <p>The Renesas RL78 processor.
  1021. This configuration is intended for embedded systems.
  1022. </p>
  1023. <hr />
  1024. <a name="riscv32-x-elf"></a><a name="riscv32-*-elf"></a>
  1025. <h3 class="heading">riscv32-*-elf</h3>
  1026. <p>The RISC-V RV32 instruction set.
  1027. This configuration is intended for embedded systems.
  1028. This (and all other RISC-V) targets require the binutils 2.30 release.
  1029. </p>
  1030. <hr />
  1031. <a name="riscv32-x-linux"></a><a name="riscv32-*-linux"></a>
  1032. <h3 class="heading">riscv32-*-linux</h3>
  1033. <p>The RISC-V RV32 instruction set running GNU/Linux.
  1034. This (and all other RISC-V) targets require the binutils 2.30 release.
  1035. </p>
  1036. <hr />
  1037. <a name="riscv64-x-elf"></a><a name="riscv64-*-elf"></a>
  1038. <h3 class="heading">riscv64-*-elf</h3>
  1039. <p>The RISC-V RV64 instruction set.
  1040. This configuration is intended for embedded systems.
  1041. This (and all other RISC-V) targets require the binutils 2.30 release.
  1042. </p>
  1043. <hr />
  1044. <a name="riscv64-x-linux"></a><a name="riscv64-*-linux"></a>
  1045. <h3 class="heading">riscv64-*-linux</h3>
  1046. <p>The RISC-V RV64 instruction set running GNU/Linux.
  1047. This (and all other RISC-V) targets require the binutils 2.30 release.
  1048. </p>
  1049. <hr />
  1050. <a name="rx-x-elf"></a><a name="rx-*-elf"></a>
  1051. <h3 class="heading">rx-*-elf</h3>
  1052. <p>The Renesas RX processor.
  1053. </p>
  1054. <hr />
  1055. <a name="s390-x-linux"></a><a name="s390-*-linux*"></a>
  1056. <h3 class="heading">s390-*-linux*</h3>
  1057. <p>S/390 system running GNU/Linux for S/390.
  1058. </p>
  1059. <hr />
  1060. <a name="s390x-x-linux"></a><a name="s390x-*-linux*"></a>
  1061. <h3 class="heading">s390x-*-linux*</h3>
  1062. <p>zSeries system (64-bit) running GNU/Linux for zSeries.
  1063. </p>
  1064. <hr />
  1065. <a name="s390x-ibm-tpf"></a><a name="s390x-ibm-tpf*"></a>
  1066. <h3 class="heading">s390x-ibm-tpf*</h3>
  1067. <p>zSeries system (64-bit) running TPF. This platform is
  1068. supported as cross-compilation target only.
  1069. </p>
  1070. <hr />
  1071. <a name="x-x-solaris2"></a><a name="g_t*-*-solaris2*"></a>
  1072. <h3 class="heading">*-*-solaris2*</h3>
  1073. <p>Support for Solaris 10 has been removed in GCC 10. Support for Solaris
  1074. 9 has been removed in GCC 5. Support for Solaris 8 has been removed in
  1075. GCC 4.8. Support for Solaris 7 has been removed in GCC 4.6.
  1076. </p>
  1077. <p>Solaris 11.3 provides GCC 4.5.2, 4.7.3, and 4.8.2 as
  1078. <code>/usr/gcc/4.5/bin/gcc</code> or similar. Newer Solaris versions
  1079. provide one or more of GCC 5, 7, and 9. Alternatively,
  1080. you can install a pre-built GCC to bootstrap and install GCC. See the
  1081. <a href="binaries.html">binaries page</a> for details.
  1082. </p>
  1083. <p>The Solaris 2 <code>/bin/sh</code> will often fail to configure
  1084. &lsquo;<samp>libstdc++-v3</samp>&rsquo;. We therefore recommend using the
  1085. following initial sequence of commands
  1086. </p>
  1087. <div class="smallexample">
  1088. <pre class="smallexample">% CONFIG_SHELL=/bin/ksh
  1089. % export CONFIG_SHELL
  1090. </pre></div>
  1091. <p>and proceed as described in <a href="configure.html">the configure instructions</a>.
  1092. In addition we strongly recommend specifying an absolute path to invoke
  1093. <code><var>srcdir</var>/configure</code>.
  1094. </p>
  1095. <p>In Solaris 11, you need to check for <code>system/header</code>,
  1096. <code>system/linker</code>, and <code>developer/assembler</code> packages.
  1097. </p>
  1098. <p>Trying to use the linker and other tools in
  1099. <samp>/usr/ucb</samp> to install GCC has been observed to cause trouble.
  1100. For example, the linker may hang indefinitely. The fix is to remove
  1101. <samp>/usr/ucb</samp> from your <code>PATH</code>.
  1102. </p>
  1103. <p>The build process works more smoothly with the legacy Solaris tools so, if you
  1104. have <samp>/usr/xpg4/bin</samp> in your <code>PATH</code>, we recommend that you place
  1105. <samp>/usr/bin</samp> before <samp>/usr/xpg4/bin</samp> for the duration of the build.
  1106. </p>
  1107. <p>We recommend the use of the Solaris assembler or the GNU assembler, in
  1108. conjunction with the Solaris linker. The GNU <code>as</code>
  1109. versions included in Solaris 11.3,
  1110. from GNU binutils 2.23.1 or newer (in <samp>/usr/bin/gas</samp> and
  1111. <samp>/usr/gnu/bin/as</samp>), are known to work.
  1112. The current version, from GNU binutils 2.34,
  1113. is known to work as well. Note that your mileage may vary
  1114. if you use a combination of the GNU tools and the Solaris tools: while the
  1115. combination GNU <code>as</code> + Solaris <code>ld</code> should reasonably work,
  1116. the reverse combination Solaris <code>as</code> + GNU <code>ld</code> may fail to
  1117. build or cause memory corruption at runtime in some cases for C++ programs.
  1118. GNU <code>ld</code> usually works as well. Again, the current
  1119. version (2.34) is known to work, but generally lacks platform specific
  1120. features, so better stay with Solaris <code>ld</code>. To use the LTO linker
  1121. plugin (<samp>-fuse-linker-plugin</samp>) with GNU <code>ld</code>, GNU
  1122. binutils <em>must</em> be configured with <samp>--enable-largefile</samp>.
  1123. </p>
  1124. <p>To enable symbol versioning in &lsquo;<samp>libstdc++</samp>&rsquo; with the Solaris linker,
  1125. you need to have any version of GNU <code>c++filt</code>, which is part of
  1126. GNU binutils. &lsquo;<samp>libstdc++</samp>&rsquo; symbol versioning will be disabled if no
  1127. appropriate version is found. Solaris <code>c++filt</code> from the Solaris
  1128. Studio compilers does <em>not</em> work.
  1129. </p>
  1130. <p>The versions of the GNU Multiple Precision Library (GMP), the MPFR
  1131. library and the MPC library bundled with Solaris 11.3 and later are
  1132. usually recent enough to match GCC&rsquo;s requirements. There are two
  1133. caveats:
  1134. </p>
  1135. <ul>
  1136. <li> While the version of the GMP library in Solaris 11.3 works with GCC, you
  1137. need to configure with <samp>--with-gmp-include=/usr/include/gmp</samp>.
  1138. </li><li> The version of the MPFR libary included in Solaris 11.3 is too old; you
  1139. need to provide a more recent one.
  1140. </li></ul>
  1141. <hr />
  1142. <a name="sparc-x-x"></a><a name="sparc*-*-*"></a>
  1143. <h3 class="heading">sparc*-*-*</h3>
  1144. <p>This section contains general configuration information for all
  1145. SPARC-based platforms. In addition to reading this section, please
  1146. read all other sections that match your target.
  1147. </p>
  1148. <p>Newer versions of the GNU Multiple Precision Library (GMP), the MPFR
  1149. library and the MPC library are known to be miscompiled by earlier
  1150. versions of GCC on these platforms. We therefore recommend the use
  1151. of the exact versions of these libraries listed as minimal versions
  1152. in <a href="prerequisites.html">the prerequisites</a>.
  1153. </p>
  1154. <hr />
  1155. <a name="sparc-sun-solaris2"></a><a name="sparc-sun-solaris2*"></a>
  1156. <h3 class="heading">sparc-sun-solaris2*</h3>
  1157. <p>When GCC is configured to use GNU binutils 2.14 or later, the binaries
  1158. produced are smaller than the ones produced using Solaris native tools;
  1159. this difference is quite significant for binaries containing debugging
  1160. information.
  1161. </p>
  1162. <p>Starting with Solaris 7, the operating system is capable of executing
  1163. 64-bit SPARC V9 binaries. GCC 3.1 and later properly supports
  1164. this; the <samp>-m64</samp> option enables 64-bit code generation.
  1165. However, if all you want is code tuned for the UltraSPARC CPU, you
  1166. should try the <samp>-mtune=ultrasparc</samp> option instead, which produces
  1167. code that, unlike full 64-bit code, can still run on non-UltraSPARC
  1168. machines.
  1169. </p>
  1170. <p>When configuring the GNU Multiple Precision Library (GMP), the MPFR
  1171. library or the MPC library on a Solaris 7 or later system, the canonical
  1172. target triplet must be specified as the <code>build</code> parameter on the
  1173. configure line. This target triplet can be obtained by invoking <code>./config.guess</code> in the toplevel source directory of GCC (and
  1174. not that of GMP or MPFR or MPC). For example on a Solaris 11 system:
  1175. </p>
  1176. <div class="smallexample">
  1177. <pre class="smallexample">% ./configure --build=sparc-sun-solaris2.11 --prefix=xxx
  1178. </pre></div>
  1179. <hr />
  1180. <a name="sparc-x-linux"></a><a name="sparc-*-linux*"></a>
  1181. <h3 class="heading">sparc-*-linux*</h3>
  1182. <hr />
  1183. <a name="sparc64-x-solaris2"></a><a name="sparc64-*-solaris2*"></a>
  1184. <h3 class="heading">sparc64-*-solaris2*</h3>
  1185. <p>When configuring a 64-bit-default GCC on Solaris/SPARC, you must use a
  1186. build compiler that generates 64-bit code, either by default or by
  1187. specifying &lsquo;<samp>CC='gcc -m64' CXX='gcc-m64'</samp>&rsquo; to <code>configure</code>.
  1188. Additionally, you <em>must</em> pass <samp>--build=sparc64-sun-solaris2.11</samp>
  1189. or <samp>--build=sparcv9-sun-solaris2.11</samp> because <samp>config.guess</samp>
  1190. misdetects this situation, which can cause build failures.
  1191. </p>
  1192. <p>When configuring the GNU Multiple Precision Library (GMP), the MPFR
  1193. library or the MPC library, the canonical target triplet must be specified
  1194. as the <code>build</code> parameter on the configure line. For example
  1195. on a Solaris 11 system:
  1196. </p>
  1197. <div class="smallexample">
  1198. <pre class="smallexample">% ./configure --build=sparc64-sun-solaris2.11 --prefix=xxx
  1199. </pre></div>
  1200. <hr />
  1201. <a name="sparcv9-x-solaris2"></a><a name="sparcv9-*-solaris2*"></a>
  1202. <h3 class="heading">sparcv9-*-solaris2*</h3>
  1203. <p>This is a synonym for &lsquo;<samp>sparc64-*-solaris2*</samp>&rsquo;.
  1204. </p>
  1205. <hr />
  1206. <a name="c6x-x-x"></a><a name="c6x-*-*"></a>
  1207. <h3 class="heading">c6x-*-*</h3>
  1208. <p>The C6X family of processors. This port requires binutils-2.22 or newer.
  1209. </p>
  1210. <hr />
  1211. <a name="tilegx-*-linux"></a><a name="tilegx-*-linux*"></a>
  1212. <h3 class="heading">tilegx-*-linux*</h3>
  1213. <p>The TILE-Gx processor in little endian mode, running GNU/Linux. This
  1214. port requires binutils-2.22 or newer.
  1215. </p>
  1216. <hr />
  1217. <a name="tilegxbe-*-linux"></a><a name="tilegxbe-*-linux*"></a>
  1218. <h3 class="heading">tilegxbe-*-linux*</h3>
  1219. <p>The TILE-Gx processor in big endian mode, running GNU/Linux. This
  1220. port requires binutils-2.23 or newer.
  1221. </p>
  1222. <hr />
  1223. <a name="tilepro-*-linux"></a><a name="tilepro-*-linux*"></a>
  1224. <h3 class="heading">tilepro-*-linux*</h3>
  1225. <p>The TILEPro processor running GNU/Linux. This port requires
  1226. binutils-2.22 or newer.
  1227. </p>
  1228. <hr />
  1229. <a name="visium-x-elf"></a><a name="visium-*-elf"></a>
  1230. <h3 class="heading">visium-*-elf</h3>
  1231. <p>CDS VISIUMcore processor.
  1232. This configuration is intended for embedded systems.
  1233. </p>
  1234. <hr />
  1235. <a name="x-x-vxworks"></a><a name="g_t*-*-vxworks*"></a>
  1236. <h3 class="heading">*-*-vxworks*</h3>
  1237. <p>Support for VxWorks is in flux. At present GCC supports <em>only</em> the
  1238. very recent VxWorks 5.5 (aka Tornado 2.2) release, and only on PowerPC.
  1239. We welcome patches for other architectures supported by VxWorks 5.5.
  1240. Support for VxWorks AE would also be welcome; we believe this is merely
  1241. a matter of writing an appropriate &ldquo;configlette&rdquo; (see below). We are
  1242. not interested in supporting older, a.out or COFF-based, versions of
  1243. VxWorks in GCC 3.
  1244. </p>
  1245. <p>VxWorks comes with an older version of GCC installed in
  1246. <samp><var>$WIND_BASE</var>/host</samp>; we recommend you do not overwrite it.
  1247. Choose an installation <var>prefix</var> entirely outside <var>$WIND_BASE</var>.
  1248. Before running <code>configure</code>, create the directories <samp><var>prefix</var></samp>
  1249. and <samp><var>prefix</var>/bin</samp>. Link or copy the appropriate assembler,
  1250. linker, etc. into <samp><var>prefix</var>/bin</samp>, and set your <var>PATH</var> to
  1251. include that directory while running both <code>configure</code> and
  1252. <code>make</code>.
  1253. </p>
  1254. <p>You must give <code>configure</code> the
  1255. <samp>--with-headers=<var>$WIND_BASE</var>/target/h</samp> switch so that it can
  1256. find the VxWorks system headers. Since VxWorks is a cross compilation
  1257. target only, you must also specify <samp>--target=<var>target</var></samp>.
  1258. <code>configure</code> will attempt to create the directory
  1259. <samp><var>prefix</var>/<var>target</var>/sys-include</samp> and copy files into it;
  1260. make sure the user running <code>configure</code> has sufficient privilege
  1261. to do so.
  1262. </p>
  1263. <p>GCC&rsquo;s exception handling runtime requires a special &ldquo;configlette&rdquo;
  1264. module, <samp>contrib/gthr_supp_vxw_5x.c</samp>. Follow the instructions in
  1265. that file to add the module to your kernel build. (Future versions of
  1266. VxWorks will incorporate this module.)
  1267. </p>
  1268. <hr />
  1269. <a name="x86-64-x-x"></a><a name="x86_005f64-*-*_002c-amd64-*-*"></a>
  1270. <h3 class="heading">x86_64-*-*, amd64-*-*</h3>
  1271. <p>GCC supports the x86-64 architecture implemented by the AMD64 processor
  1272. (amd64-*-* is an alias for x86_64-*-*) on GNU/Linux, FreeBSD and NetBSD.
  1273. On GNU/Linux the default is a bi-arch compiler which is able to generate
  1274. both 64-bit x86-64 and 32-bit x86 code (via the <samp>-m32</samp> switch).
  1275. </p>
  1276. <hr />
  1277. <a name="x86-64-x-solaris2"></a><a name="x86_005f64-*-solaris2*"></a>
  1278. <h3 class="heading">x86_64-*-solaris2*</h3>
  1279. <p>GCC also supports the x86-64 architecture implemented by the AMD64
  1280. processor (&lsquo;<samp>amd64-*-*</samp>&rsquo; is an alias for &lsquo;<samp>x86_64-*-*</samp>&rsquo;) on
  1281. Solaris 10 or later. Unlike other systems, without special options a
  1282. bi-arch compiler is built which generates 32-bit code by default, but
  1283. can generate 64-bit x86-64 code with the <samp>-m64</samp> switch. Since
  1284. GCC 4.7, there is also a configuration that defaults to 64-bit code, but
  1285. can generate 32-bit code with <samp>-m32</samp>. To configure and build
  1286. this way, you have to provide all support libraries like <samp>libgmp</samp>
  1287. as 64-bit code, configure with <samp>--target=x86_64-pc-solaris2.11</samp>
  1288. and &lsquo;<samp>CC=gcc -m64</samp>&rsquo;.
  1289. </p>
  1290. <hr />
  1291. <a name="xtensa-x-elf"></a><a name="xtensa*-*-elf"></a>
  1292. <h3 class="heading">xtensa*-*-elf</h3>
  1293. <p>This target is intended for embedded Xtensa systems using the
  1294. &lsquo;<samp>newlib</samp>&rsquo; C library. It uses ELF but does not support shared
  1295. objects. Designed-defined instructions specified via the
  1296. Tensilica Instruction Extension (TIE) language are only supported
  1297. through inline assembly.
  1298. </p>
  1299. <p>The Xtensa configuration information must be specified prior to
  1300. building GCC. The <samp>include/xtensa-config.h</samp> header
  1301. file contains the configuration information. If you created your
  1302. own Xtensa configuration with the Xtensa Processor Generator, the
  1303. downloaded files include a customized copy of this header file,
  1304. which you can use to replace the default header file.
  1305. </p>
  1306. <hr />
  1307. <a name="xtensa-x-linux"></a><a name="xtensa*-*-linux*"></a>
  1308. <h3 class="heading">xtensa*-*-linux*</h3>
  1309. <p>This target is for Xtensa systems running GNU/Linux. It supports ELF
  1310. shared objects and the GNU C library (glibc). It also generates
  1311. position-independent code (PIC) regardless of whether the
  1312. <samp>-fpic</samp> or <samp>-fPIC</samp> options are used. In other
  1313. respects, this target is the same as the
  1314. <a href="#xtensa*-*-elf">&lsquo;<samp>xtensa*-*-elf</samp>&rsquo;</a> target.
  1315. </p>
  1316. <hr />
  1317. <a name="windows"></a><a name="Microsoft-Windows"></a>
  1318. <h3 class="heading">Microsoft Windows</h3>
  1319. <a name="Intel-16-bit-versions"></a>
  1320. <h4 class="subheading">Intel 16-bit versions</h4>
  1321. <p>The 16-bit versions of Microsoft Windows, such as Windows 3.1, are not
  1322. supported.
  1323. </p>
  1324. <p>However, the 32-bit port has limited support for Microsoft
  1325. Windows 3.11 in the Win32s environment, as a target only. See below.
  1326. </p>
  1327. <a name="Intel-32-bit-versions"></a>
  1328. <h4 class="subheading">Intel 32-bit versions</h4>
  1329. <p>The 32-bit versions of Windows, including Windows 95, Windows NT, Windows
  1330. XP, and Windows Vista, are supported by several different target
  1331. platforms. These targets differ in which Windows subsystem they target
  1332. and which C libraries are used.
  1333. </p>
  1334. <ul>
  1335. <li> Cygwin <a href="#x-x-cygwin">*-*-cygwin</a>: Cygwin provides a user-space
  1336. Linux API emulation layer in the Win32 subsystem.
  1337. </li><li> MinGW <a href="#x-x-mingw32">*-*-mingw32</a>: MinGW is a native GCC port for
  1338. the Win32 subsystem that provides a subset of POSIX.
  1339. </li><li> MKS i386-pc-mks: NuTCracker from MKS. See
  1340. <a href="https://www.mkssoftware.com">https://www.mkssoftware.com</a> for more information.
  1341. </li></ul>
  1342. <a name="Intel-64-bit-versions"></a>
  1343. <h4 class="subheading">Intel 64-bit versions</h4>
  1344. <p>GCC contains support for x86-64 using the mingw-w64
  1345. runtime library, available from <a href="http://mingw-w64.org/doku.php">http://mingw-w64.org/doku.php</a>.
  1346. This library should be used with the target triple x86_64-pc-mingw32.
  1347. </p>
  1348. <p>Presently Windows for Itanium is not supported.
  1349. </p>
  1350. <a name="Windows-CE"></a>
  1351. <h4 class="subheading">Windows CE</h4>
  1352. <p>Windows CE is supported as a target only on Hitachi
  1353. SuperH (sh-wince-pe), and MIPS (mips-wince-pe).
  1354. </p>
  1355. <a name="Other-Windows-Platforms"></a>
  1356. <h4 class="subheading">Other Windows Platforms</h4>
  1357. <p>GCC no longer supports Windows NT on the Alpha or PowerPC.
  1358. </p>
  1359. <p>GCC no longer supports the Windows POSIX subsystem. However, it does
  1360. support the Interix subsystem. See above.
  1361. </p>
  1362. <p>Old target names including *-*-winnt and *-*-windowsnt are no longer used.
  1363. </p>
  1364. <p>PW32 (i386-pc-pw32) support was never completed, and the project seems to
  1365. be inactive. See <a href="http://pw32.sourceforge.net/">http://pw32.sourceforge.net/</a> for more information.
  1366. </p>
  1367. <p>UWIN support has been removed due to a lack of maintenance.
  1368. </p>
  1369. <hr />
  1370. <a name="x-x-cygwin"></a><a name="g_t*-*-cygwin"></a>
  1371. <h3 class="heading">*-*-cygwin</h3>
  1372. <p>Ports of GCC are included with the
  1373. <a href="http://www.cygwin.com/">Cygwin environment</a>.
  1374. </p>
  1375. <p>GCC will build under Cygwin without modification; it does not build
  1376. with Microsoft&rsquo;s C++ compiler and there are no plans to make it do so.
  1377. </p>
  1378. <p>The Cygwin native compiler can be configured to target any 32-bit x86
  1379. cpu architecture desired; the default is i686-pc-cygwin. It should be
  1380. used with as up-to-date a version of binutils as possible; use either
  1381. the latest official GNU binutils release in the Cygwin distribution,
  1382. or version 2.20 or above if building your own.
  1383. </p>
  1384. <hr />
  1385. <a name="x-x-mingw32"></a><a name="g_t*-*-mingw32"></a>
  1386. <h3 class="heading">*-*-mingw32</h3>
  1387. <p>GCC will build with and support only MinGW runtime 3.12 and later.
  1388. Earlier versions of headers are incompatible with the new default semantics
  1389. of <code>extern inline</code> in <code>-std=c99</code> and <code>-std=gnu99</code> modes.
  1390. </p>
  1391. <hr />
  1392. <a name="older"></a><a name="Older-systems"></a>
  1393. <h3 class="heading">Older systems</h3>
  1394. <p>GCC contains support files for many older (1980s and early
  1395. 1990s) Unix variants. For the most part, support for these systems
  1396. has not been deliberately removed, but it has not been maintained for
  1397. several years and may suffer from bitrot.
  1398. </p>
  1399. <p>Starting with GCC 3.1, each release has a list of &ldquo;obsoleted&rdquo; systems.
  1400. Support for these systems is still present in that release, but
  1401. <code>configure</code> will fail unless the <samp>--enable-obsolete</samp>
  1402. option is given. Unless a maintainer steps forward, support for these
  1403. systems will be removed from the next release of GCC.
  1404. </p>
  1405. <p>Support for old systems as hosts for GCC can cause problems if the
  1406. workarounds for compiler, library and operating system bugs affect the
  1407. cleanliness or maintainability of the rest of GCC. In some cases, to
  1408. bring GCC up on such a system, if still possible with current GCC, may
  1409. require first installing an old version of GCC which did work on that
  1410. system, and using it to compile a more recent GCC, to avoid bugs in the
  1411. vendor compiler. Old releases of GCC 1 and GCC 2 are available in the
  1412. <samp>old-releases</samp> directory on the <a href="../mirrors.html">GCC mirror
  1413. sites</a>. Header bugs may generally be avoided using
  1414. <code>fixincludes</code>, but bugs or deficiencies in libraries and the
  1415. operating system may still cause problems.
  1416. </p>
  1417. <p>Support for older systems as targets for cross-compilation is less
  1418. problematic than support for them as hosts for GCC; if an enthusiast
  1419. wishes to make such a target work again (including resurrecting any of
  1420. the targets that never worked with GCC 2, starting from the last
  1421. version before they were removed), patches
  1422. <a href="../contribute.html">following the usual requirements</a> would be
  1423. likely to be accepted, since they should not affect the support for more
  1424. modern targets.
  1425. </p>
  1426. <p>For some systems, old versions of GNU binutils may also be useful,
  1427. and are available from <samp>pub/binutils/old-releases</samp> on
  1428. <a href="https://sourceware.org/mirrors.html">sourceware.org mirror sites</a>.
  1429. </p>
  1430. <p>Some of the information on specific systems above relates to
  1431. such older systems, but much of the information
  1432. about GCC on such systems (which may no longer be applicable to
  1433. current GCC) is to be found in the GCC texinfo manual.
  1434. </p>
  1435. <hr />
  1436. <a name="elf"></a><a name="all-ELF-targets-_0028SVR4_002c-Solaris-2_002c-etc_002e_0029"></a>
  1437. <h3 class="heading">all ELF targets (SVR4, Solaris 2, etc.)</h3>
  1438. <p>C++ support is significantly better on ELF targets if you use the
  1439. <a href="./configure.html#with-gnu-ld">GNU linker</a>; duplicate copies of
  1440. inlines, vtables and template instantiations will be discarded
  1441. automatically.
  1442. </p>
  1443. <hr />
  1444. <p>
  1445. <p><a href="./index.html">Return to the GCC Installation page</a>
  1446. </p>
  1447. </body>
  1448. </html>