[Bug 280560] java/openjdk11: fix build with clang 19
- Reply: bugzilla-noreply_a_freebsd.org: "maintainer-feedback requested: [Bug 280560] java/openjdk11: fix build with clang 19"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 280560] java/openjdk11: fix build with clang 19"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 280560] java/openjdk11: fix build with clang 19"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 280560] java/openjdk11: fix build with clang 19"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 280560] java/openjdk11: fix build with clang 19"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 280560] java/openjdk11: fix build with clang 19"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 01 Aug 2024 16:08:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280560 Bug ID: 280560 Summary: java/openjdk11: fix build with clang 19 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: java@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: java@FreeBSD.org Flags: maintainer-feedback?(java@FreeBSD.org) Clang 19 is now more strict about undefined integral expressions used as constants in enum, which results in errors compiling java/openjdk11, similar to: /wrkdirs/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.24-8-1/src/jdk.pack/share/native/common-unpack/constants.h:206:33: error: expression is not an integral constant expression 206 | AO_UNUSED_MBZ = (-1)<<13, // options bits reserved for future use. | ^~~~~~~~ /wrkdirs/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.24-8-1/src/jdk.pack/share/native/common-unpack/constants.h:206:37: note: left shift of negative value -1 206 | AO_UNUSED_MBZ = (-1)<<13, // options bits reserved for future use. | ^ Replace the negative value with ~0u to fix this error. -- You are receiving this mail because: You are the assignee for the bug.