https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120145
--- Comment #11 from Kirill A. Korinsky <kirill at korins dot ky> --- Ok, result of bisect. Maybe it rings any bell. https://gcc.gnu.org/cgit/gcc/commit/?id=9b884225bfc609606f9b169b021c4da93feba48e and https://gcc.gnu.org/cgit/gcc/commit/?id=c29c92c789d93848cc1c929838771bfc68cb272c fails as: libtool: compile: /usr/ports/pobj/gcc-8.4.0/build-sparc64/./gcc/xgcc -shared-libgcc -B/usr/ports/pobj/gcc-8.4.0/build-sparc64/./gcc -nostdinc++ -L/usr/ports/pobj/gcc-8.4.0/build-sparc64/sparc64-unknown-openbsd/libstdc++-v3/src -L/usr/ports/pobj/gcc-8.4.0/build-sparc64/sparc64-unknown-openbsd/libstdc++-v3/src/.libs -L/usr/ports/pobj/gcc-8.4.0/build-sparc64/sparc64-unknown-openbsd/libstdc++-v3/libsupc++/.libs -B/usr/local/sparc64-unknown-openbsd/bin/ -B/usr/local/sparc64-unknown-openbsd/lib/ -isystem /usr/local/sparc64-unknown-openbsd/include -isystem /usr/local/sparc64-unknown-openbsd/sys-include -fno-checking -I/usr/ports/pobj/gcc-8.4.0/gcc/libstdc++-v3/../libgcc -I/usr/ports/pobj/gcc-8.4.0/build-sparc64/sparc64-unknown-openbsd/libstdc++-v3/include/sparc64-unknown-openbsd -I/usr/ports/pobj/gcc-8.4.0/build-sparc64/sparc64-unknown-openbsd/libstdc++-v3/include -I/usr/ports/pobj/gcc-8.4.0/gcc/libstdc++-v3/libsupc++ -std=gnu++98 -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=codecvt.lo -g -O2 -pipe -c /usr/ports/pobj/gcc-8.4.0/gcc/libstdc++-v3/src/c++98/codecvt.cc -fPIC -DPIC -D_GLIBCXX_SHARED -o codecvt.o In file included from /usr/ports/pobj/gcc-8.4.0/build-sparc64/sparc64-unknown-openbsd/libstdc++-v3/include/bits/locale_facets.h:2655, from /usr/ports/pobj/gcc-8.4.0/build-sparc64/sparc64-unknown-openbsd/libstdc++-v3/include/locale:40, from /usr/ports/pobj/gcc-8.4.0/gcc/libstdc++-v3/src/c++98/codecvt.cc:25: /usr/ports/pobj/gcc-8.4.0/build-sparc64/sparc64-unknown-openbsd/libstdc++-v3/include/bits/locale_facets.tcc: In member function 'void std::__numpunct_cache<_CharT>::_M_cache(const std::locale&)': /usr/ports/pobj/gcc-8.4.0/build-sparc64/sparc64-unknown-openbsd/libstdc++-v3/include/bits/locale_facets.tcc:89:42: internal compiler error: Segmentation fault 89 | __grouping = new char[_M_grouping_size]; | ^ libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. Commit before this two https://gcc.gnu.org/cgit/gcc/commit/?id=fa9863e7d34ecd011ae75083be2ae124e5831b64 had sucefully bootstraped. Meanwhile, since https://gcc.gnu.org/cgit/gcc/commit/?id= a8b98e2fc074dfb6c9419efbe70ce4021a04f356it fails on the first use of the first cc1, like this: /usr/ports/pobj/gcc-8.4.0/build-sparc64/./gcc/xgcc -B/usr/ports/pobj/gcc-8.4.0/build-sparc64/./gcc/ -xc++ -nostdinc /dev/null -S -o /dev/null -fself-test=/usr/ports/pobj/gcc-8.4.0/gcc/gcc/testsuite/selftests In function 'test': cc1plus: internal compiler error: Segmentation fault libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. gmake[3]: *** [/usr/ports/pobj/gcc-8.4.0/gcc/gcc/cp/Make-lang.in:178: s-selftest-c++] Error 1 And I can confirm that it fails on 15.2.0 and 16.0.0 which I tried from this commit: https://gcc.gnu.org/cgit/gcc/commit/?id=767f65cf82b516656dda95802a83bf905550f0b3 both are failed.