Skip to content

Commit 2a214cd

Browse files
committed
8344093: Implement JEP 501: Deprecate the 32-bit x86 Port for Removal
Reviewed-by: ihse, simonis, dholmes
1 parent 87eb61a commit 2a214cd

File tree

4 files changed

+14
-37
lines changed

4 files changed

+14
-37
lines changed

.github/workflows/main.yml

+1-21
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ on:
3636
platforms:
3737
description: 'Platform(s) to execute on (comma separated, e.g. "linux-x64, macos, aarch64")'
3838
required: true
39-
default: 'linux-x64, linux-x86-hs, linux-x64-variants, linux-cross-compile, alpine-linux-x64, macos-x64, macos-aarch64, windows-x64, windows-aarch64, docs'
39+
default: 'linux-x64, linux-x64-variants, linux-cross-compile, alpine-linux-x64, macos-x64, macos-aarch64, windows-x64, windows-aarch64, docs'
4040
configure-arguments:
4141
description: 'Additional configure arguments'
4242
required: false
@@ -62,7 +62,6 @@ jobs:
6262
EXCLUDED_PLATFORMS: 'alpine-linux-x64'
6363
outputs:
6464
linux-x64: ${{ steps.include.outputs.linux-x64 }}
65-
linux-x86-hs: ${{ steps.include.outputs.linux-x86-hs }}
6665
linux-x64-variants: ${{ steps.include.outputs.linux-x64-variants }}
6766
linux-cross-compile: ${{ steps.include.outputs.linux-cross-compile }}
6867
alpine-linux-x64: ${{ steps.include.outputs.alpine-linux-x64 }}
@@ -145,7 +144,6 @@ jobs:
145144
}
146145
147146
echo "linux-x64=$(check_platform linux-x64 linux x64)" >> $GITHUB_OUTPUT
148-
echo "linux-x86-hs=$(check_platform linux-x86-hs linux x86)" >> $GITHUB_OUTPUT
149147
echo "linux-x64-variants=$(check_platform linux-x64-variants variants)" >> $GITHUB_OUTPUT
150148
echo "linux-cross-compile=$(check_platform linux-cross-compile cross-compile)" >> $GITHUB_OUTPUT
151149
echo "alpine-linux-x64=$(check_platform alpine-linux-x64 alpine-linux x64)" >> $GITHUB_OUTPUT
@@ -170,24 +168,6 @@ jobs:
170168
make-arguments: ${{ github.event.inputs.make-arguments }}
171169
if: needs.prepare.outputs.linux-x64 == 'true'
172170

173-
build-linux-x86-hs:
174-
name: linux-x86-hs
175-
needs: prepare
176-
uses: ./.github/workflows/build-linux.yml
177-
with:
178-
platform: linux-x86
179-
make-target: 'hotspot'
180-
gcc-major-version: '10'
181-
gcc-package-suffix: '-multilib'
182-
apt-architecture: 'i386'
183-
# Some multilib libraries do not have proper inter-dependencies, so we have to
184-
# install their dependencies manually.
185-
apt-extra-packages: 'libfreetype-dev:i386 libtiff-dev:i386 libcupsimage2-dev:i386 libffi-dev:i386'
186-
extra-conf-options: '--with-target-bits=32 --enable-fallback-linker --enable-libffi-bundling'
187-
configure-arguments: ${{ github.event.inputs.configure-arguments }}
188-
make-arguments: ${{ github.event.inputs.make-arguments }}
189-
if: needs.prepare.outputs.linux-x86-hs == 'true'
190-
191171
build-linux-x64-hs-nopch:
192172
name: linux-x64-hs-nopch
193173
needs: prepare

doc/building.html

+3-4
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ <h3 id="building-on-x86">Building on x86</h3>
329329
<p>Even for 32-bit builds, it is recommended to use a 64-bit build
330330
machine, and instead create a 32-bit target using
331331
<code>--with-target-bits=32</code>.</p>
332-
<p>Note: The Windows 32-bit x86 port is deprecated and may be removed in
333-
a future release.</p>
332+
<p>Note: The 32-bit x86 port is deprecated and may be removed in a
333+
future release.</p>
334334
<h3 id="building-on-aarch64">Building on aarch64</h3>
335335
<p>At a minimum, a machine with 8 cores is advisable, as well as 8 GB of
336336
RAM. (The more cores to use, the more memory you need.) At least 6 GB of
@@ -393,8 +393,7 @@ <h2 id="operating-system-requirements">Operating System
393393
to list successes or failures of building on different platforms.</p>
394394
<h3 id="windows">Windows</h3>
395395
<p>Windows XP is not a supported platform, but all newer Windows should
396-
be able to build the JDK. (Note: The Windows 32-bit x86 port is
397-
deprecated and may be removed in a future release.)</p>
396+
be able to build the JDK.</p>
398397
<p>On Windows, it is important that you pay attention to the
399398
instructions in the <a href="#special-considerations">Special
400399
Considerations</a>.</p>

doc/building.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ space is required.
134134
Even for 32-bit builds, it is recommended to use a 64-bit build machine, and
135135
instead create a 32-bit target using `--with-target-bits=32`.
136136

137-
Note: The Windows 32-bit x86 port is deprecated and may be removed in a future
138-
release.
137+
Note: The 32-bit x86 port is deprecated and may be removed in a future release.
139138

140139
### Building on aarch64
141140

@@ -191,8 +190,7 @@ on different platforms.
191190
### Windows
192191

193192
Windows XP is not a supported platform, but all newer Windows should be able to
194-
build the JDK. (Note: The Windows 32-bit x86 port is deprecated and may be
195-
removed in a future release.)
193+
build the JDK.
196194

197195
On Windows, it is important that you pay attention to the instructions in the
198196
[Special Considerations](#special-considerations).

make/autoconf/platform.m4

+8-8
Original file line numberDiff line numberDiff line change
@@ -666,14 +666,14 @@ AC_DEFUN([PLATFORM_CHECK_DEPRECATION],
666666
[
667667
AC_ARG_ENABLE(deprecated-ports, [AS_HELP_STRING([--enable-deprecated-ports@<:@=yes/no@:>@],
668668
[Suppress the error when configuring for a deprecated port @<:@no@:>@])])
669-
# if test "x$OPENJDK_TARGET_CPU" = xx86; then
670-
# if test "x$enable_deprecated_ports" = "xyes"; then
671-
# AC_MSG_WARN([The x86 port is deprecated and may be removed in a future release.])
672-
# else
673-
# AC_MSG_ERROR(m4_normalize([The 32-bit x86 port is deprecated and may be removed in a future release.
674-
# Use --enable-deprecated-ports=yes to suppress this error.]))
675-
# fi
676-
# fi
669+
if test "x$OPENJDK_TARGET_CPU" = xx86; then
670+
if test "x$enable_deprecated_ports" = "xyes"; then
671+
AC_MSG_WARN([The 32-bit x86 port is deprecated and may be removed in a future release.])
672+
else
673+
AC_MSG_ERROR(m4_normalize([The 32-bit x86 port is deprecated and may be removed in a future release.
674+
Use --enable-deprecated-ports=yes to suppress this error.]))
675+
fi
676+
fi
677677
])
678678

679679
AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_OS_VERSION],

0 commit comments

Comments
 (0)