You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Please see the individual sections on the toolchains for version recommendations. As a reference, these versions of the toolchains are used, at the time of writing, by Oracle for the daily builds of the JDK. It should be possible to compile the JDK with both older and newer versions, but the closer you stay to this list, the more likely you are to compile successfully without issues.</p>
<tdstyle="text-align: left;">Oracle Solaris Studio 12.4 (with compiler version 5.13)</td>
287
+
<td>Solaris</td>
288
+
<td>Oracle Solaris Studio 12.4 (with compiler version 5.13)</td>
284
289
</tr>
285
290
<trclass="even">
286
-
<tdstyle="text-align: left;">Windows</td>
287
-
<tdstyle="text-align: left;">Microsoft Visual Studio 2017 update 15.9.16</td>
291
+
<td>Windows</td>
292
+
<td>Microsoft Visual Studio 2017 update 15.9.16</td>
288
293
</tr>
289
294
</tbody>
290
295
</table>
@@ -297,9 +302,13 @@ <h3 id="clang">clang</h3>
297
302
<p>To use clang instead of gcc on Linux, use <code>--with-toolchain-type=clang</code>.</p>
298
303
<h3id="apple-xcode">Apple Xcode</h3>
299
304
<p>The oldest supported version of Xcode is 8.</p>
300
-
<p>You will need the Xcode command lines developers tools to be able to build the JDK. (Actually, <em>only</em> the command lines tools are needed, not the IDE.) The simplest way to install these is to run:</p>
305
+
<p>You will need the Xcode command line developer tools to be able to build the JDK. (Actually, <em>only</em> the command line tools are needed, not the IDE.) The simplest way to install these is to run:</p>
301
306
<pre><code>xcode-select --install</code></pre>
302
-
<p>It is advisable to keep an older version of Xcode for building the JDK when updating Xcode. This <ahref="http://iosdevelopertips.com/xcode/install-multiple-versions-of-xcode.html">blog page</a> has good suggestions on managing multiple Xcode versions. To use a specific version of Xcode, use <code>xcode-select -s</code> before running <code>configure</code>, or use <code>--with-toolchain-path</code> to point to the version of Xcode to use, e.g. <code>configure --with-toolchain-path=/Applications/Xcode8.app/Contents/Developer/usr/bin</code></p>
307
+
<p>When updating Xcode, it is advisable to keep an older version for building the JDK. To use a specific version of Xcode you have multiple options:</p>
308
+
<ul>
309
+
<li>Use <code>xcode-select -s</code> before running <code>configure</code>, e.g. <code>xcode-select -s /Applications/Xcode13.1.app</code>. The drawback is that the setting is system wide and you may have to revert it after an OpenJDK build.</li>
310
+
<li>Use configure option <code>--with-xcode-path</code>, e.g. <code>configure --with-xcode-path=/Applications/Xcode13.1.app</code> This allows using a specific Xcode version for an OpenJDK build, independently of the active Xcode version by <code>xcode-select</code>.</li>
311
+
</ul>
303
312
<p>If you have recently (inadvertently) updated your OS and/or Xcode version, and the JDK can no longer be built, please see the section on <ahref="#problems-with-the-build-environment">Problems with the Build Environment</a>, and <ahref="#getting-help">Getting Help</a> to find out if there are any recent, non-merged patches available for this update.</p>
304
313
<h3id="oracle-solaris-studio">Oracle Solaris Studio</h3>
305
314
<p>The minimum accepted version of the Solaris Studio compilers is 5.13 (corresponding to Solaris Studio 12.4). Older versions will not be accepted by configure.</p>
@@ -362,8 +371,8 @@ <h3 id="oracle-solaris-studio">Oracle Solaris Studio</h3>
<p>The minimum accepted version of Visual Studio is 2010. Older versions will not be accepted by <code>configure</code>. The maximum accepted version of Visual Studio is 2019. Versions older than 2017 are unlikely to continue working for long.</p>
364
373
<p>If you have multiple versions of Visual Studio installed, <code>configure</code> will by default pick the latest. You can request a specific version to be used by setting <code>--with-toolchain-version</code>, e.g. <code>--with-toolchain-version=2015</code>.</p>
365
-
<p>If you have Visual Studio installed but <code>configure</code> fails to detect it, it may be because of <ahref="#spaces-in-path">spaces in path</a>.</p>
366
374
<p>If you get <code>LINK: fatal error LNK1123: failure during conversion to COFF: file invalid</code> when building using Visual Studio 2010, you have encountered <ahref="http://support.microsoft.com/kb/2757355">KB2757355</a>, a bug triggered by a specific installation order. However, the solution suggested by the KB article does not always resolve the problem. See <ahref="https://stackoverflow.com/questions/10888391">this stackoverflow discussion</a> for other suggestions.</p>
375
+
<p>If you have Visual Studio installed but <code>configure</code> fails to detect it, it may be because of <ahref="#spaces-in-path">spaces in path</a>.</p>
367
376
<h3id="ibm-xl-cc">IBM XL C/C++</h3>
368
377
<p>The regular builds by SAP is using version 12.1, described as <code>IBM XL C/C++ for AIX, V12.1 (5765-J02, 5725-C72) Version: 12.01.0000.0017</code>.</p>
369
378
<p>See the <ahref="http://cr.openjdk.java.net/~simonis/ppc-aix-port">OpenJDK PowerPC Port Status Page</a> for details.</p>
@@ -403,7 +412,7 @@ <h3 id="x11">X11</h3>
403
412
<ul>
404
413
<li>To install on an apt-based Linux, try running <code>sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev</code>.</li>
405
414
<li>To install on an rpm-based Linux, try running <code>sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel</code>.</li>
<p>Use <code>--with-x=<path></code> if <code>configure</code> does not properly locate your X11 files.</p>
@@ -645,11 +654,13 @@ <h4 id="alsa-1">ALSA</h4>
645
654
<p>Note that alsa is needed even if you only want to build a headless JDK.</p>
646
655
<ul>
647
656
<li><p>Go to <ahref="https://www.debian.org/distrib/packages">Debian Package Search</a> and search for the <code>libasound2</code> and <code>libasound2-dev</code> packages for your <em>target</em> system. Download them to /tmp.</p></li>
648
-
<li><p>Install the libraries into the cross-compilation toolchain. For instance:</p>
657
+
<li>Install the libraries into the cross-compilation toolchain. For instance:</li>
0 commit comments