Created attachment 719424 [details] build log make[2]: Entering directory '/var/tmp/portage/sys-devel/gcc-8.5.0/work/build/libcc1' /bin/bash ./libtool --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -std=gnu++98 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1 -I /var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1/../include -I /var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1/../libgcc -I ../gcc -I/var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1/../gcc -W -Wall -fvisibility=hidden -pipe -march=native -O2 -MT findcomp.lo -MD -MP -MF .deps/findcomp.Tpo -c -o findcomp.lo /var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1/findcomp.cc libtool: compile: x86_64-pc-linux-gnu-g++ -std=gnu++98 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1 -I /var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1/../include -I /var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1/../libgcc -I ../gcc -I/var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1/../gcc -W -Wall -fvisibility=hidden -pipe -march=native -O2 -MT findcomp.lo -MD -MP -MF .deps/findcomp.Tpo -c /var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1/findcomp.cc -fPIC -DPIC -o .libs/findcomp.o x86_64-pc-linux-gnu-g++: /var/tmp/portage/sys-devel/gcc-8.5.0/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by x86_64-pc-linux-gnu-g++) make[2]: *** [Makefile:501: findcomp.lo] Error 1 make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-8.5.0/work/build/libcc1' make[1]: *** [Makefile:14162: install-libcc1] Error 2 make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-8.5.0/work/build' make: *** [Makefile:2324: install] Error 2 * ERROR: sys-devel/gcc-8.5.0::gentoo failed (install phase): * emake failed
Created attachment 719427 [details] emerge info
Created attachment 719430 [details] emerge -pqv
> ccache version 4.3 [enabled] ... > libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by x86_64-pc-linux-gnu-g++) This one is bug #761220. The workarounds are: - using FEATURES=-ccache for gcc - using USE=static-c++ for ccache Any of two should work. *** This bug has been marked as a duplicate of bug 761220 ***
I experience the same problem when building gcc 8.5 on Fedora 34 with gcc 11.3 but no ccache, could you advise me how to solve the issue if I use the following procedure? tar xvf gcc-8.5.0.tar.xz cd gcc-8.5.0/ ./contrib/download_prerequisites cd ../ mkdir build-gcc85 cd build-gcc85/ ../gcc-8.5.0/configure --prefix=/usr/local/gcc85 --program-suffix=85 --enable-languages=c,c++,fortran --disable-multilib --disable-libstdcxx-pch --with-system-zlib make