Bogus pthreads dependencies for GCC?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Bogus pthreads dependencies for GCC?

MinGW - Dev mailing list
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Folks,

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?

- --
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)

iQIcBAEBAgAGBQJZbjh+AAoJEMCtNsY0flo/S00QAIQyFSQ1/fEzRnD8Tz2Dct3W
pFr5L2UnnvZBPA5JD2iZqg0aic+GxU0Cc7AP/kYmUvAYXpx9xrhdjXtcF5H8qie+
jdA6xgUXG+YHcyrcvfmF0AL4UviMgqis4XXO8QoGD7x+mDg9IfeklSfVvyXvKUiR
CU+GiDTM+upoMx70gSNcI2VwbrrjNViHyJCPEvU1f9ieIQMWQ7P++fhaMgPlu0oJ
JbYlw/trjQrQpkh8+NMuCF+HyGJF7/YZRho4f3FF/ZXBEUabl7Gml1h4uGY/J5ch
ull+5JWRsh9mtSqdqbbtuU5da08LTuFEnXF3nhJc6QoOa1L790z585s8cKSotZp5
yeSjVEzjMZ+PlhDuKniBBeuGr6fAHwNcbo08v4yW2HuiKJKpSuiAnyCgCfs2OeZu
Gw74H8SoqDuWxydipkMg6pVqYwRne287/77+tlD0rwhbS4bbRT3cMePeILzKRGvr
1o1DgAgmbf8b0oQb2v+21sOn6bXCenoW+/exwOJM+dYRSme3sgtpic+H+f++SYQh
rQVqmIka32URihRw1oXaS09/O2KhgMdgifxuRULiWKJ1yeWu3tcMygpxJ5ZDZqjO
/cGmDKvsDuGywmDTjNqPnMn9GEI+USlcZB+btfXBneEQ5vB/gP5b8dggUxn5hfxf
pIpnMdyurzokTtupXBLT
=2HtG
-----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
_______________________________________________
MinGW-dvlpr mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mingw-dvlpr
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Bogus pthreads dependencies for GCC?

MinGW - Dev mailing list
On 7/18/2017 12:34 PM, Keith Marshall via MinGW-dvlpr wrote:

> Folks,
>
> 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.

--
Earnie

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-dvlpr mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mingw-dvlpr
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Bogus pthreads dependencies for GCC?

MinGW - Dev mailing list
-----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
_______________________________________________
MinGW-dvlpr mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mingw-dvlpr
Loading...