Re: Bogus pthreads dependencies for GCC?
Keith Marshall via MinGW-dvlpr <[email protected]> Wed, 19 Jul 2017 15:20:40 +0100
| Newsgroups | gmane.comp.gnu.mingw.devel |
|---|---|
| Organization | MinGW Project |
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 18/07/17 20:13, Earnie via MinGW-dvlpr wrote: > On 7/18/2017 12:34 PM, Keith Marshall via MinGW-dvlpr wrote: >> I'm trying to tidy up the mingw-get package specifications for GCC-4+. >> Throughout the XML "requires" specifications for the "gcc-core" package, >> (specifically for its "bin" component), I'm seeing references to the >> development headers and libraries for pthreads-win32. Why? I can >> understand why each "libgomp-dll" component package release must specify >> dependencies for the specific pthreads-win32 DLL, against which it may >> have been linked, but why on earth are the associated pthreads-win32 >> development headers and static libraries required to run GCC? >> >> Am I missing something? > > It's been so long since I've even used it to comment. I'm thinking > maybe C++ drags them in but that is just a frog's hair chance of > possibility. That could be plausible, if we specified "--enable-threads=posix" when building the compiler. We don't normally do that -- my GCC-5.3.0-2 is an experimental exception; does anyone know of any other of our builds using a thread model which is not "win32"? More likely, the libgomp-1.dll build-time dependency on pthreads has been mistakenly propagated as a GCC run-time dependency, which I don't believe it to be unless the user's own source is pthreads dependent. Surely, in the latter case, the onus should be on the user to satisfy the dependency, in a manner which is compatible with the pthreads implementation he (or she) chooses to adopt? - -- Regards, Keith. Public key available from keys.gnupg.net Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQIcBAEBAgAGBQJZb2q4AAoJEMCtNsY0flo/zGEP/15JgFYzdvc+5YuDL/cNe5iR 06mr+n969JcRf5Ole8piEO8oPLAI8A59nAMgNajcffoYN0qvrRP8jXUSpbLAzn4X rglQS6MM72V78k9FUTtguhWsaTNZJRbnB2CeCCD+lDoG9/oT6v/TdzcKLVmp9G/O JarCozveYf9RaLTAqx4vvioRINVcLm3wqyp+oHUe3ROjKsluNipSBvYc3j/3rCAG rcVnD1JsfkLdBbo6lP3zpRjcl6HvC0Kd53CjRlw+rIxsjjtaOzKtC06QoWdFe1aQ eMjMYrsQOR4eB/3V2Hb9/CsE1nW3YO1reF+LubhPMZlJWelunIWdI/vfzFobXZCl dLpETO80yqGDRBmQQEHEZKWnAPCTiXhGIKKFngCIHVQLV8Vjilg+d3M+j30RzbWh fAHXvzWUNLRghU580ZT4KV6xOUoIKKOQUhhxp+/f/we8aSajmTttASt5LN7zgVdm hkK7i6bBcXtpt1cw40e7WsdJ9ZVgtrquzLP16Fw0Bb1R8BxzWXJ8RZ/7sWYDVRMv jxvuBLQn9ceqYFFtZUNDf/mGmeUvwtrGb7UkUIrXOn2IzHiPEesIPkzv8H1agfHQ ocqUOAxgwNjUyfDRE7sXnNvIHdf3txbta9JQb+jF7RBoooBXAH2vy/xkGFo4GCc3 2ZobuXyo6bwwz4uyBqWJ =nDKD -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot