From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 527D7199 for ; Wed, 19 Apr 2023 02:39:50 +0000 (UTC) Received: by mail-wm1-f47.google.com with SMTP id d8-20020a05600c3ac800b003ee6e324b19so718076wms.1 for ; Tue, 18 Apr 2023 19:39:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681871988; x=1684463988; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=vjQA7xkPpFdIqQykIQFHfUL9KYSjIi+2Mxdzl+xS+sU=; b=POFPvSJGkBlBprI4d+TOfSNRlftm+1tZXLAq2WpAV0YokJbTkLwxFjZdP8WHXnDWq5 NgygcrBThrMgZEkPu45DocT2psfHQ53lOBl/97Ter1DBE8igCRqUD5lm9/SyOyKASqvU XcoIRlGB64iD+jDdN9wZtBZcQt/rG/6jkiB69BtHQJAPngXHTpxseRVd/L9QpceEZ52+ RuDHuDNhKmd4gnIDmWo+XOFXNGYlU6A008sWtO/gEXguxG45gGnXLYtfP4i6LjaNmyXj C2g13HoYfXsAxE/YuePivYc7ayYTMgTC941QarnPKfVr+h9FcpJcFSbXZb3fE5emaq3i BoHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681871988; x=1684463988; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vjQA7xkPpFdIqQykIQFHfUL9KYSjIi+2Mxdzl+xS+sU=; b=JqAPEi2vF7YScrJvROJnoI0tV/w8CdBB+5lk49IMaZ3YSkuy6oV+Yx4hPeq3+IPdZW UfH63LZzs/+ZW2iGtNaNUxp4vnpZqLIZRVmodTO0AYGn1Xp8f9g/gkAU2wUmNGQlZ5VA bQurTfq/mLj13nPaNVI2NjrUNin+SVoh5xfksey8XWkM1zB5LtZJ1cMRWsFKVnXQA2T7 fasCkGiOTQCO5EHenUk4EPRmKnDDwqSBTGzYZv4NPe9nA5DKF8a2vWiKIA8cFcAjww/A HhSr6HeAnfT9m6/ByreHPCDk/7PYnSj7YIL6AdWJHHHNyeg44o1egLH/EjUtOR4fhe41 xsQg== X-Gm-Message-State: AAQBX9encgPOnxx5q+6vnN7i5pYHsHmG6e/R2vwOrG2PzDnM1fOwOFQx r0yPNvkMJvb5PiqpfQ2PIp4= X-Google-Smtp-Source: AKy350bfzRQO/InETdoSOf8TTvL4lgIN3gWx51UWuAepG85meuj2+lUkiX9Mo30ksCj9yMXBKWqKsg== X-Received: by 2002:a05:600c:378b:b0:3f1:7aff:e14a with SMTP id o11-20020a05600c378b00b003f17affe14amr2456077wmr.39.1681871988363; Tue, 18 Apr 2023 19:39:48 -0700 (PDT) Received: from dj3ntoo (87.sub-72-108-136.myvzw.com. [72.108.136.87]) by smtp.gmail.com with ESMTPSA id n21-20020a7bcbd5000000b003f17c1384c4sm645985wmi.12.2023.04.18.19.39.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 19:39:47 -0700 (PDT) Date: Tue, 18 Apr 2023 21:39:42 -0500 From: Oskari Pirhonen To: Florian Weimer Cc: debian-devel@lists.debian.org, debian-gcc@lists.debian.org, c-std-porting@lists.linux.dev Subject: Re: RFC: More C errors by default in GCC 14 (no more implicit function declarations etc.) Message-ID: Mail-Followup-To: Florian Weimer , debian-devel@lists.debian.org, debian-gcc@lists.debian.org, c-std-porting@lists.linux.dev References: <87y1mpe11q.fsf@oldenburg.str.redhat.com> Precedence: bulk X-Mailing-List: c-std-porting@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="EntZCGvQcGqmwGrp" Content-Disposition: inline In-Reply-To: <87y1mpe11q.fsf@oldenburg.str.redhat.com> --EntZCGvQcGqmwGrp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 18, 2023 at 16:07:45 +0200, Florian Weimer wrote: > Gentoo has been fixing various packages for building with Clang, which > covers a superset of the issues that need to be addressed: >=20 > [TRACKER] Support LLVM/Clang as alternative system compiler=20 > >=20 > IIRC, Gentoo has its own mechanism to detect silent build breakage, but > I think it's mostly focused on autoconf, so it's less comprehensive, and > also fixes the stuff that is actually relevant to the distribution. >=20 For Gentoo, I wrote (with some help from others) this QA check [1] which Portage uses to scan Autoconf, CMake, and Meson config logs for implicit function declarations. It's inspired by a similar bit of code from the Macports folks [2] and written with both Clang and GCC in mind. It should be possible to adapt for use by others if you feed it the right dirs and replace a few functions (`has` and `eqa*` OTTOMH) since nothing about the core logic is Portage-specific. Although not so much for silent failures, but maybe still useful for someone, there's also this QA check [3] which is used to detect other warnings at build-time. - Oskari [1]: https://gitweb.gentoo.org/proj/portage.git/tree/bin/install-qa-check.d= /90config-impl-decl [2]: https://github.com/macports/macports-base/blob/15270571ab178ddff693fbd= 722163fe1d638ed55/src/port1.0/portconfigure.tcl#L1853 [3]: https://gitweb.gentoo.org/proj/portage.git/tree/bin/install-qa-check.d= /90gcc-warnings --EntZCGvQcGqmwGrp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQfOU+JeXjo4uxN6vCp8he9GGIfEQUCZD9UaQAKCRCp8he9GGIf EapdAP91wp/wY2rULqgy6ebMoF6HOHTGFeNp9pCzdkDt5EajGAD/ciqgOP6P2Nmt saB8DEbU/7E/pVCwAW5xWy50Nt9+ZwA= =czAF -----END PGP SIGNATURE----- --EntZCGvQcGqmwGrp--