[issue36478] backport of pickle fixes to Python 3.5.7 uses C99 for loops

2020-03-16 Thread Anthony Sottile
Change by Anthony Sottile : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue36478] backport of pickle fixes to Python 3.5.7 uses C99 for loops

2019-04-08 Thread Alexander Mohr
Alexander Mohr added the comment: I hit this as well in debian:jessie, and if I enabled -std=c99 I hit this issue: https://github.com/dvarrazzo/py-setproctitle/issues/62 -- nosy: +thehesiod ___ Python tracker _

[issue36478] backport of pickle fixes to Python 3.5.7 uses C99 for loops

2019-04-08 Thread Anthony Sottile
Anthony Sottile added the comment: It's a rather oldish gcc in this case. (4.8.4 + whatever ubuntu patches). Here's a full (successful) build log (including the combinations of flags) after patching: https://launchpadlibrarian.net/416985438/buildlog_ubuntu-trusty-amd64.python3.5_3.5.7-1+trus

[issue36478] backport of pickle fixes to Python 3.5.7 uses C99 for loops

2019-04-08 Thread STINNER Victor
STINNER Victor added the comment: > Which compiler do you use to build deadsnakes? Sorry, which compiler *flags*. -- ___ Python tracker ___ __

[issue36478] backport of pickle fixes to Python 3.5.7 uses C99 for loops

2019-04-08 Thread STINNER Victor
STINNER Victor added the comment: > ../Modules/_pickle.c:677:5: error: 'for' loop initial declarations are only > allowed in C99 mode Why do you get an error? Which compiler do you use to build deadsnakes? -- ___ Python tracker

[issue36478] backport of pickle fixes to Python 3.5.7 uses C99 for loops

2019-03-29 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +larry, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36478] backport of pickle fixes to Python 3.5.7 uses C99 for loops

2019-03-29 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch pull_requests: +12556 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue36478] backport of pickle fixes to Python 3.5.7 uses C99 for loops

2019-03-29 Thread Anthony Sottile
New submission from Anthony Sottile : While building python 3.5.7 for https://github.com/deadsnakes ../Modules/_pickle.c: In function 'PyMemoTable_Copy': ../Modules/_pickle.c:677:5: error: 'for' loop initial declarations are only allowed in C99 mode for (size_t i = 0; i < self->mt_allocat