From nobody Sat Mar 26 19:53:44 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 B51B21A3643D for ; Sat, 26 Mar 2022 19:53:45 +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 4KQqQd1dKZz3Hmt for ; Sat, 26 Mar 2022 19:53:45 +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 17E2327355 for ; Sat, 26 Mar 2022 19:53:45 +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 22QJrjW2062564 for ; Sat, 26 Mar 2022 19:53:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22QJrjhD062563 for java@FreeBSD.org; Sat, 26 Mar 2022 19:53:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: maintainer-feedback requested: [Bug 262845] java/openjdk13 java/openjdk14 java/openjdk15 java/openjdk16 java/openjdk17: fix build with clang 14 Date: Sat, 26 Mar 2022 19:53:44 +0000 X-Bugzilla-Type: request 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: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: 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=1648324425; 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=L8aHXW3lOE2FhUQrZ+6VVzk3sV/sdZBabIfjE1jfOgc=; b=TEwcabuUrhFnPlFjkXYzeCMEc/6CCPRnc0G+dCbZmQlfDxFqxoXPZ/L2U272HLzx5jX5a4 SET5IVVyKJluGVuD6ZS49H+1amrozkjClZDZS9wTsiihmjU6fFbWS0DfDuL5FisWusBQq3 GRdkLztSLz0+ZprKsfpKXteGIyFuS7doiZsGtubbEzKWiDS7qIfsHkIn3LRefesHhKTLpR c3qR3mHXqIN29HRwlf5yQJtj4VuwhUI2UmmindIceLbJFR++Fc7wKBNOilDw6l68oDiWLI b2fi+PjZu76yd8Yhb8dr7PeiYQqtgboHob4ADUFnZ/17pO96f8GwQmafr85/4A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648324425; a=rsa-sha256; cv=none; b=yd6ibN6bf1ilz6h9nua4S13dRLKrk3xt/KHUS6dufUJwybx2efXZQmEIXLO+V7L3Xvi/Td tFGJEWRXVlVi8F2EW89ZuOMLclwKB36mfqvKRVxHb2pmCRqmc3SpLib1f/Gdz6fXc6VWwi Wrd34UFXG+GfNuCs6M90U8R+ls36EzyKFYEY1cF5+qFd0pwFvYm2xn82eUSsM+LJIKgsq0 pPwEUjVFy13/WGSthgspoNqvCyhEkO33dQYosr3batkf3N4Qhuetl3QvfZjkmSpYbHoPdV 8NmPXeMYke3VF5La6YDPQk+SEzTkDiOW6hI7gMtmMWeGNPRaTScZ6yeGpozsRQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Bugzilla Automation has asked freebsd-java (Nobody) for maintainer-feedback: Bug 262845: java/openjdk13 java/openjdk14 java/openjdk15 java/openjdk16 java/openjdk17: fix build with clang 14 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262845 --- Description --- 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: /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_requests(= )) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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 /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_requests(= )) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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 /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_requests(= )) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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 /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_requests(= )) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... (rest of output omitted) Although the warning is normally an indication of a potential problem, in t= his 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 than // only the first recognized bit of work, to avoid frequently true ea= rly // tests from potentially starving later work. Hence the use of // arithmetic-or to combine results; we don't want short-circuiting. (See https://github.com/openjdk/jdk/blob/master/src/hotspot/share/runtime/servic= eThr ead.cpp#L140 ) Therefore, we should suppress -Wbitwise-instead-of-logical for clang 14 and higher.