On Wed, Oct 01, 2025 at 03:47:49PM +0200, Florian Weimer wrote:
> * 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.

I didn't mention, but I tried scrubbing that specific flag (because of
the warning), and later a few others, but couldn't make anything work.
The only thing I got to work was having no special flags.

However I admit I didn't look at the problem in any depth.

> 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

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html

-- 
_______________________________________________
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

Reply via email to