From nobody Mon Apr 04 08:10:18 2022 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 B907B1A636E6 for ; Mon, 4 Apr 2022 08:10:18 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KX3Np2FSsz4lhW for ; Mon, 4 Apr 2022 08:10:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 2EC8164EF for ; Mon, 4 Apr 2022 08:10:18 +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 2348AIVB049749 for ; Mon, 4 Apr 2022 08:10:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2348AIgx049748 for java@FreeBSD.org; Mon, 4 Apr 2022 08:10:18 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 262845] java/openjdk13 java/openjdk14 java/openjdk15 java/openjdk16 java/openjdk17: fix build with clang 14 Date: Mon, 04 Apr 2022 08:10:18 +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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649059818; 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=EJoL7AYkvraH/TM6Z41LkQZkEvwtgo4dzMG/k7kWlMY=; b=vQDLUvkaZbZz/POPERHdsZ+ugWee1MWsaj04XvMpf3IeNWB3IM1rjR6jwe0Ca7O0tzr9PB okv5lxGshhX6KkpnH0pVHHHwgwUM4Ar0o4VIExKhEOjZhucoLCVFpEi4uRSo5c45XEF3kE MJnAH20dVGYKjYLstTcFkQJLY92yO68jY9BusACil5m1fnypHPF5n9Y4051nRdKWsXn8fH TQX5RGAUmRoW9YsBmj2wVvKgFcFLLgmIvcJTRTPGGDjRIZ4TzWVgCYVarh3YulcqSRDBYF xfu7mIKGUpeMSjFiKh39pGIUqCdOW/ULU7QpHXqMNe3uQTkbW0wxwox2wYTcIA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649059818; a=rsa-sha256; cv=none; b=lmGt0jmV3eAnygE9r688AFDOBofy+DExvuUA7+AHT/NuDVsAbWGjlPYIFhX3aSedM0bwwQ D/tC9ca2z9ge7NSNCk0xgeFw03QCGmTrw2ypMiQHlqs5hFQ/ny1o2poTHbUiJZT7WnSOIC mrhx55Os/2F8U05UpNVETyMy5lbe1Mt7pMZGM/0bdxYsdHO6Dd/c/LW0pod946QyvlR5Ex bfyv5oOI/D6cUZ1e6ro30wJypZTEYMS0w39fjTBKOt/7s0+vjxws2c0282j+cqajBjG1df bj06KRZphVaBV+m0z1eZs2O32jAj8Y1s36uibgFP3bBvP5Pxl+zVnmqVqkUYow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262845 --- Comment #4 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3De406118f774154589b91dc8d84f7f03= 20766d5a4 commit e406118f774154589b91dc8d84f7f0320766d5a4 Author: Dimitry Andric AuthorDate: 2022-03-26 19:47:44 +0000 Commit: Dimitry Andric CommitDate: 2022-04-04 07:56:40 +0000 java/openjdk13 java/openjdk14 java/openjdk15 java/openjdk16 java/openjd= k17 java/openjdk17-jre: fix build with clang 14 During an exp-run for llvm 14 (see bug 261742), it turned out that java/openjdk13 and java/openjdk17 fail to build with clang 14 (but this also affects openjdk14 through 16): =3D=3D=3D Output from failing command(s) repeated here =3D=3D=3D * For target hotspot_variant-server_libjvm_objs_serviceThread.o: =20=20=20 /wrkdirs/usr/ports/java/openjdk13/work/jdk13u-jdk-13.0.10-5-1/src/hotspot/s= hare/runtime/serviceThread.cpp:133:15: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical] while (((sensors_changed =3D LowMemoryDetector::has_pending_reque= sts()) | =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ =20=20=20 /wrkdirs/usr/ports/java/openjdk13/work/jdk13u-jdk-13.0.10-5-1/src/hotspot/s= hare/runtime/serviceThread.cpp:133:15: note: cast one or both operands to int to silence this warning =20=20=20 /wrkdirs/usr/ports/java/openjdk13/work/jdk13u-jdk-13.0.10-5-1/src/hotspot/s= hare/runtime/serviceThread.cpp:133:15: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical] while (((sensors_changed =3D LowMemoryDetector::has_pending_reque= sts()) | =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ =20=20=20 /wrkdirs/usr/ports/java/openjdk13/work/jdk13u-jdk-13.0.10-5-1/src/hotspot/s= hare/runtime/serviceThread.cpp:133:15: note: cast one or both operands to int to silence this warning =20=20=20 /wrkdirs/usr/ports/java/openjdk13/work/jdk13u-jdk-13.0.10-5-1/src/hotspot/s= hare/runtime/serviceThread.cpp:133:15: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical] while (((sensors_changed =3D LowMemoryDetector::has_pending_reque= sts()) | =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ =20=20=20 /wrkdirs/usr/ports/java/openjdk13/work/jdk13u-jdk-13.0.10-5-1/src/hotspot/s= hare/runtime/serviceThread.cpp:133:15: note: cast one or both operands to int to silence this warning =20=20=20 /wrkdirs/usr/ports/java/openjdk13/work/jdk13u-jdk-13.0.10-5-1/src/hotspot/s= hare/runtime/serviceThread.cpp:133:15: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical] while (((sensors_changed =3D LowMemoryDetector::has_pending_reque= sts()) | =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... (rest of output omitted) Although the warning is normally an indication of a potential problem, in this case a comment just before the affected code explictly mentions the reason for using bitwise '|' instead of logical '||': // Process all available work on each (outer) iteration, rather t= han // only the first recognized bit of work, to avoid frequently true early // tests from potentially starving later work. Hence the use of // arithmetic-or to combine results; we don't want short-circuiti= ng. (See =20=20=20 ) Therefore, we should suppress -Wbitwise-instead-of-logical for clang 14 and higher. PR: 262845 Approved by: portmgr (build fix blanket) MFH: 2022Q2 java/openjdk13/Makefile | 7 ++++++- java/openjdk14/Makefile | 7 ++++++- java/openjdk15/Makefile | 7 ++++++- java/openjdk16/Makefile | 7 ++++++- java/openjdk17/Makefile | 7 ++++++- 5 files changed, 30 insertions(+), 5 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=