JDK-8334895 : OpenJDK fails to configure on linux aarch64 when CDS is disabled after JDK-8331942
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 17,21,22,23,24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: aarch64
  • Submitted: 2024-06-24
  • Updated: 2025-03-25
  • Resolved: 2024-06-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17 JDK 21 JDK 24
17.0.16Fixed 21.0.8Fixed 24 b05Fixed
Related Reports
Causes :  
Description
The issue was detected when building openjdk-17 in Ubuntu Oracular[1].
The relevant part of the build log:
---
checking if CDS archive is available... no (CDS is disabled)
checking if a default CDS archive should be generated... disabled, from default 'auto'
checking if CDS archive is available... no (CDS is disabled)
checking if compatible cds region alignment enabled... enabled, default
configure: error: Option --enable-compatible-cds-alignment is not available
configure exiting with result code 1
make: *** [debian/rules:1065: stamps/zero-configure] Error 1
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2
---

[1] https://launchpadlibrarian.net/736468576/buildlog_ubuntu-oracular-arm64.openjdk-17_17.0.12~5ea-1~ppa2_BUILDING.txt.gz
Comments
[jdk21u-fix-request] Approval Request from Satyen Subramaniam for backport. Sets COMPATIBLE_CDS_ALIGNMENT_DEFAULT to auto for aarch64 to address configure failure when building on linux aarch64. Risk: Relatively Low. Tip change was merged in June 2024 and only effects a particular architecture for particular platforms, and only when building with `--disable-jvm-feature-cds`. Testing: * GHA Sanity Checks * Tier 1 and 2 tests locally
21-03-2025

[jdk17u-fix-request] Approval Request from Satyen Subramaniam for backport. Sets COMPATIBLE_CDS_ALIGNMENT_DEFAULT to auto for aarch64 to address configure failure when building on linux aarch64. Risk: Relatively Low. Tip change was merged in June 2024 and only effects a particular architecture for particular platforms, and only when building with `--disable-jvm-feature-cds`. Testing: * GHA Sanity Checks * Tier 1 and 2 tests locally
21-03-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/3398 Date: 2025-03-21 16:23:14 +0000
21-03-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/1538 Date: 2025-03-21 16:22:56 +0000
21-03-2025

Changeset: 3b1ca986 Author: Vladimir Petko <vpetko@openjdk.org> Committer: Erik Joelsson <erikj@openjdk.org> Date: 2024-06-27 20:27:51 +0000 URL: https://git.openjdk.org/jdk/commit/3b1ca986427d3a69c9e167b9b4c07d1b83bc264d
27-06-2024

[RT Triage] ILW=HLL=P4
25-06-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/19869 Date: 2024-06-24 22:22:38 +0000
25-06-2024