Created attachment 756978 [details] cross-x86_64-w64-mingw32-info.log In file included from /var/tmp/portage/cross-x86_64-w64-mingw32/gcc-11.2.0/work/gcc-11.2.0/libgcc/libgcov-merge.c:26: /var/tmp/portage/cross-x86_64-w64-mingw32/gcc-11.2.0/work/gcc-11.2.0/libgcc/libgcov.h:49:10: fatal error: sys/mman.h: No such file or directory 49 | #include <sys/mman.h> | ^~~~~~~~~~~~ compilation terminated. make[2]: *** [Makefile:921: _gcov_merge_add.o] Error 1
Created attachment 756979 [details] cross-x86_64-w64-mingw32-gcc-stage1.log.xz
Created attachment 756980 [details] gcc-config.logs.tar.xz
FYI, my emerge.log says that stage1 cross-x86_64-w64-mingw32/gcc-11.1.0 was successfully built on my environment (on Jun 10, 2021). I would recommend you try again with more default-ish USE flags. Or at least with USE=-lto.
I've since removed 'lto pgo' from the USE flags, and it still fails for 11.2.0. This is just a bootstrapping failure as known in the upstream bug. Bootstrapping succeeds for 10.3.0-r2, but I'm running into another old bug: https://bugs.gentoo.org/827923 https://bugs.gentoo.org/513706 Cheers