From nobody Sat Jul 30 17:55:04 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 4LwBqY26B9z4X6gw for ; Sat, 30 Jul 2022 17:55:05 +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 4LwBqX5V07z3Mb3 for ; Sat, 30 Jul 2022 17:55:04 +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 4LwBqX49hQzNvZ for ; Sat, 30 Jul 2022 17:55:04 +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 26UHt4u3038467 for ; Sat, 30 Jul 2022 17:55:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 26UHt4S0038466 for ports-bugs@FreeBSD.org; Sat, 30 Jul 2022 17:55:04 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 265425] [exp-run] Against llvm-15-update branch on GitHub Date: Sat, 30 Jul 2022 17:55:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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=1659203704; 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=ge2hL+zdwvBwm9bU4RBS9qxRbFkpr2GxzURunKzYavs=; b=ZMPywNe1QVtZALZsOPkKqfhyR59EZKDuqVf4YmClzNvip82ahkMzG5C30ypxDxkZW16URG UC1u7IIPSRh0ILR42K3kH0t2374+jkairwMEWsrd0CYkoq6Kjwh8u+h+pTcWx3nk7t4AhP ZYl+5UUz6wb2JcHJRni/GD42efZdm0gFvuM8LPqbhWqpk8Ip21RTr7tK3L5Vmd2qCc78Sc 7kIb5cyO9ec//LKFGUdI8WlwGFHl67epYLGs8Coy1zC6BKltmkuPp6kpXlR+tyuJvcE8k/ uPk9y/T4UyJ45EWBq2PNhllY3UnHpyHRYQbfh1CgZxD2g8+gRDQpUoGkIhuzVg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659203704; a=rsa-sha256; cv=none; b=cGpbPfGPXcYNe2xPf2w0YlbfFwAQQxdsg6nJ/5yiQcTfwz/pjbcKy3FBrwb9M+5qdxDPcw ddyOBB29CNM2BTwqJw2rLP9cvMqQ7ayLBbXU0Dv9V9sUaOu8GZBjs58exkuSHO1YAjZsl1 nhyqumgUI9LObeeRv6+SUZ/FPppaLG4pkbSm7gTaW1PH5hCRrjDNegOiG3rfIFvn9yT84u fK0zUBkahYAOSzd5F1A2YMXQ9AN3u46mxBpgJUy++21owuVt/Q7xZBJX/7n6aY0ZrYF4I0 6sJYGUgIpZreAgWHfvsV52R+neUB86LJG+U8b56o/8AJDuM5sKNX+z2O0OIi0g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265425 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |brooks@FreeBSD.org --- Comment #13 from Dimitry Andric --- I would like to solicit some feedback about a few huge (in my opinion at le= ast) behavior changes in clang 15, as compared to clang 14: 1) In https://github.com/llvm/llvm-project/commit/7d644e1215b376ec5e915df9ea2eeb5= 6e2d94626 ("[C11/C2x] Change the behavior of the implicit function declaration warnin= g"), the -Wimplicit-function-declaration 'warning' became an error for C99 and later. 2) In https://github.com/llvm/llvm-project/commit/2cb2cd242ca08d0bbd2a51a41f13174= 42e5414fc ("Change the behavior of implicit int diagnostics"), the -Wimplicit-int 'warning' became an error for C99 and later. Of all the errors in Antoine's logs, -Wimplicit-function-declaration is more than half, and roughly 16% are -Wimplicit-int errors: % grep error: *.log > errors.txt % wc -l errors.txt 3257 errors.txt % grep Wimplicit-function-declaration errors.txt | wc -l 1848 % grep Wimplicit-int errors.txt | wc -l 525 I looked through a few ports, and while some of these can be 'fixed' by add= ing USE_CSTD=3Dgnu89 or USE_CSTD=3Dc89, lots of them either don't respect the U= SE_CSTD=3D setting or fail to pick up CFLAGS. So I'm wondering whether it is worthwhile to partially revert upstream comm= its 1) and 2), turning the errors back into warnings again. This would temporarily save us, until C2x becomes the default language dial= ect, but at some point this technical debt must paid: e.g. all ports that use "old-style" C (K&R, C89 without prototypes, implicit int etc etc) should explicitly be marked such, or they have to be patched to use an older compi= ler. What's the general opinion on this in the ports team? (Btw, going through all these ports with a fine toothed comb is probably the most future-proof, but I simply do not have the time for it.) --=20 You are receiving this mail because: You are on the CC list for the bug.=