From nobody Thu Mar 17 21:07:45 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 386D21A1D648 for ; Thu, 17 Mar 2022 21:07:46 +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 4KKKVB0RGlz3n3t for ; Thu, 17 Mar 2022 21:07:46 +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 DF2AA11E3B for ; Thu, 17 Mar 2022 21:07: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 22HL7jUE039778 for ; Thu, 17 Mar 2022 21:07:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22HL7jve039777 for ports-bugs@FreeBSD.org; Thu, 17 Mar 2022 21:07:45 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 262634] graphics/libavif: Fix build with clang 14 Date: Thu, 17 Mar 2022 21:07:45 +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: jbeich@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=1647551266; 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=+ERXZFVzqsOgkihyANIENQkNo6Qe0X4ygwFDOCOwQuY=; b=DrZi2bHRcfUTKgqsZ2Zd0ymKLjDSZnqAgWSnYNvzRJmvHSshVElRspf75RIvVxtptXhkgF ptN+9EFKzx39bZFH8tVzmO3JNUEZCIdeNtTvFCZq7DR+dDmXcCos6I2k5MkUlAwc5/+i3p husrmtA3J87rfRi4C44gCCBchtr0/rIXrQonOLUwwnCBf3A9mGLRVox1ntZ5APhJnpmsFB eM7kPaIFaqz3SLzNbA7b0SA4g2TxpC3fLSo7wERc3UX9m4yBj7KmUkD+TN9MOPULDJ3pm4 PXZjKD1G8PjkdN0DiukK3HyKvCoLhPx9aFsl1gu/KMG6D2TjAspZadaG81JZhA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647551266; a=rsa-sha256; cv=none; b=Sdaaku4mS1tAA1m5NyE86VX4uoYWaUe9fKC2jxk5eeDhQANsBKofYGT1jZQ86cK8F7MBuo FoFudvVDuLz4Ma9q6ZwC9sjg/3LW1XWdZzC0dzqHyhSTSRdmWCBlEn6dw/xWmqfO87vrz5 Geo3Oaoa6v+/B5bXU6EY9vhsuuygX4blFyzpqPjamsDUmOicwkBu5pDSfuFeFm04wxYEL1 8Nv8lAnnCDxK/TuHLfSGRKiH/6Af6MxuI3KaZG+7pAcLM6TRJ1sQzxiGiytXtqKReA/qpq fpLgQfZ0BE4raxqmB1/PMtLvW9LpgWVGZrO9lFAFZaufZkxj3Rs+QpRIAraByw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262634 Bug ID: 262634 Summary: graphics/libavif: 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: jbeich@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: jbeich@FreeBSD.org Flags: maintainer-feedback?(jbeich@FreeBSD.org) During an exp-run for llvm 14 (see bug 261742), it turned out that graphics/libavif fails to build with clang 14: /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.3/src/alpha.c:227:35: error: mixing declarations and code is incompatible with standards before C= 99 [-Werror,-Wdeclaration-after-statement] float alphaF =3D (float)srcAlpha / srcMaxChanne= lF; ^ /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.3/src/alpha.c:242:35: error: mixing declarations and code is incompatible with standards before C= 99 [-Werror,-Wdeclaration-after-statement] float alphaF =3D (float)srcAlpha / srcMaxChanne= lF; ^ /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.3/src/alpha.c:258:31: error: mixing declarations and code is incompatible with standards before C= 99 [-Werror,-Wdeclaration-after-statement] float alphaF =3D (float)srcAlpha / srcMaxChannelF; ^ /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.3/src/alpha.c:335:35: error: mixing declarations and code is incompatible with standards before C= 99 [-Werror,-Wdeclaration-after-statement] float alphaF =3D (float)srcAlpha / srcMaxChanne= lF; ^ /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.3/src/alpha.c:351:35: error: mixing declarations and code is incompatible with standards before C= 99 [-Werror,-Wdeclaration-after-statement] float alphaF =3D (float)srcAlpha / srcMaxChanne= lF; ^ /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.3/src/alpha.c:368:31: error: mixing declarations and code is incompatible with standards before C= 99 [-Werror,-Wdeclaration-after-statement] float alphaF =3D (float)srcAlpha / srcMaxChannelF; ^ /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.3/src/alpha.c:397:16: error: mixing declarations and code is incompatible with standards before C= 99 [-Werror,-Wdeclaration-after-statement] avifResult libyuvResult =3D avifRGBImagePremultiplyAlphaLibYUV(rgb); ^ /wrkdirs/usr/ports/graphics/libavif/work/libavif-0.9.3/src/alpha.c:508:16: error: mixing declarations and code is incompatible with standards before C= 99 [-Werror,-Wdeclaration-after-statement] avifResult libyuvResult =3D avifRGBImageUnpremultiplyAlphaLibYUV(rgb); ^ 8 errors generated. This is because libavif foolishly uses -Weverything, and thus has to chase every new warning introduced by newer compiler versions. I submitted https://github.com/AOMediaCodec/libavif/pull/886 upstream to fix this, and added the corresponding patch to the port. --=20 You are receiving this mail because: You are the assignee for the bug.=