Summary: | cross-x86_64-w64-mingw32/gcc-9.3.0-r1 - In file included from .../work/gcc-9.3.0/libgcc/emutls.c:31: ./gthr-default.h:35:10: fatal error: pthread.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jeremy Sylvis <jeremy.sylvis> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
/var/log/portage/cross-x86_64-w64-mingw32-info.log
/var/log/portage/cross-x86_64-w64-mingw32-gcc-stage1.log.xz /var/tmp/portage/cross-x86_64-w64-mingw32/gcc-9.3.0-r1/temp/gcc-config.logs.tar.xz |
Description
Jeremy Sylvis
2020-08-12 13:53:02 UTC
Created attachment 654318 [details]
/var/log/portage/cross-x86_64-w64-mingw32-gcc-stage1.log.xz
Created attachment 654320 [details]
/var/tmp/portage/cross-x86_64-w64-mingw32/gcc-9.3.0-r1/temp/gcc-config.logs.tar.xz
In file included from /var/tmp/portage/cross-x86_64-w64-mingw32/gcc-9.3.0-r1/work/gcc-9.3.0/libgcc/gthr.h:148, from /var/tmp/portage/cross-x86_64-w64-mingw32/gcc-9.3.0-r1/work/gcc-9.3.0/libgcc/emutls.c:31: ./gthr-default.h:35:10: fatal error: pthread.h: No such file or directory 35 | #include <pthread.h> | ^~~~~~~~~~~ compilation terminated. make[2]: *** [/var/tmp/portage/cross-x86_64-w64-mingw32/gcc-9.3.0-r1/work/gcc-9.3.0/libgcc/static-object.mk:17: emutls.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /var/tmp/portage/cross-x86_64-w64-mingw32/gcc-9.3.0-r1/work/gcc-9.3.0/libgcc/unwind-c.c:240:1: warning: no previous prototype for ‘__gcc_personality_seh0’ [-Wmissing-prototypes] 240 | __gcc_personality_seh0 (PEXCEPTION_RECORD ms_exc, void *this_frame, | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /var/tmp/portage/cross-x86_64-w64-mingw32/gcc-9.3.0-r1/work/gcc-9.3.0/libgcc/gthr.h:148, from /var/tmp/portage/cross-x86_64-w64-mingw32/gcc-9.3.0-r1/work/gcc-9.3.0/libgcc/unwind-sjlj.c:31: ./gthr-default.h:35:10: fatal error: pthread.h: No such file or directory 35 | #include <pthread.h> | ^~~~~~~~~~~ compilation terminated. config.log says you have enabled --enable-threads=posix. Looking at our toolchain.eclass It should not be: https://gitweb.gentoo.org/repo/gentoo.git/tree/eclass/toolchain.eclass#n936 For 2 reasons: - it's a cross-compiler targets - and it's a mingw target Did you patch or override things locally? We need to find out where it comes from. I was following this guide: https://wiki.gentoo.org/wiki/DXVK#From_source The command immediately after the initial crossdev command was this: echo "EXTRA_ECONF=\"--enable-threads=posix\"" >> /etc/portage/env/mingw-gcc.conf So, if I'm understanding the toolchain right (and I'm new, I'm likely not), if the first run-through may have failed for something unrelated, this echo would have added the --enable-threads flag, and subsequent runthroughs would fail. I'll purge those and try again. That was exactly the issue. Thank you for the guidance and my apologies for wasting your time. I'll update the wiki to provide some guidance for anyone else who gets stuck there and close this. |