Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 732106 - mingw64-runtime-7.0.0 does not provide winpthreads on x86_64
Summary: mingw64-runtime-7.0.0 does not provide winpthreads on x86_64
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-10 12:54 UTC by Luca Barbato
Modified: 2020-08-12 21:13 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Barbato gentoo-dev 2020-07-10 12:54:13 UTC
winpthreads is enabled with --with-libraries only on i686 and not x86_64.

passing --with-libraries=all should be all we need to have the library available.
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2020-07-10 23:10:58 UTC
Enabling it makes sense. I don't understand why explicit =all is needed though. =all/=yes (default) should be equivalent:

Top-level configure.ac --with-libraries=all should already be a default with USE=libraries. only 'pseh' is conditional on the i686 target:

"""
AC_MSG_CHECKING([whether to build the optional libraries])
AC_ARG_WITH([libraries],
  [AS_HELP_STRING([--with-libraries=ARG],
    [Build the extra mingw-w64 libs, where ARG is comma separated list of libmangle, pseh, winpthreads, or all])],
  [],
  [with_libraries=no])

libraries="winpthreads mangle"

AS_CASE([$host_cpu],
  [i?86], [
    libraries="$libraries pseh"
  ])

for l in $libraries; do
  res=`echo "$with_libraries" | grep $l > /dev/null && echo yes || echo no`
  AS_CASE([$with_libraries],
    [all|yes],[res=yes])
    AS_VAR_COPY([with_libraries_$l], [res])
done
"""
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-07-11 15:16:09 UTC
Now I'm confused. cross-x86_64-w64-mingw32/mingw64-runtime[libraries] does install winpthread for me:

$ qlist cross-x86_64-w64-mingw32/mingw64-runtime | fgrep winpthread
/usr/x86_64-w64-mingw32/usr/lib/libwinpthread.dll.a
/usr/x86_64-w64-mingw32/usr/lib/libwinpthread.la
/usr/x86_64-w64-mingw32/usr/lib/libwinpthread.a
/usr/x86_64-w64-mingw32/usr/bin/libwinpthread-1.dll

Please attach emerge --info and build.log on a system where it does not.