You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2016-07-08.15:23:05.957>created_at=<Date2014-10-13.18:34:55.777>labels= ['build']
title='Bogus usage of floatclock in timemodule'updated_at=<Date2016-07-08.15:55:55.755>user='https://bugs.python.org/LinkMauve'
I’m building against the Newlib libc, for the Wii, and it seems the issue leading to all of those functions not working is:
(.text.clock+0x18): undefined reference to `_times_r'
Threading is disabled, and reentrant functions as well, which could explain that.
But still, when pyconfig.h doesn’t define any HAVE_ macro to get the system time, I would expect py_process_time() to return None or something instead of failing to build.
Activity
LinkMauve commentedon Oct 13, 2014
In Modules/timemodule.c, py_process_time() still uses floatclock() even when HAVE_CLOCK isn’t defined.
vstinner commentedon Oct 14, 2014
What is your platform?
time.process_time() supports many functions:
On POSIX, clock() is always tried as a fallback. Does your platform support at least one of these functions?
vstinner commentedon Oct 14, 2014
See also the PEP-418:
http://legacy.python.org/dev/peps/pep-0418/#time-process-time
LinkMauve commentedon Oct 14, 2014
I’m building against the Newlib libc, for the Wii, and it seems the issue leading to all of those functions not working is:
(.text.clock+0x18): undefined reference to `_times_r'
Threading is disabled, and reentrant functions as well, which could explain that.
But still, when pyconfig.h doesn’t define any HAVE_ macro to get the system time, I would expect py_process_time() to return None or something instead of failing to build.
vstinner commentedon Oct 14, 2014
Please attach your pyconfig.h file.
vstinner commentedon Jul 8, 2016
Sorry but the Wii console is not supported. You have to maintain your fork/patch.
Python 3 don't support platforms without clock().
python-dev commentedon Jul 8, 2016
New changeset 1452520dfe7b by Victor Stinner in branch 'default':
Issue bpo-22624: Python 3 requires clock() to build
https://hg.python.org/cpython/rev/1452520dfe7b