JDK-8307604 : gcc12 based Alpine build broken build after JDK-8307301
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 21
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: aix
  • CPU: ppc
  • Submitted: 2023-05-08
  • Updated: 2023-07-04
  • Resolved: 2023-05-08
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 11 JDK 17 JDK 21
11.0.21Fixed 17.0.9Fixed 21 b22Fixed
Related Reports
Relates :  
Description
After the harfbuzz 7.2 update we run into

/linuxmuslx86_64/jdk-dev/src/java.desktop/share/native/libharfbuzz/OT/glyf/Glyph.hh:281:8: error: offset '4' outside bounds of constant string [-Werror=array-bounds]
  281 |   bool get_points (hb_font_t *font, const accelerator_t &glyf_accelerator,
      |        ^~~~~~~~~~
/linuxmuslx86_64/jdk-dev/src/java.desktop/share/native/libharfbuzz/hb-static.cc:45:16: note: '_hb_NullPool' declared here
   45 | uint64_t const _hb_NullPool[(HB_NULL_POOL_SIZE + sizeof (uint64_t) - 1) / sizeof (uint64_t)] = {};
      |                ^~~~~~~~~~~~
/linuxmuslx86_64/jdk-dev/src/java.desktop/share/native/libharfbuzz/OT/glyf/Glyph.hh:281:8: error: offset '4' outside bounds of constant string [-Werror=array-bounds]
  281 |   bool get_points (hb_font_t *font, const accelerator_t &glyf_accelerator,
      |        ^~~~~~~~~~
/linuxmuslx86_64/jdk-dev/src/java.desktop/share/native/libharfbuzz/hb-static.cc:45:16: note: '_hb_NullPool' declared here
   45 | uint64_t const _hb_NullPool[(HB_NULL_POOL_SIZE + sizeof (uint64_t) - 1) / sizeof (uint64_t)] = {};

We use gcc12 on Alpine.
Switching off the warning as error fixes the issue.

Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/2012 Date: 2023-06-30 06:58:19 +0000
30-06-2023

Fix request [11u] Requires build fix after harfbuzz backport. Trivial resolve needed. SAP nighlty testing passed.
30-06-2023

Fix request [17u] Requires build fix after harfbuzz backport. Trivial resolve needed. SAP nighlty testing passed.
22-06-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1480 Date: 2023-06-21 06:23:23 +0000
21-06-2023

Changeset: d2e0e534 Author: Matthias Baesken <mbaesken@openjdk.org> Date: 2023-05-08 14:16:08 +0000 URL: https://git.openjdk.org/jdk/commit/d2e0e534d7e391dd633fb9ff671900f8060b6d49
08-05-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/13859 Date: 2023-05-08 10:29:56 +0000
08-05-2023