New submission from toast12:
Our build environment uses -Wno-error. However, this causes problems enabling
all the functions in built-in module 'time':
configure:11130: checking for strftime
-
-
cc1: warnings being treated as errors
conftest.c:236: error: conflicting types for built-in function 'strftime'
Because strftime was not enabled, we had problems running xmlrpc.client:
>>> from xmlrpc import client
Traceback (most recent call last): File "", line 1, inFile
"XXX/lib64/python3.5/xmlrpc/client.py", line 267, in if
_day0.strftime('%Y') == '0001': # Mac OS X AttributeError: module 'time'
has no attribute 'strftime' >>>
As a workaround, I am passing -fno-builtin now. But I believe this should be
handled on the python end
--
components: Extension Modules
messages: 278993
nosy: toast12
priority: normal
severity: normal
status: open
title: Built-in module 'Time' does not enable functions if -Wno-error specified
in the build environment
versions: Python 3.5
___
Python tracker
<http://bugs.python.org/issue28478>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com