| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…func() A single-phase init function that creates its module using only the last component of a dotted name (as pybind11 does for submodules) got a module whose __name__ was the short name. Set the package context while calling the init function, as the dynamic loader does, so the module gets the full name from the spec. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HoZE3WdRWQshvinfBZ137N
Documentation build overview111 files changed · + 8 added · ± 103 modified + Added
± Modified |
Sorry, something went wrong.
|
Would it be possible to fix the binding generator instead? |
Sorry, something went wrong.
In what way? afaik pybind11 3+ already defaults to multi-phase init, so this issue is mostly with older pybind11 extensions (2.13 and older), or hand-written C extensions. this fix makes this API honor the documented cpython contract for single-phase init extensions. |
Sorry, something went wrong.
|
Ah, I see. I'm looking at this in detail now. This PR works as something to backport (to 3.15.1 at this point, which should be only a small inconvenience for embedders). But before merging, I'd like to settle on a bigger refactoring for 3.16; perhaps we'll find more to backport. Could I ask you to take a look at #157758? |
Sorry, something went wrong.
reviewed your PR - looks like a great refactor! left some comments there, but I don't think there's anything else worth backporting in addition to this PR (and maybe gh-157389). I agree about the backport targeting 3.15.1 and not 3.15.0. |
Sorry, something went wrong.
|
I'll get back to this after the 3.15 release -- fix a few wording nitpicks & merge. |
Sorry, something went wrong.
|
@encukou happy post-3.15.0-release! :) should we get this merged now? what nitpicks did you want to change? |
Sorry, something went wrong.
There was a problem hiding this comment.
should we get this merged now? what nitpicks did you want to change?
Yep. Just docs in the end, sorry for the wait.
Sorry, something went wrong.
|
GH-159316 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot iOS ARM64 Simulator 3.x (tier-3) has failed when building commit 0486228. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/#/builders/1380/builds/8043 Summary of the results of the build (if available): Click to see traceback logsremote: Enumerating objects: 32, done.
remote: Counting objects: 3% (1/32)
remote: Counting objects: 6% (2/32)
remote: Counting objects: 9% (3/32)
remote: Counting objects: 12% (4/32)
remote: Counting objects: 15% (5/32)
remote: Counting objects: 18% (6/32)
remote: Counting objects: 21% (7/32)
remote: Counting objects: 25% (8/32)
remote: Counting objects: 28% (9/32)
remote: Counting objects: 31% (10/32)
remote: Counting objects: 34% (11/32)
remote: Counting objects: 37% (12/32)
remote: Counting objects: 40% (13/32)
remote: Counting objects: 43% (14/32)
remote: Counting objects: 46% (15/32)
remote: Counting objects: 50% (16/32)
remote: Counting objects: 53% (17/32)
remote: Counting objects: 56% (18/32)
remote: Counting objects: 59% (19/32)
remote: Counting objects: 62% (20/32)
remote: Counting objects: 65% (21/32)
remote: Counting objects: 68% (22/32)
remote: Counting objects: 71% (23/32)
remote: Counting objects: 75% (24/32)
remote: Counting objects: 78% (25/32)
remote: Counting objects: 81% (26/32)
remote: Counting objects: 84% (27/32)
remote: Counting objects: 87% (28/32)
remote: Counting objects: 90% (29/32)
remote: Counting objects: 93% (30/32)
remote: Counting objects: 96% (31/32)
remote: Counting objects: 100% (32/32)
remote: Counting objects: 100% (32/32), done.
remote: Compressing objects: 6% (1/15)
remote: Compressing objects: 13% (2/15)
remote: Compressing objects: 20% (3/15)
remote: Compressing objects: 26% (4/15)
remote: Compressing objects: 33% (5/15)
remote: Compressing objects: 40% (6/15)
remote: Compressing objects: 46% (7/15)
remote: Compressing objects: 53% (8/15)
remote: Compressing objects: 60% (9/15)
remote: Compressing objects: 66% (10/15)
remote: Compressing objects: 73% (11/15)
remote: Compressing objects: 80% (12/15)
remote: Compressing objects: 86% (13/15)
remote: Compressing objects: 93% (14/15)
remote: Compressing objects: 100% (15/15)
remote: Compressing objects: 100% (15/15), done.
remote: Total 17 (delta 15), reused 3 (delta 2), pack-reused 0 (from 0)
From https://github.com/python/cpython
* branch main -> FETCH_HEAD
Note: switching to '04862280a2ccbf9be9883eb4bce886f6b1bc4ca0'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 04862280a2c gh-157384: Set package context in PyImport_CreateModuleFromInitfunc() (GH-157387)
Switched to and reset branch 'main'
configure: WARNING: no system libmpdec found; falling back to pure-Python version for the decimal module
configure: WARNING: pkg-config is missing. Some dependencies may not be detected correctly.
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:282:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
282 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:289:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
289 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:435:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
435 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:442:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
442 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:548:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
548 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:557:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
557 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:579:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
579 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:590:9: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
590 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:687:11: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
687 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:732:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
732 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:758:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
758 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:769:9: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
769 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:782:11: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
782 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:927:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
927 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:940:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
940 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:957:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
957 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:964:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
964 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:1199:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
1199 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:1219:11: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
1219 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
19 warnings generated.
configure: WARNING: pkg-config is missing. Some dependencies may not be detected correctly.
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:282:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
282 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:289:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
289 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:435:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
435 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:442:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
442 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:548:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
548 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:557:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
557 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:579:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
579 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:590:9: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
590 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:687:11: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
687 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:732:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
732 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:758:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
758 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:769:9: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
769 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:782:11: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
782 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:927:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
927 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:940:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
940 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:957:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
957 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:964:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
964 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:1199:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
1199 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:1219:11: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
1219 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
19 warnings generated.
ld: warning: ignoring duplicate libraries: '-lm'
ld: warning: ignoring duplicate libraries: '-lm'
configure: WARNING: pkg-config is missing. Some dependencies may not be detected correctly.
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:282:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
282 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:289:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
289 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:435:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
435 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:442:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
442 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:548:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
548 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:557:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
557 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:579:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
579 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:590:9: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
590 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:687:11: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
687 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:732:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
732 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:758:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
758 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:769:9: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
769 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:782:11: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
782 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:927:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
927 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:940:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
940 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:957:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
957 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:964:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
964 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:1199:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
1199 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:1219:11: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
1219 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
19 warnings generated.
ld: warning: ignoring duplicate libraries: '-lm'
ld: warning: ignoring duplicate libraries: '-lm'
configure: WARNING: x86_64-apple-ios-simulator/clang is not supported
configure: WARNING: pkg-config is missing. Some dependencies may not be detected correctly.
configure: WARNING:
Platform "x86_64-apple-ios-simulator" with compiler "clang" is not supported by the
CPython core team, see https://peps.python.org/pep-0011/ for more information.
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:282:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
282 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:289:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
289 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:435:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
435 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:442:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
442 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:548:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
548 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:557:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
557 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:579:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
579 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:590:9: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
590 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:687:11: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
687 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:732:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
732 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:758:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
758 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:769:9: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
769 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:782:11: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
782 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:927:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
927 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:940:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
940 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:957:5: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
957 | CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:115:5: note: expanded from macro 'CHECK_NMSTRT_CASES'
115 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:964:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
964 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:1199:7: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
1199 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
In file included from ../../Modules/expat/xmltok.c:326:
../../Modules/expat/xmltok_impl.c:1219:11: warning: fallthrough annotation in unreachable code [-Wunreachable-code-fallthrough]
1219 | CHECK_NAME_CASES(enc, ptr, end, nextTokPtr)
| ^
../../Modules/expat/xmltok_impl.c:86:5: note: expanded from macro 'CHECK_NAME_CASES'
86 | EXPAT_FALLTHROUGH; \
| ^
../../Modules/expat/fallthrough.h:47:33: note: expanded from macro 'EXPAT_FALLTHROUGH'
47 | # define EXPAT_FALLTHROUGH __attribute__((fallthrough))
| ^
19 warnings generated.
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython3.16.a(brc.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython3.16.a(dynamic_annotations.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython3.16.a(gc_free_threading.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython3.16.a(index_pool.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython3.16.a(jit.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython3.16.a(jit_publish.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython3.16.a(optimizer_analysis.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython3.16.a(optimizer_symbols.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython3.16.a(pystats.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython3.16.a(stackrefs.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython3.16.a(uniqueid.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython3.16.a(perf_jit_trampoline.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libpython3.16.a(jit_unwind.o) has no symbols
ld: warning: ignoring duplicate libraries: '-lm'
ld: warning: ignoring duplicate libraries: '-lm'
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:4F9AFDE7-A49A-46AD-B161-FCA22E48EA55, OS:18.3.1, name:iPhone SE (3rd generation) }
{ platform:iOS Simulator, id:4F9AFDE7-A49A-46AD-B161-FCA22E48EA55, OS:18.3.1, name:iPhone SE (3rd generation) } |
Sorry, something went wrong.
…tfunc() (GH-157387) (GH-159316) A single-phase init function that creates its module using only the last component of a dotted name (as pybind11 does for submodules) got a module whose __name__ was the short name. Set the package context while calling the init function, as the dynamic loader does, so the module gets the full name from the spec. (cherry picked from commit 0486228) Co-authored-by: Itamar Oren <itamarost@gmail.com>
…nitfunc() Summary: Backport of the upstream fix (python/cpython#157387, 3.15 backport python/cpython#159316), folded into the `05-native-python-api` patch that carries our 3.14 backport of `PyImport_CreateModuleFromInitfunc`. A single-phase init function that creates its module using only the last component of a dotted name (as pybind11 2.13 does for `PYBIND11_MODULE` extensions inside a package) got a module whose `__name__` was the short name, so `def_submodule` registered submodules under the wrong `sys.modules` keys and `from pkg.ext.sub import x` failed with "`pkg.ext` is not a package". 571 failures in V66 of the py3.14 canary (D82323768) carry this signature. Reviewed By: alexmalyshev Differential Revision: D119701167 fbshipit-source-id: dc50c5ece93752c069548588545eee6526181cad
| Back | FazBrowse Home | New Git URL |
A single-phase init function that creates its module using only the last component of a dotted name (as pybind11 does for submodules) got a module whose name was the short name. Set the package context while calling the init function, as the dynamic loader does, so the module gets the full name from the spec.
AI assisted with Claude Fable 5.1