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 51AC319C7CE6 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 4JxTTc0MMwz3hqf 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 E14A21C2FB for ; Sun, 13 Feb 2022 13:58:27 +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 21DDwR9w026656 for ; Sun, 13 Feb 2022 13:58:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21DDwRFm026655 for uboot@FreeBSD.org; Sun, 13 Feb 2022 13:58:27 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: uboot@FreeBSD.org Subject: maintainer-feedback requested: [Bug 261930] sysutils/dtc: fix build with clang 14 Date: Sun, 13 Feb 2022 13:58:28 +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: uboot@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: 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: in-reply-to:in-reply-to:references:references; bh=qDdnGHY66/Y8hDXR1SXIxAEP880xUp3CujyJF37p3Q8=; b=Y0ni1B5FPYcQVmeOsLIq5aWfI/EhodyGCL2lplbYPKMItiCNqkYiK1nTsRQDb5pIZT4tt/ lbTMh48pRMCrniCPKzSdpPohFvvLFx6jIE4w9AtHebgnD4lo2thmrAyLjANIM6keKvk99z owQFeqgEUKuHir5M8BXIjjzvvufnvN7dKkjZUCfk/5vMMhIyFhOTh5Nko7mOlJsXR62LIJ FZce5f3k2Tt6XkFlxsZujcCJ3PfX2l6W8Hao71GB5dn4PGEXKNOvrNIJGlyBSgp88ax342 sWRQg5AqmES8ZcFRRJ6oEtD/hhHjrTf0cQQcGpARLtMroV3JwEmHMd9Ibl5aEQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644760708; a=rsa-sha256; cv=none; b=KpAW0plJW9ENquHJ1gsExq55rGOoIxnjJj0SNTqPy2g9sLi4R9CT76PikFFZdmQ/TEwU/A lFExDbtKzaDXBLpmtcytRD40yE0fquoWkPIt8rJ1imc5yusKyU8ne063amlI23TFp5PmpJ ewUS/4ONlRj31xsmefa6FKLfRCoXIySNtcFrIMslrMetiOH2RgydJGCPBkMopk4AvZNpwp jJahfK3wZN3qap8/vIzqHHNwX6EZ+DiMaJYYy55erorIXFUF0KkgZQpt2Mqbmmb/aEVjye ESeesNwCi+5MP7Ip4ivReHtA+mSAw7z9nJNkVUZX+2Iu4rRseM+/7pi1YHjPHQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Bugzilla Automation has asked freebsd-uboot (Nobody) for maintainer-feedback: Bug 261930: sysutils/dtc: fix build with clang 14 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261930 --- Description --- 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.