For both x86_64-w64-mingw32 and i686-w64-mingw32 crossdev tries to build stage 1 of gcc right after binutils, which leads to it failing due to missing headers. In file included from /var/tmp/portage/cross-x86_64-w64-mingw32/gcc-9.2.0/work/gcc-9.2.0/libgcc/../gcc/tsystem.h:44, from /var/tmp/portage/cross-x86_64-w64-mingw32/gcc-9.2.0/work/gcc-9.2.0/libgcc/libgcc2.c:27: /var/tmp/portage/cross-x86_64-w64-mingw32/gcc-9.2.0/work/build/gcc/include/stddef.h:1:15: fatal error: stddef.h: No such file or directory 1 | #include_next <stddef.h> | ^~~~~~~~~~ compilation terminated. Manually installing the relevant cross-(x86_64/i686)-w64-mingw32/mingw64-runtime with USE=headers-only allows gcc stage 1 to build.
Created attachment 589432 [details] build.log (x86_64-w64-mingw32/gcc stage 1)
Created attachment 589434 [details] crossdev info (includes emerge --info)
*** This bug has been marked as a duplicate of bug 693730 ***
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=090d76eaa97df4429e3e06c0811d758045539783 commit 090d76eaa97df4429e3e06c0811d758045539783 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2019-09-08 11:14:42 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2019-09-08 11:14:42 +0000 crossdev: reenable --with-headers for mingw targets gcc can't build libgcc2.c on --without-headers setup. Needs more investigation. Reported-by: Kyle Elbert Bug: https://bugs.gentoo.org/693770 Bug: https://bugs.gentoo.org/693730 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> crossdev | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=542cefd7c9fbcbea8d86e19da07d3576df2d6f97 commit 542cefd7c9fbcbea8d86e19da07d3576df2d6f97 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2019-09-08 11:19:45 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2019-09-08 11:21:50 +0000 sys-devel/crossdev: bump up to 20190908 reenable --with-headers for mingw targets gcc can't build libgcc2.c on --without-headers setup. Needs more investigation. Reported-by: Kyle Elbert Closes: https://bugs.gentoo.org/693770 Closes: https://bugs.gentoo.org/693730 Package-Manager: Portage-2.3.75, Repoman-2.3.17 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-devel/crossdev/Manifest | 1 + sys-devel/crossdev/crossdev-20190908.ebuild | 36 +++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+)