Message304200
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' |
|
Date |
User |
Action |
Args |
2017-10-12 03:33:29 | floppymaster | set | recipients:
+ floppymaster |
2017-10-12 03:33:29 | floppymaster | set | messageid: <1507779209.22.0.213398074469.issue31769@psf.upfronthosting.co.za> |
2017-10-12 03:33:29 | floppymaster | link | issue31769 messages |
2017-10-12 03:33:28 | floppymaster | create | |
|