Title: 3.15.0a1 doesn't compile with `--disable-gil --with-assertions`: `Objects/typeobject.c:123:13: error: implicit declaration of function ‘types_world_is_stopped’ [-Wimplicit-function-declaration]` · Issue #140126 · python/cpython · GitHub
Open Graph Title: 3.15.0a1 doesn't compile with `--disable-gil --with-assertions`: `Objects/typeobject.c:123:13: error: implicit declaration of function ‘types_world_is_stopped’ [-Wimplicit-function-declaration]` · Issue #140126 · python/cpython
X Title: 3.15.0a1 doesn't compile with `--disable-gil --with-assertions`: `Objects/typeobject.c:123:13: error: implicit declaration of function ‘types_world_is_stopped’ [-Wimplicit-function-declaration]` · Issue #140126 · python/cpython
Description: Bug report Bug description: When configured via: ./configure --disable-gil --with-assertions Build fails: gcc -c -fno-strict-overflow -Wsign-compare -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wst...
Open Graph Description: Bug report Bug description: When configured via: ./configure --disable-gil --with-assertions Build fails: gcc -c -fno-strict-overflow -Wsign-compare -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parame...
X Description: Bug report Bug description: When configured via: ./configure --disable-gil --with-assertions Build fails: gcc -c -fno-strict-overflow -Wsign-compare -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parame...
Opengraph URL: https://github.com/python/cpython/issues/140126
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"3.15.0a1 doesn't compile with `--disable-gil --with-assertions`: `Objects/typeobject.c:123:13: error: implicit declaration of function ‘types_world_is_stopped’ [-Wimplicit-function-declaration]`","articleBody":"# Bug report\n\n### Bug description:\n\nWhen configured via:\n\n```\n./configure --disable-gil --with-assertions\n```\n\nBuild fails:\n\n```\ngcc -c -fno-strict-overflow -Wsign-compare -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 Objects/typeobject.o Objects/typeobject.c\nIn file included from ./Include/internal/pycore_backoff.h:12,\n from ./Include/internal/pycore_code.h:11,\n from ./Include/internal/pycore_call.h:11,\n from Objects/typeobject.c:5:\nObjects/typeobject.c: In function ‘types_stop_world’:\nObjects/typeobject.c:123:13: error: implicit declaration of function ‘types_world_is_stopped’ [-Wimplicit-function-declaration]\n 123 | assert(!types_world_is_stopped());\n | ^~~~~~~~~~~~~~~~~~~~~~\nmake: *** [Makefile:3309: Objects/typeobject.o] Error 1\n```\n\nReproduced with 3.15.0a1 and f262297d525e87906c5e4ab28e80284189641c9e.\n\nThe function is incorrectly guarded via `Py_DEBUG` when it's used via `assert()` which uses `!NDEBUG` instead.\n\nIntroduced in #133177, CC @nascheme.\n\n### CPython versions tested on:\n\n3.15, CPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-140133\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/mgorny","@type":"Person","name":"mgorny"},"datePublished":"2025-10-14T17:14:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/140126/cpython/issues/140126"}
| 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:e7ef8e4c-9c95-490b-182f-25763d5a185e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E1C2:382280:47FF06D:64DFE5A:6A54F0DE |
| html-safe-nonce | 9d7dd55f4fe2a4edc1394e66e9861e329c8e2d7a3289844297c5eb4db9927d06 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUMyOjM4MjI4MDo0N0ZGMDZEOjY0REZFNUE6NkE1NEYwREUiLCJ2aXNpdG9yX2lkIjoiNjgzNTQzMDY3MzcyNzQxODU5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 636c05afa3ef01b5f726f571194b33f0ab01add4b927ac9df51adf6a61c130ff |
| hovercard-subject-tag | issue:3514822186 |
| 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/140126/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0fa7600ea93cb230f11845f6a78e6f33df05bdecaf24a47ebc322f64121055bc/python/cpython/issues/140126 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0fa7600ea93cb230f11845f6a78e6f33df05bdecaf24a47ebc322f64121055bc/python/cpython/issues/140126 |
| og:image:alt | Bug report Bug description: When configured via: ./configure --disable-gil --with-assertions Build fails: gcc -c -fno-strict-overflow -Wsign-compare -g -O3 -Wall -std=c11 -Wextra -Wno-unused-parame... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mgorny |
| hostname | github.com |
| expected-hostname | github.com |
| None | eae2aab99907699a22d2c8449aa683ca74454fca87211b98f7c7b722086b2839 |
| 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 | dd26d3896747463b6bd56edd5e290edb595c3cbc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width