This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Barry Davis
Recipients Barry Davis, benjamin.peterson, hongxu, pitrou
Date 2019-01-25.10:50:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1548413404.09.0.724248584674.issue31171@roundup.psfhosted.org>
In-reply-to
Content
I've just hit this issue using Python-2.7.9, gcc-8.1.0, glibc-2.23.

The patch I made to fix the issue based on comments in this issue:

--- Python-2.7.9/setup.py       2019-01-25 09:30:39.049501423 +0000
+++ Python-2.7.9/setup.py       2019-01-25 09:30:55.369609646 +0000
@@ -1670,7 +1670,7 @@

         else:                                   # Linux and other unices
             macros = dict()
-            libraries = ['rt']
+            libraries = ['rt', 'pthread']

         if host_platform == 'win32':
             multiprocessing_srcs = [ '_multiprocessing/multiprocessing.c',
@@ -1690,6 +1690,7 @@

         if sysconfig.get_config_var('WITH_THREAD'):
             exts.append ( Extension('_multiprocessing', multiprocessing_srcs,
+                                    libraries = libraries,
                                     define_macros=macros.items(),
                                     include_dirs=["Modules/_multiprocessing"]))
         else:
History
Date User Action Args
2019-01-25 10:50:05Barry Davissetrecipients: + Barry Davis, pitrou, benjamin.peterson, hongxu
2019-01-25 10:50:04Barry Davissetmessageid: <1548413404.09.0.724248584674.issue31171@roundup.psfhosted.org>
2019-01-25 10:50:04Barry Davislinkissue31171 messages
2019-01-25 10:50:03Barry Daviscreate