Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 766821 - crossdev --target x86_64-w64-mingw32 fails with pthread.h: No such file or directory
Summary: crossdev --target x86_64-w64-mingw32 fails with pthread.h: No such file or di...
Status: RESOLVED DUPLICATE of bug 631460
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: 2021-01-24 09:41 UTC by Nik
Modified: 2021-01-24 09:53 UTC (History)
1 user (show)

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


Attachments
cross-x86_64-w64-mingw32-gcc-stage1.log.xz (cross-x86_64-w64-mingw32-gcc-stage1.log.xz,54.00 KB, application/x-xz)
2021-01-24 09:41 UTC, Nik
Details
cross-x86_64-w64-mingw32-info.log (cross-x86_64-w64-mingw32-info.log,20.20 KB, text/x-log)
2021-01-24 09:42 UTC, Nik
Details
gcc-config.logs.tar.xz (gcc-config.logs.tar.xz,53.27 KB, application/x-xz)
2021-01-24 09:44 UTC, Nik
Details
emerge --info (emerge_info,6.87 KB, text/plain)
2021-01-24 09:44 UTC, Nik
Details
cross-x86_64-w64-mingw32-mingw64-runtime-headers.log (cross-x86_64-w64-mingw32-mingw64-runtime-headers.log,319 bytes, text/x-log)
2021-01-24 09:46 UTC, Nik
Details
cross-x86_64-w64-mingw32-binutils.log (cross-x86_64-w64-mingw32-binutils.log,355 bytes, text/x-log)
2021-01-24 09:46 UTC, Nik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nik 2021-01-24 09:41:31 UTC
Created attachment 684294 [details]
cross-x86_64-w64-mingw32-gcc-stage1.log.xz

Executing "crossdev --target x86_64-w64-mingw32" results in build failure with the following errors:

crossdev --target x86_64-w64-mingw32  
-                                                                                                                                                                                                                                               
 * crossdev version:      20201129
 * Host Portage ARCH:     amd64
 * Host Portage System:   x86_64-pc-linux-gnu (i686-pc-linux-gnu x86_64-pc-linux-gnu)
 * Target Portage ARCH:   amd64
 * Target System:         x86_64-w64-mingw32
 * Stage:                 4 (C/C++ compiler)
 * USE=multilib:          no
 * Target ABIs:           amd64

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * libc:                  mingw64-runtime-[latest]

 * CROSSDEV_OVERLAY:      /usr/local/portage-crossdev
 * PORT_LOGDIR:           /var/log/portage
 * PORTAGE_CONFIGROOT:    /
 * Portage flags:         
                                                                                                                                                                                                                                                
 * leaving sys-devel/binutils in /usr/local/portage-crossdev
 * leaving sys-devel/gcc in /usr/local/portage-crossdev
 * leaving dev-util/mingw64-runtime in /usr/local/portage-crossdev
 * leaving sys-devel/gdb in /usr/local/portage-crossdev
 * enabling thin-manifests due to /usr/portage
                                                                                                                                                                                                                                                
 * Log: /var/log/portage/cross-x86_64-w64-mingw32-binutils.log
 * Emerging cross-binutils ...                                                                                                                                                                                                            [ ok ]
 * Log: /var/log/portage/cross-x86_64-w64-mingw32-mingw64-runtime-headers.log
 * Emerging cross-mingw64-runtime-headers ...                                                                                                                                                                                             [ ok ]
 * Log: /var/log/portage/cross-x86_64-w64-mingw32-gcc-stage1.log
 * Emerging cross-gcc-stage1 ...

 * error: gcc failed :(
 * 
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-x86_64-w64-mingw32-info.log
 * /var/log/portage/cross-x86_64-w64-mingw32-gcc-stage1.log.xz
 * /tmp//portage/cross-x86_64-w64-mingw32/gcc*/temp/gcc-config.logs.tar.xz
Comment 1 Nik 2021-01-24 09:42:34 UTC
Created attachment 684297 [details]
cross-x86_64-w64-mingw32-info.log
Comment 2 Nik 2021-01-24 09:44:18 UTC
Created attachment 684300 [details]
gcc-config.logs.tar.xz
Comment 3 Nik 2021-01-24 09:44:46 UTC
Created attachment 684306 [details]
emerge --info
Comment 4 Nik 2021-01-24 09:46:10 UTC
Created attachment 684309 [details]
cross-x86_64-w64-mingw32-mingw64-runtime-headers.log
Comment 5 Nik 2021-01-24 09:46:45 UTC
Created attachment 684312 [details]
cross-x86_64-w64-mingw32-binutils.log
Comment 6 Ionen Wolkens gentoo-dev 2021-01-24 09:53:51 UTC
 *      --enable-threads=posix

Try without setting this because it's causing it to look for headers that don't exist yet.

After toolchain is functional, you can re-enable then should be able to use a normal emerge command to rebuild with support if really needed (I assume for dxvk, wine[mingw] doesn't need this).

*** This bug has been marked as a duplicate of bug 631460 ***