* Richard W. M. Jones: > On Wed, Oct 01, 2025 at 01:15:48PM +0100, Richard W.M. Jones wrote: >> It worked with the previous version of AFL 4.33c, so something seems >> to have changed upstream, > > ... or thinking about it a bit more, the other possibility is > something might have changed in our RPM flags. The last build of AFL > was around June.
The %optflags options are tailored to support all of gcc, g++, gfortran. GCC will warn if C-only options are used with g++ or gfortran, so we added -Wno-complain-wrong-lang to avoid problems with -Werror builds. (%build_cflags etc. are language-specific and do not use this.) It looks like we don't have any C-only options in the default %optflags right now, so we could drop -Wno-complain-wrong-lang for now. Or add -Wno-unknown-warning-option, which is unknown to GCC, but GCC always ignores unknown -Wno-* options. You could use “%define toolchain clang” inside a macro to temporarily switch to the Clang toolchain and use its build flags (and use %set_build_flags macro for the default toolchain in a subshell). Thanks, Florian -- _______________________________________________ devel mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
