diff --git a/doc/building.html b/doc/building.html index 4f6a07a93382..824b742ffe37 100644 --- a/doc/building.html +++ b/doc/building.html @@ -324,6 +324,7 @@ GB of free disk space is required.

Even for 32-bit builds, it is recommended to use a 64-bit build machine, and instead create a 32-bit target using --with-target-bits=32.

+

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

Building on aarch64

At a minimum, a machine with 8 cores is advisable, as well as 8 GB of RAM. (The more cores to use, the more memory you need.) At least 6 GB of @@ -400,6 +401,7 @@ to the build system, e.g. in arguments to configure. So, use --with-msvcr-dll=/cygdrive/c/msvcr100.dll rather than --with-msvcr-dll=c:\msvcr100.dll. For details on this conversion, see the section on Fixpath.

+

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

Cygwin

A functioning Cygwin environment is required for building the JDK on Windows. If you have a 64-bit OS, we diff --git a/doc/building.md b/doc/building.md index 9b8aeb74d418..801b758f7e02 100644 --- a/doc/building.md +++ b/doc/building.md @@ -126,6 +126,8 @@ space is required. Even for 32-bit builds, it is recommended to use a 64-bit build machine, and instead create a 32-bit target using `--with-target-bits=32`. +Note: The Windows 32-bit x86 port is deprecated and may be removed in a future release. + ### Building on aarch64 At a minimum, a machine with 8 cores is advisable, as well as 8 GB of RAM. @@ -199,6 +201,8 @@ rule also applies to input to the build system, e.g. in arguments to `--with-msvcr-dll=c:\msvcr100.dll`. For details on this conversion, see the section on [Fixpath](#fixpath). +Note: The Windows 32-bit x86 port is deprecated and may be removed in a future release. + #### Cygwin A functioning [Cygwin](http://www.cygwin.com/) environment is required for diff --git a/make/autoconf/platform.m4 b/make/autoconf/platform.m4 index 4a13dad24b55..134e7bb395bf 100644 --- a/make/autoconf/platform.m4 +++ b/make/autoconf/platform.m4 @@ -657,6 +657,22 @@ AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_AND_TARGET], PLATFORM_SET_MODULE_TARGET_OS_VALUES PLATFORM_SET_RELEASE_FILE_OS_VALUES PLATFORM_SETUP_LEGACY_VARS + PLATFORM_CHECK_DEPRECATION +]) + +AC_DEFUN_ONCE([PLATFORM_CHECK_DEPRECATION], +[ + AC_ARG_ENABLE(deprecated-ports, [AS_HELP_STRING([--enable-deprecated-ports@<:@=yes/no@:>@], + [Suppress the error when configuring for a deprecated port @<:@no@:>@])]) + AC_REQUIRE([PLATFORM_EXTRACT_TARGET_AND_BUILD]) + if test "x$OPENJDK_TARGET_OS" = xwindows && test "x$OPENJDK_TARGET_CPU" = xx86; then + if test "x$enable_deprecated_ports" = "xyes"; then + AC_MSG_WARN([The Windows 32-bit x86 port is deprecated and may be removed in a future release.]) + else + AC_MSG_ERROR(m4_normalize([The Windows 32-bit x86 port is deprecated and may be removed in a future release. + Use --enable-deprecated-ports=yes to suppress this error.])) + fi + fi ]) AC_DEFUN_ONCE([PLATFORM_SETUP_OPENJDK_BUILD_OS_VERSION],