Skip to content

Commit 69df8f6

Browse files
committed
Merge
2 parents 9cfcce4 + 09ac9eb commit 69df8f6

File tree

571 files changed

+26592
-26829
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

571 files changed

+26592
-26829
lines changed

bin/jib.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,15 @@ install_jib() {
128128
exit 1
129129
fi
130130
fi
131+
# Want to check the filetype using file, to see if we got served a HTML error page.
132+
# This is sensitive to the filename containing a specific string, but good enough.
133+
file ${installed_jib_script}.gz | grep "gzip compressed data" > /dev/null
134+
if [ $? -ne 0 ]; then
135+
echo "Warning: ${installed_jib_script}.gz is not a gzip file."
136+
echo "If you are behind a proxy you may need to configure exceptions using no_proxy."
137+
echo "The download URL was: ${jib_url}"
138+
exit 1
139+
fi
131140
echo "Extracting JIB bootstrap script"
132141
rm -f "${installed_jib_script}"
133142
gunzip "${installed_jib_script}.gz"

doc/building.html

Lines changed: 1709 additions & 529 deletions
Large diffs are not rendered by default.

doc/building.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -316,12 +316,12 @@ ongoing efforts to loosen this strict coupling between compiler and operating
316316
system (see [JDK-8288293](https://bugs.openjdk.org/browse/JDK-8288293)) but it
317317
will likely be a very long time before this goal can be realized.
318318

319-
Operating system Supported toolchain
320-
------------------ -------------------------
321-
Linux gcc, clang
322-
macOS Apple Xcode (using clang)
323-
AIX IBM XL C/C++
324-
Windows Microsoft Visual Studio
319+
| Operating system | Supported toolchain |
320+
| ------------------ | ------------------------- |
321+
| Linux | gcc, clang |
322+
| macOS | Apple Xcode (using clang) |
323+
| AIX | IBM XL C/C++ |
324+
| Windows | Microsoft Visual Studio |
325325

326326
Please see the individual sections on the toolchains for version
327327
recommendations. As a reference, these versions of the toolchains are used, at
@@ -330,11 +330,11 @@ possible to compile the JDK with both older and newer versions, but the closer
330330
you stay to this list, the more likely you are to compile successfully without
331331
issues.
332332

333-
Operating system Toolchain version
334-
------------------ -------------------------------------------------------
335-
Linux gcc 11.2.0
336-
macOS Apple Xcode 10.1 (using clang 10.0.0)
337-
Windows Microsoft Visual Studio 2022 update 17.1.0
333+
| Operating system | Toolchain version |
334+
| ------------------ | ------------------------------------------ |
335+
| Linux | gcc 11.2.0 |
336+
| macOS | Apple Xcode 10.1 (using clang 10.0.0) |
337+
| Windows | Microsoft Visual Studio 2022 update 17.1.0 |
338338

339339
All compilers are expected to be able to compile to the C99 language standard,
340340
as some C99 features are used in the source code. Microsoft Visual Studio
@@ -362,20 +362,20 @@ To use clang instead of gcc on Linux, use `--with-toolchain-type=clang`.
362362

363363
The oldest supported version of Xcode is 8.
364364

365-
You will need the Xcode command lines developers tools to be able to build
366-
the JDK. (Actually, *only* the command lines tools are needed, not the IDE.)
365+
You will need the Xcode command line developer tools to be able to build
366+
the JDK. (Actually, *only* the command line tools are needed, not the IDE.)
367367
The simplest way to install these is to run:
368368
```
369369
xcode-select --install
370370
```
371371

372-
It is advisable to keep an older version of Xcode for building the JDK when
373-
updating Xcode. This [blog page](
374-
http://iosdevelopertips.com/xcode/install-multiple-versions-of-xcode.html) has
375-
good suggestions on managing multiple Xcode versions. To use a specific version
376-
of Xcode, use `xcode-select -s` before running `configure`, or use
377-
`--with-toolchain-path` to point to the version of Xcode to use, e.g.
378-
`configure --with-toolchain-path=/Applications/Xcode8.app/Contents/Developer/usr/bin`
372+
When updating Xcode, it is advisable to keep an older version for building the JDK.
373+
To use a specific version of Xcode you have multiple options:
374+
375+
* Use `xcode-select -s` before running `configure`, e.g. `xcode-select -s /Applications/Xcode13.1.app`. The drawback is that the setting
376+
is system wide and you may have to revert it after an OpenJDK build.
377+
* Use configure option `--with-xcode-path`, e.g. `configure --with-xcode-path=/Applications/Xcode13.1.app`
378+
This allows using a specific Xcode version for an OpenJDK build, independently of the active Xcode version by `xcode-select`.
379379

380380
If you have recently (inadvertently) updated your OS and/or Xcode version, and
381381
the JDK can no longer be built, please see the section on [Problems with the
@@ -1333,12 +1333,12 @@ it.
13331333
To use, setup an icecc network, and install icecc on the build machine. Then
13341334
run `configure` using `--enable-icecc`.
13351335
1336-
### Using sjavac
1336+
### Using the javac server
13371337
1338-
To speed up compilation of Java code, especially during incremental compilations,
1339-
the sjavac server is automatically enabled in the configuration step by default.
1340-
To explicitly enable or disable sjavac, use either `--enable-javac-server`
1341-
or `--disable-javac-server`.
1338+
To speed up compilation of Java code, especially during incremental
1339+
compilations, the javac server is automatically enabled in the configuration
1340+
step by default. To explicitly enable or disable the javac server, use either
1341+
`--enable-javac-server` or `--disable-javac-server`.
13421342
13431343
### Building the Right Target
13441344

0 commit comments

Comments
 (0)