New submission from Jeffrey Armstrong:

If threads are disabled, either via --disable-threads or using a 
compiler/standard library that doesn't support threads, the build will fail 
when linking the Python interpreter because the following is undefined:

PyGILState_GetThisThreadState

The error is caused by a change since 3.5.0a1 that uses a call to this function 
in Python/pylifecycle.c:1303 without first checking if the WITH_THREADS macro 
is defined.  If WITH_THREADS is undefined, the function 
PyGILState_GetThisThreadState is not built.

I've attached a simple patch correcting the issue, but it should be trivial to 
add a simple macro check around the call.

----------
components: Interpreter Core
files: pylifecycle-threads-3.5.0a3.patch
keywords: patch
messages: 240154
nosy: Jeffrey.Armstrong
priority: normal
severity: normal
status: open
title: Build fails when threads are disabled during configure step
type: compile error
versions: Python 3.5
Added file: http://bugs.python.org/file38844/pylifecycle-threads-3.5.0a3.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23877>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to