Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 693770 - =sys-devel/crossdev-20190901 mingw64 stage 1 gcc fails, needs mingw64-runtime with USE="headers-only" before gcc
Summary: =sys-devel/crossdev-20190901 mingw64 stage 1 gcc fails, needs mingw64-runtime...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-08 09:47 UTC by Kyle Elbert
Modified: 2019-09-08 11:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (x86_64-w64-mingw32/gcc stage 1) (cross_gcc_build.log.xz,40.18 KB, application/x-xz)
2019-09-08 09:49 UTC, Kyle Elbert
Details
crossdev info (includes emerge --info) (file_693770.txt,21.12 KB, text/plain)
2019-09-08 09:51 UTC, Kyle Elbert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle Elbert 2019-09-08 09:47:32 UTC
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.
Comment 1 Kyle Elbert 2019-09-08 09:49:06 UTC
Created attachment 589432 [details]
build.log (x86_64-w64-mingw32/gcc stage 1)
Comment 2 Kyle Elbert 2019-09-08 09:51:47 UTC
Created attachment 589434 [details]
crossdev info (includes emerge --info)
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2019-09-08 09:52:48 UTC

*** This bug has been marked as a duplicate of bug 693730 ***
Comment 4 Larry the Git Cow gentoo-dev 2019-09-08 11:16:29 UTC
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(-)
Comment 5 Larry the Git Cow gentoo-dev 2019-09-08 11:21:59 UTC
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(+)