Date: Thu, 01 Aug 2024 16:08:31 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 280560] java/openjdk11: fix build with clang 19 Message-ID: <bug-280560-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280560 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: =20=20=20 /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 =3D (-1)<<13, // options bits res= erved for future use. | ^~~~~~~~ =20=20=20 /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 =3D (-1)<<13, // options bits res= erved for future use. | ^ Replace the negative value with ~0u to fix this error. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280560-7788>