[New-bugs-announce] [issue23877] Build fails when threads are disabled during configure step
Jeffrey Armstrong
report at bugs.python.org
Mon Apr 6 14:48:51 CEST 2015
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 <report at bugs.python.org>
<http://bugs.python.org/issue23877>
_______________________________________
More information about the New-bugs-announce
mailing list