[New-bugs-announce] [issue28478] Built-in module 'Time' does not enable functions if -Wno-error specified in the build environment

toast12 report at bugs.python.org
Wed Oct 19 17:02:02 EDT 2016


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 "<stdin>", line 1, in <module>   File "XXX/lib64/python3.5/xmlrpc/client.py", line 267, in <module>     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 <report at bugs.python.org>
<http://bugs.python.org/issue28478>
_______________________________________


More information about the New-bugs-announce mailing list