autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems building rsync with Clang 15 beta


From: Paul Eggert
Subject: Problems building rsync with Clang 15 beta
Date: Thu, 18 Aug 2022 08:22:35 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

On 8/17/22 23:58, Khem Raj wrote:
rsync which add -pedantic-errors option to cflags during configure

OK, that's the problem then. 'configure' should not use flags like -pedantic-errors. This has long been a property of 'autoconf'-generated scripts.

The simplest way to fix this would be for rsync to not add -pedantic-errors, as it's more trouble than it's worth. If rsync must add -pedantic-errors for some reason, it should do so at the very end of 'configure', as in the attached untested patch, so as not to screw up earlier 'configure' tests; and perhaps it'd be better for rsync to also add -pedantic-errors only for GCC not Clang (since Clang is more likely to mutate further in this area).

Really, though, omitting -pedantic-errors entirely is the way to go. -pedantic-errors should be enabled only for special purposes, by explicit request of the person running 'configure' and/or 'make'; it's not suitable as a default option.

Anyway, please give this rsync patch a try. I'll cc it to the rsync mailing list to give rsync developers a heads-up about the compatibility problem building rsync with Clang 15 (which luckily does not exist yet :-).

Attachment: 0001-Turn-on-pedantic-errors-at-the-end-of-configure.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]