Title: pystats: #116206 (Incremental GC implementation) broke pystats build · Issue #117122 · python/cpython · GitHub
Open Graph Title: pystats: #116206 (Incremental GC implementation) broke pystats build · Issue #117122 · python/cpython
X Title: pystats: #116206 (Incremental GC implementation) broke pystats build · Issue #117122 · python/cpython
Description: Bug report Bug description: Since #116206 was merged, pystats builds are broken: gcc -c -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes ...
Open Graph Description: Bug report Bug description: Since #116206 was merged, pystats builds are broken: gcc -c -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing...
X Description: Bug report Bug description: Since #116206 was merged, pystats builds are broken: gcc -c -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing...
Opengraph URL: https://github.com/python/cpython/issues/117122
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pystats: #116206 (Incremental GC implementation) broke pystats build","articleBody":"# Bug report\n\n### Bug description:\n\nSince #116206 was merged, pystats builds are broken:\n\n```\ngcc -c -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE -o Python/gc.o Python/gc.c\nIn file included from ./Include/internal/pycore_interp.h:16,\n from ./Include/internal/pycore_ceval.h:13,\n from Python/gc.c:6:\nPython/gc.c: In function ‘gc_collect_young’:\nPython/gc.c:1287:24: error: ‘GCStats’ {aka ‘struct _gc_stats’} has no member named ‘objects_queued’; did you mean ‘objects_collected’?\n 1287 | GC_STAT_ADD(0, objects_queued, count);\n | ^~~~~~~~~~~~~~\n./Include/internal/pycore_code.h:307:82: note: in definition of macro ‘GC_STAT_ADD’\n 307 | #define GC_STAT_ADD(gen, name, n) do { if (_Py_stats) _Py_stats-\u003egc_stats[(gen)].name += (n); } while (0)\n | ^~~~\nPython/gc.c: In function ‘completed_cycle’:\nPython/gc.c:1387:16: warning: unused variable ‘not_visited’ [-Wunused-variable]\n 1387 | PyGC_Head *not_visited = \u0026gcstate-\u003eold[gcstate-\u003evisited_space^1].head;\n | ^~~~~~~~~~~\nPython/gc.c: In function ‘gc_collect_increment’:\nPython/gc.c:1424:20: error: ‘GCStats’ {aka ‘struct _gc_stats’} has no member named ‘objects_queued’; did you mean ‘objects_collected’?\n 1424 | GC_STAT_ADD(1, objects_queued, region_size);\n | ^~~~~~~~~~~~~~\n./Include/internal/pycore_code.h:307:82: note: in definition of macro ‘GC_STAT_ADD’\n 307 | #define GC_STAT_ADD(gen, name, n) do { if (_Py_stats) _Py_stats-\u003egc_stats[(gen)].name += (n); } while (0)\n | ^~~~\nPython/gc.c:1424:36: error: ‘region_size’ undeclared (first use in this function)\n 1424 | GC_STAT_ADD(1, objects_queued, region_size);\n | ^~~~~~~~~~~\n./Include/internal/pycore_code.h:307:91: note: in definition of macro ‘GC_STAT_ADD’\n 307 | #define GC_STAT_ADD(gen, name, n) do { if (_Py_stats) _Py_stats-\u003egc_stats[(gen)].name += (n); } while (0)\n | ^\nPython/gc.c:1424:36: note: each undeclared identifier is reported only once for each function it appears in\n 1424 | GC_STAT_ADD(1, objects_queued, region_size);\n | ^~~~~~~~~~~\n./Include/internal/pycore_code.h:307:91: note: in definition of macro ‘GC_STAT_ADD’\n 307 | #define GC_STAT_ADD(gen, name, n) do { if (_Py_stats) _Py_stats-\u003egc_stats[(gen)].name += (n); } while (0)\n | ^\nPython/gc.c: In function ‘_PyGC_Collect’:\nPython/gc.c:1810:9: error: ‘_py_stats’ undeclared (first use in this function); did you mean ‘_Py_stats’?\n 1810 | if (_py_stats) {\n | ^~~~~~~~~\n | _Py_stats\nmake: *** [Makefile:2970: Python/gc.o] Error 1\n```\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-117123\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/mdboom","@type":"Person","name":"mdboom"},"datePublished":"2024-03-21T13:27:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/117122/cpython/issues/117122"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5a5748ba-2662-f841-ba49-554c18581b33 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8382:112B43:290C8:39F18:696A6473 |
| html-safe-nonce | b630044a70d985fbb50e8a46710806eaff1614fd73135351355757383e3e16d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzgyOjExMkI0MzoyOTBDODozOUYxODo2OTZBNjQ3MyIsInZpc2l0b3JfaWQiOiIxNDIwNjU4MDk4MTgxOTIzOTU1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6085275647f40d0d4e17af49b3ac6db6f455bf0a318b4af731d90593017e5fd3 |
| hovercard-subject-tag | issue:2200203273 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/117122/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e28b745e2d1f2a8044a17528e25064ee81e1fdb84f5fabacdd66011e2e97ac97/python/cpython/issues/117122 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e28b745e2d1f2a8044a17528e25064ee81e1fdb84f5fabacdd66011e2e97ac97/python/cpython/issues/117122 |
| og:image:alt | Bug report Bug description: Since #116206 was merged, pystats builds are broken: gcc -c -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mdboom |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b7735a184970dd9333b2cbe036c8f3c0a9108c64aaa93827c5a64fc70993392 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 87cbd411c2982752221b5751d583a515b23bf5fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width