From nobody Wed Aug 07 16:47:27 2024 X-Original-To: java@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WfGLR6B7pz5Sky0 for ; Wed, 07 Aug 2024 16:47:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WfGLR0Y8Bz446n for ; Wed, 7 Aug 2024 16:47:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723049247; a=rsa-sha256; cv=none; b=fG2OTV1lw6boXk+6atCWSgMf6Mq03WGj+JFGdZbEpvs2EJYSJugO5C8pGyi4jhdpBYLHNR L55+dkNo8VGUpVkSrP8dnA4s46662F3Yuo1l2DBHfQtyujEtXTEz6r5yLzXRZQ+pWXFzNd R2TtIm9E4x8bgUzW5S5L/RGf6yjxUTBp+QXgk/262bi3E2HywhofLUvIvecYOG1P708wQd qtLZaUkv8kR2tDyhxeC8LmmKcPEIiddiy0sH5Q2r/VXI76oiZ00oGJTCYcoEmukLwHkw93 cydf+n9OOefXiweBWnpq6VZB27lp0Y9eSmcJR5/sIFDzZdKe/hQtTnAWZt76fg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723049247; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HEva3gHy2l7IN3ySbaj5pzqPG1wjSiaGAucmrQrijNc=; b=CXiwbbvCfOYQVUW6sv44kFdgX5JZlw2F0ptMb/at5PwcUV6mnetUTDdWBAEHbkl3nFSCCk cEv5SvEH9amdH4UB2VyuTYumt4gTYR9EJyNPH6eQUCVVYYY6JDhLI+WekMp90Qy4Es2Axn mn1vgHWbASTr8W26E8rkSFhj5W4u5iU/0+gXrNJ427dHbLEndI/mNJQqJ3FAq1IG5X/aC6 FyqF5Dj2gqlNy66aXt9jKkguUSiGoMVwlb9hA8tiGWXPwCCATxctoJhzWIS7D8TIpGmWq3 LwU1o7dklFHVHceCjIdnblHElQMBZe7FBrZ5hU6iWdas2PCdJQZfBcDbDbyiLA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WfGLQ6z7PzyHT for ; Wed, 7 Aug 2024 16:47:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 477GlQ73088269 for ; Wed, 7 Aug 2024 16:47:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 477GlQqu088266 for java@FreeBSD.org; Wed, 7 Aug 2024 16:47:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 280559] java/openjdk8: fix build with clang 19 Date: Wed, 07 Aug 2024 16:47:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280559 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3D55925767376bb8d4ffe1a0304555988= 464c25599 commit 55925767376bb8d4ffe1a0304555988464c25599 Author: Dimitry Andric AuthorDate: 2024-08-01 10:34:13 +0000 Commit: Dimitry Andric CommitDate: 2024-08-07 16:44:09 +0000 java/openjdk8: fix build with clang 19 Clang 19 is now more strict about undefined integral expressions used as constants in enum, which results in errors compiling java/openjdk8, similar to: =20=20=20=20=20=20=20 /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u422-b05.1/hotspot/src/shar= e/vm/oops/cpCache.hpp:195:34: error: expression is not an integral constant expression 195 | option_bits_mask =3D ~(((-1) << tos_state_shi= ft) | (field_index_mask | parameter_size_mask)) |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ =20=20=20=20=20=20=20 /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u422-b05.1/hotspot/src/shar= e/vm/oops/cpCache.hpp:195:42: note: left shift of negative value -1 195 | option_bits_mask =3D ~(((-1) << tos_state_shi= ft) | (field_index_mask | parameter_size_mask)) | ^ =20=20=20=20=20=20=20 /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u422-b05.1/hotspot/src/shar= e/vm/code/dependencies.hpp:173:27: error: expression is not an integral constant expression 173 | all_types =3D ((1 << TYPE_LIMIT) - 1) & ((-1)= << FIRST_TYPE), |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ =20=20=20=20=20=20=20 /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u422-b05.1/hotspot/src/shar= e/vm/code/dependencies.hpp:173:59: note: left shift of negative value -1 173 | all_types =3D ((1 << TYPE_LIMIT) - 1) & ((-1)= << FIRST_TYPE), | ^ In file included from /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u422-b05.1/jdk/src/share/na= tive/com/sun/java/util/jar/pack/bands.cpp:43: =20=20=20=20=20=20=20 /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u422-b05.1/jdk/src/share/na= tive/com/sun/java/util/jar/pack/constants.h:226:33: error: expression is not an integral constant expression 226 | AO_UNUSED_MBZ =3D (-1)<<13, // options bits reserved for future use. | ^~~~~~~~ =20=20=20=20=20=20=20 /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u422-b05.1/jdk/src/share/na= tive/com/sun/java/util/jar/pack/constants.h:226:37: note: left shift of negative value -1 226 | AO_UNUSED_MBZ =3D (-1)<<13, // options bits reserved for future use. | ^ In openjdk11 and later, the (-1) constants have been replaced by the unsigned variant (~0u), which fixes these errors. PR: 280559 Approved by: glewis (maintainer) MFH: 2024Q3 .../patch-hotspot_src_share_vm_code_dependencies.hpp (new) | 11 +++++++= ++++ .../files/patch-hotspot_src_share_vm_oops_cpCache.hpp (new) | 11 +++++++= ++++ ..._share_native_com_sun_java_util_jar_pack_constants.h (new) | 11 +++++++= ++++ 3 files changed, 33 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=