Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669856 - cross-x86_64-w64-mingw32/gcc-8.2.0-r4 - libgomp/configure: /usr/libexec/gcc/x86_64-w64-mingw32/ld: cannot find -lpthread
Summary: cross-x86_64-w64-mingw32/gcc-8.2.0-r4 - libgomp/configure: /usr/libexec/gcc/x...
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 Toolchain Maintainers
Depends on:
Reported: 2018-10-28 12:23 UTC by Rafael Kitover
Modified: 2021-01-03 12:51 UTC (History)
0 users

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

gcc-build-logs.tar.bz2 (gcc-build-logs.tar.bz2,136.73 KB, application/x-bzip-compressed-tar)
2018-10-28 12:23 UTC, Rafael Kitover

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Kitover 2018-10-28 12:23:16 UTC
Created attachment 553486 [details]

The problem seems to be:

configure: error: Pthreads are required to build libgomp

build logs are attached.

I have mingw winpthreads installed by re-emerging the libraries with USE=libraries like you suggested, but it seems this directory is not searched by the gcc build.

I have it here:

Comment 1 Anton Romanov 2018-12-31 21:52:13 UTC
for me this was solved by reemerging mingw64-runtime with +libraries and then reemerging gcc
Comment 2 tt_1 2020-03-22 08:30:20 UTC
that's correct, if your cross-x86_64-w64-mingw32/gcc needs posix threads support, you first must build mingw64-runtime with USE="libraries"
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2021-01-03 12:51:53 UTC

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