Re: How can Autoconf help with the transition to stricter compilation defaults?

Sam James <[email protected]> Tue, 15 Nov 2022 13:34:20 +0000
Newsgroups dev.linux.lists.c-std-porting
Message-ID <[email protected]>
--Apple-Mail=_8D71FAA6-679A-4891-85AB-FFEBEAEB0C7F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii



> On 15 Nov 2022, at 13:30, Zack Weinberg <[email protected]> wrote:
>=20
> On Tue, Nov 15, 2022, at 12:03 AM, Sam James wrote:
>>> On 13 Nov 2022, at 00:43, Paul Eggert <[email protected]> wrote:
>>>=20
>>> Although there will be problems with people who run "./configure =
CFLAGS=3D'-Werror'", that sort of usage has always been problematic and =
unsupported by Autoconf, so we can simply continue to tell people "don't =
do that".
>>>=20
>>=20
>> Is there somewhere in the autoconf docs we actually say this?
>>=20
>> I've seen a few instances of folks adding it themselves very
>> early in their configure scripts (which is a pain for distros
>> anyway) which then ends up affecting the rest.
>=20
> It's mentioned in the NEWS entry for 2.70: =
https://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS#n170

Thanks, sorry, I didn't think to check NEWS. This is good enough for me =
to link folks to, anyway, for the time being.

> Note that there have been bug reports for cases where running builds =
with more warnings than configure uses (and I think also -Werror), means =
that configure checks spuriously succeed (i.e. configure reports that =
something is available, but then you get compiler errors on the code =
that tries to use it).  I can't remember any concrete examples right =
now, though.

I can totally imagine that, don't stress about the examples.


--Apple-Mail=_8D71FAA6-679A-4891-85AB-FFEBEAEB0C7F
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----

iNQEARYKAH0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCY3OVXV8UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB
NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MAAKCRBzhAn1IN+R
kOCzAQDaTgsAPpimP0RXRoJVwysrSEGc3kwInU1xKWCScn48YwD41gvPbXgEFLQg
zIDxwjbuwp47MzeOt4F586BdXDNjBQ==
=pTev
-----END PGP SIGNATURE-----

--Apple-Mail=_8D71FAA6-679A-4891-85AB-FFEBEAEB0C7F--