Bug 265778 - java/openjdk11 compiler error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
Summary: java/openjdk11 compiler error: use of bitwise '|' with boolean operands [-Wer...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-java (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-11 18:50 UTC by O. Hartmann
Modified: 2022-08-24 06:10 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (java)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2022-08-11 18:50:01 UTC
On recent CURRENT (FreeBSD 14.0-CURRENT #10 main-n257258-348164aa9e5d: Wed Aug 10 22:39:17 CEST 2022 amd64) compiling port java/openjsd11 fails with the error shown below (2 errors in sum, shown the first one, both of same type: error: use of bitwise ...):

[...]
gmake[4]: Leaving directory '/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.16-8-1/make'
gmake[4]: Leaving directory '/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.16-8-1/make'
In file included from /usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.16-8-1/src/java.desktop/share/native/libharfbuzz/hb-aat-layout.cc:35:
In file included from /usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.16-8-1/src/java.desktop/share/native/libharfbuzz/hb-aat-layout-kerx-table.hh:31:
In file included from /usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.16-8-1/src/java.desktop/share/native/libharfbuzz/hb-kern.hh:32:
/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.16-8-1/src/java.desktop/share/native/libharfbuzz/hb-ot-layout-gpos-table.hh:1131:11: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
      if (valueFormats[0].apply_value (c, this, &record->values[0], buffer->cur_pos()) |
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~