Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 693730 - cross-x86_64-w64-mingw32/gcc-9.2.0 - In file included from .../work/gcc-9.2.0/libgcc/../gcc/tsystem.h:44, from .../work/gcc-9.2.0/libgcc/libgcc2.c:27: .../work/build/gcc/include/stddef.h:1:15: fatal error: stddef.h: No such file or directory
Summary: cross-x86_64-w64-mingw32/gcc-9.2.0 - In file included from .../work/gcc-9.2.0...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-08 04:50 UTC by Harrison Thorne
Modified: 2019-09-08 11:21 UTC (History)
1 user (show)

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


Attachments
cross-x86_64-w64-mingw32-gcc-stage1 log (cross-x86_64-w64-mingw32-gcc-stage1.log.xz,39.52 KB, application/x-xz)
2019-09-08 04:50 UTC, Harrison Thorne
Details
cross-x86_64-w64-mingw32-info log (cross-x86_64-w64-mingw32-info.log,17.41 KB, text/plain)
2019-09-08 04:53 UTC, Harrison Thorne
Details
cross-x86_64-w64-mingw64-gcc-stage1 log (cross-x86_64-w64-mingw64-gcc-stage1.log.xz,39.07 KB, application/x-xz)
2019-09-08 05:10 UTC, Harrison Thorne
Details
cross-i686-w64-mingw32-gcc-stage1 log (cross-i686-w64-mingw32-gcc-stage1.log.xz,39.00 KB, application/x-xz)
2019-09-08 05:11 UTC, Harrison Thorne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harrison Thorne 2019-09-08 04:50:24 UTC
Created attachment 589388 [details]
cross-x86_64-w64-mingw32-gcc-stage1 log

I'm trying to build the x86_64-w64-mingw32 toolchain built on my system to compile the Windows/WINE component of github.com/falkTX/carla. But it fails while emerging cross-gcc-stage1.

After running either of the following commands:

```
# crossdev -S --target x86_64-w64-mingw32
# crossdev -t x86_64-w64-mingw32
```

the error message returned is:

```
error: gcc failed :(
```

I have the following in /etc/portage/package.accept_keywords:

```
cross-i686-w64-mingw32/mingw64-runtime ~amd64
cross-x86_64-w64-mingw32/mingw64-runtime ~amd64
```

I have configured crossdev to use its own, separate overlay.

I've also tried `crossdev -C` before trying again, and that didn't fix the issue.

As requested by the error message, appropriate logs have been attached for a few different targets that have all failed. I'll be happy to provide further information if I'm able. Thank you for taking a look at this! It will be extremely beneficial to me personally if we can work this out.
Comment 1 Harrison Thorne 2019-09-08 04:53:22 UTC
Created attachment 589390 [details]
cross-x86_64-w64-mingw32-info log
Comment 2 Harrison Thorne 2019-09-08 05:10:05 UTC
Created attachment 589392 [details]
cross-x86_64-w64-mingw64-gcc-stage1 log
Comment 3 Harrison Thorne 2019-09-08 05:11:01 UTC
Created attachment 589394 [details]
cross-i686-w64-mingw32-gcc-stage1 log
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2019-09-08 09:52:48 UTC
*** Bug 693770 has been marked as a duplicate of this bug. ***
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2019-09-08 09:56:47 UTC
Probably a fallout from https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=7283a01fc3dd7523793c28d8acd04ce7fd049389

Try 'crossdev --with-headers -t x86_64-w64-mingw32' as a workaround.
Comment 6 Larry the Git Cow gentoo-dev 2019-09-08 11:16:27 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 7 Larry the Git Cow gentoo-dev 2019-09-08 11:21:56 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(+)