From nobody Sun Aug 7 11:54:08 2022 X-Original-To: ports-bugs@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 4M0yRN3wJBz4XhHF for ; Sun, 7 Aug 2022 11:54:08 +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 4M0yRN25pVz3KQT for ; Sun, 7 Aug 2022 11:54:08 +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 4M0yRN1B4fz1B9k for ; Sun, 7 Aug 2022 11:54:08 +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 277Bs8MO056261 for ; Sun, 7 Aug 2022 11:54:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 277Bs86h056260 for ports-bugs@FreeBSD.org; Sun, 7 Aug 2022 11:54:08 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 265687] openjdk11 fails due to -Wbitwise-instead-of-logical Date: Sun, 07 Aug 2022 11:54:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: se@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659873248; 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; bh=J1Wzma6WH7fz+6bQW284MdrH10ufB+uBrDxZt/KT3yg=; b=LIYaBkkCHE4GSktNIYTQL9t4mzEM/PDTjrZtplef+PB2k358PpVMeWZSQ2pxfIBelP1E15 SA6OYSJI0PumkQ2zNNsF3pzGmxlVLxJrOAmGGeu3SKT2qZ3iqUMF1oHoTJZCWbCprxYS3b xP63kfoDVp3Y3Q3qDRzEZ9TNkIpwW3CkfFXQqJtCuf8orzEfGHcRDpMi8kWuaSRnD7NAer khHBD+cTtenHe7E2R4Fu0xeNGMPdt52MZtaU7RxfQ58PINmo3CghaDeSSG51ArLODdPAZ9 14SJDaQ6gMBRnnQUPQXkzd6M1c7Lsvi29UF5WCes0WJQrV61+x/TLdN7q//QfA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659873248; a=rsa-sha256; cv=none; b=wbZtpeYrUrg3sX/q/nEgzyH6crmMVj/8M4YxkEejVXRtx/6P31aA8eOphzevVcE1k4as9T CF8ZWuhBMh+TTrFUcknJD9hUU652Qi9RDkxwXZDPBlmqDi42+tbdiBlSi7xkbi8k2tBW/V vFhmmP5Eg7a9KTiwj1bn+Ptt3TQ7ARAF7FEq+SsSoSpmc4v8TRaK4zRcnlLW8923Hj5MSD dbSObJkivtwORdE9YRZ0ojWKe3grRKQevEPGexSuOgZRpDclzW4YxCNpHde/fQeswYZYsI xpnC819+jfe7ZQfTeN3Waj6hqYAiAsjIorqy3dp+C3PIBnpsYoV7OCKGu0YR0w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265687 Bug ID: 265687 Summary: openjdk11 fails due to -Wbitwise-instead-of-logical Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: se@FreeBSD.org Created attachment 235740 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D235740&action= =3Dedit Store attachment as "files/patch-src_java.desktop_share_native_libharfbuzz_hb-ot-layout-gpos-ta= ble.hh" On -CURRENT building openjdk11 fails with warnings treated as errors, e.g: > * For target support_native_java.desktop_libfontmanager_hb-ot-shape-fallb= ack.o: > In file included from src/java.desktop/share/native/libharfbuzz/hb-ot-sha= pe-fallback.cc:32: > In file included from src/java.desktop/share/native/libharfbuzz/hb-kern.h= h:32: > src/java.desktop/share/native/libharfbuzz/hb-ot-layout-gpos-table.hh:1131= :11: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-ins= tead-of-logical] > if (valueFormats[0].apply_value (c, this, &record->values[0], buffe= r->cur_pos()) | > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~ > = || > src/java.desktop/share/native/libharfbuzz/hb-ot-layout-gpos-table.hh:1131= :11: note: cast one or both operands to int to silence this warning > src/java.desktop/share/native/libharfbuzz/hb-ot-layout-gpos-table.hh:1417= :9: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-inst= ead-of-logical] > if (valueFormat1.apply_value (c, this, v, buffer->cur_pos()) | > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > || > src/java.desktop/share/native/libharfbuzz/hb-ot-layout-gpos-table.hh:1417= :9: note: cast one or both operands to int to silence this warning > 2 errors generated. The sources contain a comment: /* Note the intentional use of "|" instead of short-circuit "||". */ above line 1131 and 1417. Casting one operand to int (as suggested in the warning text) does fix the issue (see attached patch). A similar issue might exist in other openjdk ports when built on -CURRENT (= not tested). --=20 You are receiving this mail because: You are the assignee for the bug.=