Hello. I cannot build GCC13: In file included from /var/tmp/portage/sys-devel/gcc-13.3.1_p20240614/work/gcc-13-20240614/gcc/c-family/c-common.cc:9555: ./gt-c-family-c-common.h: In function ‘void c_define_builtins(tree, tree)’: ./gt-c-family-c-common.h:199:2: error: reference to dead statement 199 | }; | ^ ./gt-c-family-c-common.h:199: confused by earlier errors, bailing out For some reason, I cannot compile any version of GCC even when I install the GCC & binutils binaries and use them to compile GCC13. This particular compilation is with the GCC14 I currently have installed.
Created attachment 901017 [details] The build environment
Created attachment 901018 [details] The elibtool log
Created attachment 901019 [details] The build log
The cfg is corrupt: ``` for (i = 0; iterate_reference (i, ref); i++) if (ref->stmt && !stmts.contains (ref->stmt)) { error ("reference to dead statement"); cgraph_debug_gimple_stmt (this_cfun, ref->stmt); error_found = true; } ``` Please include emerge --info. I suspect your machine has something like a broken gmp or mpc library.
Created attachment 901020 [details] emerge --info output Okay. Here is the emerge --info output.
> CFLAGS="-march=native -O3 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -ggdb3 -pipe -fno-math-errno -fno-trapping-math -flto=auto -fuse-linker-plugin -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition" If you've been building chunks of your system with -fno-math-errno -fno-trapping-math, it might well be related. Don't do that.