On Mon, Jan 24, 2022 at 12:01 PM Jakub Jelinek <jakub(a)redhat.com> wrote:
On Mon, Jan 24, 2022 at 11:55:39AM +0100, Fabio Valentini wrote:
> Have the command line arguments that are accepted by gcc?
>
> The test suite of the "cc" crate (used for compiling and linking to C
> code within Rust projects) started failing with GCC 12 with this
> error:
>
> gcc: error: unrecognized command-line option '-arbitrary'
That was never a gcc command line option.
Ok, thanks for confirming ...
Upon further investigation, it looks like something very weird is
going on instead, because other tests that really *should* be working
(or at least, definitely passed until a few days ago) started breaking
in hilarious ways.
So I think the new problems might actually be caused by some broken
interaction between gcc 12, the new change to set CFLAGS / CXXFLAGS by
default, and the way the cc test suite works, and other recent
redhat-rpm-config changes. But I have no idea how this is so broken
all of a sudden.
Fabio