Closed joelsherrill closed 2 years ago
Interesting. I wonder why these C++ errors didn't pop up on all our other builders. It might be due to using the latest version of gcc? I wonder if that happens on x86 as well
I'm using gcc 12.1, had no build fails, although I was disabling bootstrap (although most of a bootstrap build completed before that). There arent any changes in gcc that I can see https://gcc.gnu.org/gcc-13/changes.html that would have affected this code area.
It looks as though there has been a patch submitted to GCC master which might fix this for you:
commit 4c6567b4090d9363f90b5c68e238e7d0964b6e89
Author: Jason Merrill <jason@redhat.com>
Date: Sun Jul 24 23:26:59 2022 -0400
c++: -Woverloaded-virtual false positive [PR87729]
We usually build gccrs with our distro compiler at the moment.
@CohenArthur is going to check this for us :D
Hi @joelsherrill,
I've tried building two gcc
s, before and after this commit which fixes some overzealous virtual methods warnings.
The "before" build failed with the same error as yours. The "after" one however completed without an issue. I did full bootstrap builds for both versions of gcc
, to get as close to your scenario as possible. Hope it helps :)
This seems to be fixed since this commit to GCC HEAD https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=4c6567b4090d9363f90b5c68e238e7d0964b6e89
Attempting to compile gccrs to target arm-rtems6 using a native gcc built from the gcc head. The last gccrs commit was:
`commit a273dbd971d337000155fe56a1d7cd78868caa9a (HEAD -> master, origin/staging, origin/master, origin/HEAD) Merge: 3f325921597 3ccf43082d2 Author: bors[bot] 26634292+bors[bot]@users.noreply.github.com Date: Fri Jul 8 18:19:34 2022 +0000
` and compiling with gcc (not gccrs) built from gcc master:
$ gcc --version gcc (GCC) 13.0.0 20220710 (experimental) Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I got this error:I expected to see this happen: explanation
Instead, this happened: explanation
Meta