New submission from Timothy Murphy:
My build of the 3.5 head fails in timemodule.c which results in an interpreter
that can run but can't "import time".
Details:
changeset 96851:bb9fc884a838
on Fedora Linux x86_64
Output:
/home/tim/build/cpython/Modules/timemodule.c: In function ‘time_strftime’:
/home/tim/build/cpython/Modules/timemodule.c:656:9: error: unknown type name
‘_Py_BEGIN_SUPPRESS_IPH’
_Py_BEGIN_SUPPRESS_IPH
^
/home/tim/build/cpython/Modules/timemodule.c:656:9: error: ISO C90 forbids
mixed declarations and code [-Werror=declaration-after-statement]
/home/tim/build/cpython/Modules/timemodule.c:658:9: error:
‘_Py_END_SUPPRESS_IPH’ undeclared (first use in this function)
_Py_END_SUPPRESS_IPH
^
/home/tim/build/cpython/Modules/timemodule.c:658:9: note: each undeclared
identifier is reported only once for each function it appears in
/home/tim/build/cpython/Modules/timemodule.c:662:9: error: expected ‘;’ before
‘if’
if (buflen > 0 || i >= 256 * fmtlen) {
^
/home/tim/build/cpython/Modules/timemodule.c:657:9: warning: unused variable
‘buflen’ [-Wunused-variable]
buflen = format_time(outbuf, i, fmt, &buf);
^
/home/tim/build/cpython/Modules/timemodule.c:561:20: warning: unused variable
‘buflen’ [-Wunused-variable]
size_t fmtlen, buflen;
^
/home/tim/build/cpython/Modules/timemodule.c:561:12: warning: variable ‘fmtlen’
set but not used [-Wunused-but-set-variable]
size_t fmtlen, buflen;
^
cc1: some warnings being treated as errors
Failed to build these modules:
time
----------
components: Build, Extension Modules
messages: 246358
nosy: tnmurphy
priority: normal
severity: normal
status: open
title: timemodule build fail - missing definitions for _Py_BEGIN_SUPPRESS_IPH
and _Py_END_SUPPRESS_IPH
type: compile error
versions: Python 3.5
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue24575>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com