JDK-8307569 : Build with gcc8 is broken after JDK-8307301
  • Type: Bug
  • Component: client-libs
  • Affected Version: 21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-05-06
  • Updated: 2023-09-13
  • 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
* For target support_native_java.desktop_libfontmanager_gsubgpos-context.o:
In file included from /data/jdk/src/java.desktop/share/native/libharfbuzz/graph/../hb-set.hh:31,
                 from /data/jdk/src/java.desktop/share/native/libharfbuzz/graph/graph.hh:27,
                 from /data/jdk/src/java.desktop/share/native/libharfbuzz/graph/gsubgpos-graph.hh:27,
                 from /data/jdk/src/java.desktop/share/native/libharfbuzz/graph/gsubgpos-context.cc:27: 
/data/jdk/src/java.desktop/share/native/libharfbuzz/graph/../hb.hh:257:61: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
 #if defined(__OPTIMIZE__) && hb_has_builtin(__builtin_expect)
                                                             ^
In file included from /data/jdk/src/java.desktop/share/native/libharfbuzz/graph/../hb.hh:527,
                 from /data/jdk/src/java.desktop/share/native/libharfbuzz/graph/../hb-set.hh:31,
                 from /data/jdk/src/java.desktop/share/native/libharfbuzz/graph/graph.hh:27,
                 from /data/jdk/src/java.desktop/share/native/libharfbuzz/graph/gsubgpos-graph.hh:27,
                 from /data/jdk/src/java.desktop/share/native/libharfbuzz/graph/gsubgpos-context.cc:27:
/data/jdk/src/java.desktop/share/native/libharfbuzz/graph/../hb-algs.hh:116:39: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
       hb_has_builtin(__builtin_bswap16)))
                                       ^
   ... (rest of output omitted)
Comments
Fix request [11u] Requires build fix after harfbuzz backport. Trivial resolve needed. SAP nighlty testing passed.
30-06-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/2011 Date: 2023-06-30 06:44:45 +0000
30-06-2023

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

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

Changeset: 64c09628 Author: Jie Fu <jiefu@openjdk.org> Date: 2023-05-08 13:56:45 +0000 URL: https://git.openjdk.org/jdk/commit/64c09628664fd19c281723f15bf677c52e360acd
08-05-2023