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 floppymaster
Recipients floppymaster
Date 2017-10-12.03:33:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507779209.22.0.213398074469.issue31769@psf.upfronthosting.co.za>
In-reply-to
Content
When testing for ptheads support in the compiler, configure includes the CFLAGS value from the environment.

If CFLAGS contains -pthread, or an option which implies -pthread (like -fopenmp), this will cause configure to not include -pthread in the CC variable, and -pthread will not be passed to the linker.

This ultimately leads to a link failure when building with glibc/gcc.

gcc   -Xlinker -export-dynamic -o python Programs/python.o libpython3.7m.a -ldl  -lutil   -lm  
libpython3.7m.a(thread.o): In function `PyThread_start_new_thread':
/home/floppym/src/cpython/Python/thread_pthread.h:191: undefined reference to `pthread_attr_setstacksize'
History
Date User Action Args
2017-10-12 03:33:29floppymastersetrecipients: + floppymaster
2017-10-12 03:33:29floppymastersetmessageid: <1507779209.22.0.213398074469.issue31769@psf.upfronthosting.co.za>
2017-10-12 03:33:29floppymasterlinkissue31769 messages
2017-10-12 03:33:28floppymastercreate