From nobody Sun Feb 13 13:58:28 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 633D319C7EEF 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 4JxTTc1VJVz3j2g 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 107281C145 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 21DDwS2M026660 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 21DDwSq7026659 for ports-bugs@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: ports-bugs@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: 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=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=S9ssRUDIWHTV+6tk8K+BAgBPnLD1YztE8MQExJP+rkK08+/ZOYdXK5Lm6PHLLnEWIZ6iZE lJ1gF6xP1hKsKE0FK4eK9lAhONmp/unbnKXoV4KpbKvLphJ/l7XDhb+ghcsyvRcWsLEeLG s8WxJNP0vLzpC/52OOiQfwqnVbcWl2dL5Ig+ElA/aBfU6YOmwLhZ8nIHjTQuIpjY00H591 t0J+A6n39b5pIjQDEDG9LKf2uypdeCq7UJy9Kj9vnc+GWSiNiA8obbKSpuwh2qGws4vneo ztl8KtTuO5YXYxC4Lk3134SQf64d91E4SUu6TR5p2EAAFINYX2M3LY/pBgH7iw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644760708; a=rsa-sha256; cv=none; b=E5fIekZ1zfI5N9dbBXbS/HgC8gFP9h2X4QTIUWz1Xa7y3oSJrDwGaFymSfQ42d1d/dWYbV Tfc3PnZ15OnodEqp4hSKgDb+AnTHdvP91KBFVzIhW+6MZHAzLXUT7Zno+5CoaUf8U68r2T vt2IupER/rk27d9YXd9HuSSPk/X+r4RukTCBmzomxkUuPPzqhFI9C3H38pg+R7BwiqAoNK 9NcxRpW7BmOW2knBl/BlD2qmbJB5LvA7H2Zsyb+quO1QJGLApI/67PtQhLouJ2mw5swqsg gVADx2a+nmQKpdOJj9Ema6qXTZuVoUqaTigNn0tTFEhvuIx4HszoskZorrlIkQ== 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.=