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