From nobody Sun Feb 13 13:58:28 2022 X-Original-To: uboot@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 71E6619C7EF0 for ; Sun, 13 Feb 2022 13:58:28 +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 4JxTTc204Yz3j4d for ; Sun, 13 Feb 2022 13:58:28 +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 214AD1C7A4 for ; Sun, 13 Feb 2022 13:58:28 +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 21DDwSY4026665 for ; Sun, 13 Feb 2022 13:58:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21DDwS4d026664 for uboot@FreeBSD.org; Sun, 13 Feb 2022 13:58:28 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: uboot@FreeBSD.org Subject: [Bug 261930] sysutils/dtc: fix build with clang 14 Date: Sun, 13 Feb 2022 13:58:28 +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: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: uboot@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-uboot List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-uboot@freebsd.org X-BeenThere: freebsd-uboot@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644760708; 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=0/uPVHS2g7bD6MZX58s+VZSvW/Um4elVG1I0Ya2rfKY=; b=BsFqO4xwukHJRatSf6I+2oenPcATTXqoxroneRgCiuU89fXtj+NFoynFeWiKdHAt4AyXN1 59dLzOvLzVTWR5XSNwFPfKtyHghzkqrN8Wl8pF0rS87H4dBvKZuulNtZmgfF1RtvyHjC71 GwxE/cw9aZmfliifHPaatfuoMNijAQ8KxFTfX9m8vhkMAsmU42ulX5BGk6PQXeHyXj3C81 WY3CSjKovsaiiiz7eDCNDqcRVobr8qToYbXngAmRaH/Ci56ZmDjU//YBJ5Mij1O9CZViCG Ml0KCFtMu5jO3d9JhMI22Uo/THHKVXvWF6fyxVvfqNfejejLOlaQuPZu38tGJA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644760708; a=rsa-sha256; cv=none; b=L2y54ThOVQYa08JzOO9mT1OQSLf0wWT4029B50jjlqV0se807szTmzpSteInToYPoFmDzb KFlmf6CV139TCQTbHFpZlxQigr2m7IklAXzfJSDGgN4FWG1rBwvrhD2gZBOzgx3aPVaIB4 VnoBLAymnYFzMgH42egdwtA0hgMGv8R3EM3uVf+seeZUHacyZaZ9gBXiS65KMmA5WAPH7w MvaRHHP+rLJz1m8hUwCa6lMpHjgOsALlKpxZgLxQKI4bHkTPk6oIt5QnckqEwOJnxfTXCe phlXv7f5WKjOn52l2itSymOCLcljw/KlNIfZ83dBWp8Vb2R47cAFI96+bD8SsQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261930 Bug ID: 261930 Summary: sysutils/dtc: fix build with clang 14 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: uboot@FreeBSD.org Reporter: dim@FreeBSD.org Flags: maintainer-feedback?(uboot@FreeBSD.org) Assignee: uboot@FreeBSD.org During an exp-run for llvm 14 (see bug 261742), it turned out that sysutils= /dtc fails to build with clang 14: libfdt/fdt_rw.c:438:6: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical] if (can_assume(LIBFDT_ORDER) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ || libfdt/libfdt_internal.h:171:29: note: expanded from macro 'can_assume' #define can_assume(_assume) can_assume_(ASSUME_ ## _assume) ^ libfdt/fdt_rw.c:438:6: note: cast one or both operands to int to silence th= is warning libfdt/libfdt_internal.h:171:29: note: expanded from macro 'can_assume' #define can_assume(_assume) can_assume_(ASSUME_ ## _assume) ^ 1 error generated. This looks like a bug in dtc, it should quite obviously use a logical || instead of a bitwise | here. I will attach at patch to this bug. --=20 You are receiving this mail because: You are the assignee for the bug.=