<snip> checking if /var/tmp/portage/sys-devel/gcc-8.2.0-r2/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-8.2.0-r2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include supports -c -o file.o... (cached) yes checking whether the /var/tmp/portage/sys-devel/gcc-8.2.0-r2/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-8.2.0-r2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include linker (/var/tmp/portage/sys-devel/gcc-8.2.0-r2/work/build/./gcc/collect-ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[2]: *** [Makefile:14618: configure-stage1-target-libstdc++-v3] Error 1 make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-8.2.0-r2/work/build' make[1]: *** [Makefile:22082: stage1-bubble] Error 2 make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-8.2.0-r2/work/build' make: *** [Makefile:22973: profiledbootstrap] Error 2 </snip> Build log atached.
Created attachment 544598 [details] build log
This "smells" parallel-build related. What happens if you turn right around after this error and invoke: ebuild $(portageq envvar PORTDIR)/sys-devel/gcc/gcc-8.2.0-r2.ebuild compile ? To be clear, not dismissing your problem, as a parallel-build issue is still an issue, as obviously toolchain ebuilds ought to be (and usually are) as robust as possible in the face of MAKEOPTS="-j$((RANDOM/128))".
1. Can you also attach 'emerge --info gcc' if that system? 2. Also, gcc ebuild package all relevant build logs and asks to attach those as well. Can you do that? Namely it says: """* Please include /var/tmp/portage/sys-devel/gcc-8.2.0-r2/work/gcc-build-logs.tar.bz2 in your bug report.""" 3. Is build failure reproducible?
Closing after a timeout. Feel free to file a new bug with some details if it happens again. gcc-build-logs.tar.bz2 would be most useful.