GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-104469 : Convert _testcapi/vectorcall_limited.c to use AC by nahyeon-an · Pull Request #107857 · python/cpython

Conversation

@nahyeon-an

@nahyeon-an nahyeon-an commented Aug 11, 2023 •
edited by bedevere-bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor
  • Issue: Improve the readability and maintainability of test_capi using the AC #104469

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nahyeon-an
Convert _testcapi/vectorcall_limited.c to use AC
e32cb50
@bedevere-bot bedevere-bot added the awaiting review label Aug 11, 2023
@bedevere-bot bedevere-bot mentioned this pull request Aug 11, 2023
Improve the readability and maintainability of test_capi using the AC #104469
Closed
@bedevere-bot

bedevere-bot commented Aug 11, 2023

Copy link
Copy Markdown

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nahyeon-an

nahyeon-an commented Aug 11, 2023

Copy link
Copy Markdown
Contributor Author

@corona10

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@corona10 corona10 self-assigned this Aug 11, 2023
@corona10 corona10 added the skip news label Aug 11, 2023
corona10
corona10 approved these changes Aug 11, 2023
View reviewed changes

@corona10 corona10 left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bedevere-bot bedevere-bot added awaiting merge and removed awaiting review labels Aug 11, 2023
@corona10
corona10 enabled auto-merge (squash) August 11, 2023 07:59
@ambv

ambv commented Aug 11, 2023

Copy link
Copy Markdown
Contributor

Closing and re-opening to retrigger CLA checks. Sorry for the noise.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ambv ambv closed this Aug 11, 2023
auto-merge was automatically disabled August 11, 2023 14:22

Pull request was closed

@ambv ambv reopened this Aug 11, 2023
@ghost

ghost commented Aug 11, 2023 •
edited by ghost
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.
CLA signed

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@corona10
corona10 merged commit 2e27da1 into python:main Aug 12, 2023
@bedevere-bot bedevere-bot removed the awaiting merge label Aug 12, 2023
@bedevere-bot

bedevere-bot commented Aug 12, 2023

Copy link
Copy Markdown

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot wasm32-emscripten node (dynamic linking) 3.x has failed when building commit 2e27da1.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/1056/builds/2776) and take a look at the build logs.
  4. Check if the failure is related to this commit (2e27da1) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/1056/builds/2776

Summary of the results of the build (if available):

Click to see traceback logs
remote: Enumerating objects: 7, done.        
remote: Counting objects:  14% (1/7)        
remote: Counting objects:  28% (2/7)        
remote: Counting objects:  42% (3/7)        
remote: Counting objects:  57% (4/7)        
remote: Counting objects:  71% (5/7)        
remote: Counting objects:  85% (6/7)        
remote: Counting objects: 100% (7/7)        
remote: Counting objects: 100% (7/7), done.        
remote: Compressing objects:  16% (1/6)        
remote: Compressing objects:  33% (2/6)        
remote: Compressing objects:  50% (3/6)        
remote: Compressing objects:  66% (4/6)        
remote: Compressing objects:  83% (5/6)        
remote: Compressing objects: 100% (6/6)        
remote: Compressing objects: 100% (6/6), done.        
remote: Total 7 (delta 1), reused 4 (delta 1), pack-reused 0        
From https://github.com/python/cpython
 * branch                  main       -> FETCH_HEAD
Note: switching to '2e27da18952c6561f48dab706b5911135cedd7cf'.

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 2e27da1895 gh-104469 : Convert _testcapi/vectorcall_limited.c to use AC (gh-107857)
Switched to and reset branch 'main'

configure: ../../configure --prefix $(PWD)/target/host --with-pydebug --without-pydebug --with-emscripten-target=node --enable-wasm-dynamic-linking --disable-wasm-pthreads --build=x86_64-pc-linux-gnu --host=wasm32-unknown-emscripten --with-build-python=../build/python
configure: WARNING: using cross tools not prefixed with host triplet
mcc: error: no input files

make: make -j2 all
In file included from ../../Python/ceval.c:773:
../../Python/generated_cases.c.h:3597:37: warning: code will never be executed [-Wunreachable-code]
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                    ^
../../Python/generated_cases.c.h:3597:33: note: silence by adding parentheses to mark code as explicitly dead
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                ^
                                /* DISABLES CODE */ ( )
../../Python/generated_cases.c.h:3577:37: warning: code will never be executed [-Wunreachable-code]
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                    ^
../../Python/generated_cases.c.h:3577:33: note: silence by adding parentheses to mark code as explicitly dead
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                ^
                                /* DISABLES CODE */ ( )
../../Python/generated_cases.c.h:2254:37: warning: code will never be executed [-Wunreachable-code]
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                    ^
../../Python/generated_cases.c.h:2254:33: note: silence by adding parentheses to mark code as explicitly dead
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                ^
                                /* DISABLES CODE */ ( )
3 warnings generated.
In file included from ../../Python/executor.c:84:
../../Python/executor_cases.c.h:1516:37: warning: code will never be executed [-Wunreachable-code]
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                    ^
../../Python/executor_cases.c.h:1516:33: note: silence by adding parentheses to mark code as explicitly dead
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                ^
                                /* DISABLES CODE */ ( )
1 warning generated.
../../Python/initconfig.c:2252:27: warning: format specifies type 'wint_t' (aka 'int') but the argument has type 'wint_t' (aka 'unsigned int') [-Wformat]
    printf(usage_envvars, (wint_t)DELIM, (wint_t)DELIM, PYTHONHOMEHELP);
           ~~~~~~~~~~~~~  ^~~~~~~~~~~~~
../../Python/initconfig.c:145:18: note: format string is defined here
"PYTHONPATH   : '%lc'-separated list of directories prefixed to the\n"
                 ^~~
                 %c
../../Python/initconfig.c:2252:42: warning: format specifies type 'wint_t' (aka 'int') but the argument has type 'wint_t' (aka 'unsigned int') [-Wformat]
    printf(usage_envvars, (wint_t)DELIM, (wint_t)DELIM, PYTHONHOMEHELP);
           ~~~~~~~~~~~~~                 ^~~~~~~~~~~~~
../../Python/initconfig.c:147:58: note: format string is defined here
"PYTHONHOME   : alternate <prefix> directory (or <prefix>%lc<exec_prefix>).\n"
                                                         ^~~
                                                         %c
2 warnings generated.
../../Python/optimizer.c:382:9: warning: variable 'reserved' set but not used [-Wunused-but-set-variable]
    int reserved = 0;
        ^
1 warning generated.
../../Modules/expat/xmlparse.c:3116:9: warning: code will never be executed [-Wunreachable-code]
        parser->m_characterDataHandler(parser->m_handlerArg, parser->m_dataBuf,
        ^~~~~~
../../Modules/expat/xmlparse.c:3115:16: note: silence by adding parentheses to mark code as explicitly dead
      else if (0 && parser->m_characterDataHandler)
               ^
               /* DISABLES CODE */ ( )
../../Modules/expat/xmlparse.c:4059:9: warning: code will never be executed [-Wunreachable-code]
        parser->m_characterDataHandler(parser->m_handlerArg, parser->m_dataBuf,
        ^~~~~~
../../Modules/expat/xmlparse.c:4058:16: note: silence by adding parentheses to mark code as explicitly dead
      else if (0 && parser->m_characterDataHandler)
               ^
               /* DISABLES CODE */ ( )
../../Modules/expat/xmlparse.c:7703:11: warning: format specifies type 'int' but the argument has type 'ptrdiff_t' (aka 'long') [-Wformat]
          bytesMore, (account == XML_ACCOUNT_DIRECT) ? "DIR" : "EXP",
          ^~~~~~~~~
3 warnings generated.
../../Modules/socketmodule.c:4081:33: warning: comparison of integers of different signs: 'unsigned long' and 'long' [-Wsign-compare]
         cmsgh != NULL; cmsgh = CMSG_NXTHDR(&msg, cmsgh)) {
                                ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/buildbot/.emscripten_cache/sysroot/include/sys/socket.h:356:44: note: expanded from macro 'CMSG_NXTHDR'
        __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../Modules/socketmodule.c:4134:33: warning: comparison of integers of different signs: 'unsigned long' and 'long' [-Wsign-compare]
         cmsgh != NULL; cmsgh = CMSG_NXTHDR(&msg, cmsgh)) {
                                ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/buildbot/.emscripten_cache/sysroot/include/sys/socket.h:356:44: note: expanded from macro 'CMSG_NXTHDR'
        __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../Modules/socketmodule.c:4758:54: warning: comparison of integers of different signs: 'unsigned long' and 'long' [-Wsign-compare]
            cmsgh = (i == 0) ? CMSG_FIRSTHDR(&msg) : CMSG_NXTHDR(&msg, cmsgh);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/buildbot/.emscripten_cache/sysroot/include/sys/socket.h:356:44: note: expanded from macro 'CMSG_NXTHDR'
        __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
../../Modules/_sqlite/connection.c:2171:19: warning: result of comparison of constant 9223372036854775807 with expression of type 'Py_ssize_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare]
    if (data->len > 9223372036854775807) {  // (1 << 63) - 1
        ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
1 warning generated.
In file included from ../../Modules/_testcapi/vectorcall_limited.c:3:
In file included from ../../Modules/_testcapi/clinic/vectorcall_limited.c.h:6:
../../Include/internal/pycore_gc.h:48:10: error: call to undeclared function 'PyObject_IS_GC'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    if (!PyObject_IS_GC(obj)) {
         ^
In file included from ../../Modules/_testcapi/vectorcall_limited.c:3:
In file included from ../../Modules/_testcapi/clinic/vectorcall_limited.c.h:7:
In file included from ../../Include/internal/pycore_runtime.h:14:
In file included from ../../Include/internal/pycore_floatobject.h:12:
../../Include/internal/pycore_unicodeobject.h:323:5: error: unknown type name '_Py_Identifier'
    _Py_Identifier *right       /* Right identifier */
    ^
../../Include/internal/pycore_unicodeobject.h:361:41: error: unknown type name '_Py_Identifier'
PyAPI_FUNC(PyObject*) _PyUnicode_FromId(_Py_Identifier*);
                                        ^
../../Include/internal/pycore_unicodeobject.h:379:8: error: unknown type name 'PyStatus'
xtern PyStatus _PyUnicode_InitGlobalObjects(PyInterpreterState *);
       ^
../../Include/internal/pycore_unicodeobject.h:380:8: error: unknown type name 'PyStatus'
xtern PyStatus _PyUnicode_InitTypes(PyInterpreterState *);
       ^
In file included from ../../Modules/_testcapi/vectorcall_limited.c:3:
In file included from ../../Modules/_testcapi/clinic/vectorcall_limited.c.h:7:
In file included from ../../Include/internal/pycore_runtime.h:14:
../../Include/internal/pycore_floatobject.h:17:8: error: unknown type name 'PyStatus'
xtern PyStatus _PyFloat_InitTypes(PyInterpreterState *);
       ^
../../Include/internal/pycore_floatobject.h:51:5: error: unknown type name 'PyFloatObject'
    PyFloatObject *free_list;
    ^
In file included from ../../Modules/_testcapi/vectorcall_limited.c:3:
In file included from ../../Modules/_testcapi/clinic/vectorcall_limited.c.h:7:
In file included from ../../Include/internal/pycore_runtime.h:16:
In file included from ../../Include/internal/pycore_global_objects.h:13:
../../Include/internal/pycore_global_strings.h:31:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_dictcomp, "<dictcomp>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:32:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_genexpr, "<genexpr>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:33:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_lambda, "<lambda>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:34:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_listcomp, "<listcomp>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:35:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_module, "<module>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:36:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_null, "<NULL>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:37:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_setcomp, "<setcomp>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:38:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_string, "<string>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:39:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_unknown, "<unknown>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:40:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(close_br, "}")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:41:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(dbl_close_br, "}}")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:42:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(dbl_open_br, "{{")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
mcc: error: 'ccache /opt/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=22 -Werror=implicit-function-declaration -I/opt/buildbot/.emscripten_cache/sysroot/include/SDL --sysroot=/opt/buildbot/.emscripten_cache/sysroot -Xclang -iwithsysroot/include/compat -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g3 -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I../../Include/internal -IObjects -IInclude -IPython -I. -I../../Include -fPIC -DPy_BUILD_CORE_BUILTIN -c ../../Modules/_testcapi/vectorcall_limited.c -o Modules/_testcapi/vectorcall_limited.o' failed (returned 1)
make: *** [Makefile:3039: Modules/_testcapi/vectorcall_limited.o] Error 1
make: *** Waiting for unfinished jobs....
mmake: error: 'make -j2 all' failed (returned 2)

find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
make: [Makefile:2771: clean-retain-profile] Error 1 (ignored)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-bot

bedevere-bot commented Aug 12, 2023

Copy link
Copy Markdown

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot wasm32-wasi 3.x has failed when building commit 2e27da1.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/1046/builds/2731) and take a look at the build logs.
  4. Check if the failure is related to this commit (2e27da1) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/1046/builds/2731

Summary of the results of the build (if available):

Click to see traceback logs
remote: Enumerating objects: 7, done.        
remote: Counting objects:  14% (1/7)        
remote: Counting objects:  28% (2/7)        
remote: Counting objects:  42% (3/7)        
remote: Counting objects:  57% (4/7)        
remote: Counting objects:  71% (5/7)        
remote: Counting objects:  85% (6/7)        
remote: Counting objects: 100% (7/7)        
remote: Counting objects: 100% (7/7), done.        
remote: Compressing objects:  16% (1/6)        
remote: Compressing objects:  33% (2/6)        
remote: Compressing objects:  50% (3/6)        
remote: Compressing objects:  66% (4/6)        
remote: Compressing objects:  83% (5/6)        
remote: Compressing objects: 100% (6/6)        
remote: Compressing objects: 100% (6/6), done.        
remote: Total 7 (delta 1), reused 5 (delta 1), pack-reused 0        
From https://github.com/python/cpython
 * branch                  main       -> FETCH_HEAD
Note: switching to '2e27da18952c6561f48dab706b5911135cedd7cf'.

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 2e27da1895 gh-104469 : Convert _testcapi/vectorcall_limited.c to use AC (gh-107857)
Switched to and reset branch 'main'

configure: WARNING: using cross tools not prefixed with host triplet

In file included from ../../Python/ceval.c:773:
../../Python/generated_cases.c.h:3597:37: warning: code will never be executed [-Wunreachable-code]
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                    ^
../../Python/generated_cases.c.h:3597:33: note: silence by adding parentheses to mark code as explicitly dead
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                ^
                                /* DISABLES CODE */ ( )
../../Python/generated_cases.c.h:3577:37: warning: code will never be executed [-Wunreachable-code]
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                    ^
../../Python/generated_cases.c.h:3577:33: note: silence by adding parentheses to mark code as explicitly dead
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                ^
                                /* DISABLES CODE */ ( )
../../Python/generated_cases.c.h:2254:37: warning: code will never be executed [-Wunreachable-code]
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                    ^
../../Python/generated_cases.c.h:2254:33: note: silence by adding parentheses to mark code as explicitly dead
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                ^
                                /* DISABLES CODE */ ( )
3 warnings generated.
In file included from ../../Python/executor.c:84:
../../Python/executor_cases.c.h:1516:37: warning: code will never be executed [-Wunreachable-code]
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                    ^
../../Python/executor_cases.c.h:1516:33: note: silence by adding parentheses to mark code as explicitly dead
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                ^
                                /* DISABLES CODE */ ( )
1 warning generated.
../../Modules/expat/xmlparse.c:3116:9: warning: code will never be executed [-Wunreachable-code]
        parser->m_characterDataHandler(parser->m_handlerArg, parser->m_dataBuf,
        ^~~~~~
../../Modules/expat/xmlparse.c:3115:16: note: silence by adding parentheses to mark code as explicitly dead
      else if (0 && parser->m_characterDataHandler)
               ^
               /* DISABLES CODE */ ( )
../../Modules/expat/xmlparse.c:4059:9: warning: code will never be executed [-Wunreachable-code]
        parser->m_characterDataHandler(parser->m_handlerArg, parser->m_dataBuf,
        ^~~~~~
../../Modules/expat/xmlparse.c:4058:16: note: silence by adding parentheses to mark code as explicitly dead
      else if (0 && parser->m_characterDataHandler)
               ^
               /* DISABLES CODE */ ( )
../../Modules/expat/xmlparse.c:7703:11: warning: format specifies type 'int' but the argument has type 'ptrdiff_t' (aka 'long') [-Wformat]
          bytesMore, (account == XML_ACCOUNT_DIRECT) ? "DIR" : "EXP",
          ^~~~~~~~~
3 warnings generated.
../../Modules/posixmodule.c:7519:13: warning: unused function 'warn_about_fork_with_threads' [-Wunused-function]
static void warn_about_fork_with_threads(const char* name) {
            ^
1 warning generated.
In file included from ../../Modules/_testcapi/vectorcall_limited.c:3:
In file included from ../../Modules/_testcapi/clinic/vectorcall_limited.c.h:6:
../../Include/internal/pycore_gc.h:48:10: error: implicit declaration of function 'PyObject_IS_GC' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if (!PyObject_IS_GC(obj)) {
         ^
In file included from ../../Modules/_testcapi/vectorcall_limited.c:3:
In file included from ../../Modules/_testcapi/clinic/vectorcall_limited.c.h:7:
In file included from ../../Include/internal/pycore_runtime.h:13:
In file included from ../../Include/internal/pycore_ceval_state.h:13:
../../Include/internal/pycore_gil.h:37:5: error: unknown type name 'pthread_cond_t'
    PyCOND_T cond;
    ^
../../Include/internal/pycore_condvar.h:28:18: note: expanded from macro 'PyCOND_T'
#define PyCOND_T pthread_cond_t
                 ^
In file included from ../../Modules/_testcapi/vectorcall_limited.c:3:
In file included from ../../Modules/_testcapi/clinic/vectorcall_limited.c.h:7:
In file included from ../../Include/internal/pycore_runtime.h:13:
In file included from ../../Include/internal/pycore_ceval_state.h:13:
../../Include/internal/pycore_gil.h:38:5: error: unknown type name 'pthread_mutex_t'
    PyMUTEX_T mutex;
    ^
../../Include/internal/pycore_condvar.h:27:19: note: expanded from macro 'PyMUTEX_T'
#define PyMUTEX_T pthread_mutex_t
                  ^
In file included from ../../Modules/_testcapi/vectorcall_limited.c:3:
In file included from ../../Modules/_testcapi/clinic/vectorcall_limited.c.h:7:
In file included from ../../Include/internal/pycore_runtime.h:13:
In file included from ../../Include/internal/pycore_ceval_state.h:13:
../../Include/internal/pycore_gil.h:42:5: error: unknown type name 'pthread_cond_t'
    PyCOND_T switch_cond;
    ^
../../Include/internal/pycore_condvar.h:28:18: note: expanded from macro 'PyCOND_T'
#define PyCOND_T pthread_cond_t
                 ^
In file included from ../../Modules/_testcapi/vectorcall_limited.c:3:
In file included from ../../Modules/_testcapi/clinic/vectorcall_limited.c.h:7:
In file included from ../../Include/internal/pycore_runtime.h:13:
In file included from ../../Include/internal/pycore_ceval_state.h:13:
../../Include/internal/pycore_gil.h:43:5: error: unknown type name 'pthread_mutex_t'
    PyMUTEX_T switch_mutex;
    ^
../../Include/internal/pycore_condvar.h:27:19: note: expanded from macro 'PyMUTEX_T'
#define PyMUTEX_T pthread_mutex_t
                  ^
In file included from ../../Modules/_testcapi/vectorcall_limited.c:3:
In file included from ../../Modules/_testcapi/clinic/vectorcall_limited.c.h:7:
In file included from ../../Include/internal/pycore_runtime.h:14:
In file included from ../../Include/internal/pycore_floatobject.h:12:
../../Include/internal/pycore_unicodeobject.h:323:5: error: unknown type name '_Py_Identifier'
    _Py_Identifier *right       /* Right identifier */
    ^
../../Include/internal/pycore_unicodeobject.h:361:41: error: unknown type name '_Py_Identifier'
PyAPI_FUNC(PyObject*) _PyUnicode_FromId(_Py_Identifier*);
                                        ^
../../Include/internal/pycore_unicodeobject.h:379:8: error: unknown type name 'PyStatus'
xtern PyStatus _PyUnicode_InitGlobalObjects(PyInterpreterState *);
       ^
../../Include/internal/pycore_unicodeobject.h:380:8: error: unknown type name 'PyStatus'
xtern PyStatus _PyUnicode_InitTypes(PyInterpreterState *);
       ^
In file included from ../../Modules/_testcapi/vectorcall_limited.c:3:
In file included from ../../Modules/_testcapi/clinic/vectorcall_limited.c.h:7:
In file included from ../../Include/internal/pycore_runtime.h:14:
../../Include/internal/pycore_floatobject.h:17:8: error: unknown type name 'PyStatus'
xtern PyStatus _PyFloat_InitTypes(PyInterpreterState *);
       ^
../../Include/internal/pycore_floatobject.h:51:5: error: unknown type name 'PyFloatObject'
    PyFloatObject *free_list;
    ^
In file included from ../../Modules/_testcapi/vectorcall_limited.c:3:
In file included from ../../Modules/_testcapi/clinic/vectorcall_limited.c.h:7:
In file included from ../../Include/internal/pycore_runtime.h:16:
In file included from ../../Include/internal/pycore_global_objects.h:13:
../../Include/internal/pycore_global_strings.h:31:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_dictcomp, "<dictcomp>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:32:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_genexpr, "<genexpr>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:33:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_lambda, "<lambda>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:34:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_listcomp, "<listcomp>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:35:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_module, "<module>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:36:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_null, "<NULL>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:37:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_setcomp, "<setcomp>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:38:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_string, "<string>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Makefile:3014: Modules/_testcapi/vectorcall_limited.o] Error 1
make: *** Waiting for unfinished jobs....

find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
make: [Makefile:2764: clean-retain-profile] Error 1 (ignored)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-bot

bedevere-bot commented Aug 12, 2023

Copy link
Copy Markdown

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot wasm32-emscripten node (pthreads) 3.x has failed when building commit 2e27da1.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/1050/builds/2763) and take a look at the build logs.
  4. Check if the failure is related to this commit (2e27da1) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/1050/builds/2763

Summary of the results of the build (if available):

Click to see traceback logs
remote: Enumerating objects: 7, done.        
remote: Counting objects:  14% (1/7)        
remote: Counting objects:  28% (2/7)        
remote: Counting objects:  42% (3/7)        
remote: Counting objects:  57% (4/7)        
remote: Counting objects:  71% (5/7)        
remote: Counting objects:  85% (6/7)        
remote: Counting objects: 100% (7/7)        
remote: Counting objects: 100% (7/7), done.        
remote: Compressing objects:  16% (1/6)        
remote: Compressing objects:  33% (2/6)        
remote: Compressing objects:  50% (3/6)        
remote: Compressing objects:  66% (4/6)        
remote: Compressing objects:  83% (5/6)        
remote: Compressing objects: 100% (6/6)        
remote: Compressing objects: 100% (6/6), done.        
remote: Total 7 (delta 1), reused 5 (delta 1), pack-reused 0        
From https://github.com/python/cpython
 * branch                  main       -> FETCH_HEAD
Note: switching to '2e27da18952c6561f48dab706b5911135cedd7cf'.

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 2e27da1895 gh-104469 : Convert _testcapi/vectorcall_limited.c to use AC (gh-107857)
Switched to and reset branch 'main'

configure: ../../configure --prefix $(PWD)/target/host --with-pydebug --without-pydebug --with-emscripten-target=node --disable-wasm-dynamic-linking --enable-wasm-pthreads --build=x86_64-pc-linux-gnu --host=wasm32-unknown-emscripten --with-build-python=../build/python
configure: WARNING: using cross tools not prefixed with host triplet
mcc: error: no input files

make: make -j2 all
In file included from ../../Python/ceval.c:773:
../../Python/generated_cases.c.h:3597:37: warning: code will never be executed [-Wunreachable-code]
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                    ^
../../Python/generated_cases.c.h:3597:33: note: silence by adding parentheses to mark code as explicitly dead
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                ^
                                /* DISABLES CODE */ ( )
../../Python/generated_cases.c.h:3577:37: warning: code will never be executed [-Wunreachable-code]
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                    ^
../../Python/generated_cases.c.h:3577:33: note: silence by adding parentheses to mark code as explicitly dead
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                ^
                                /* DISABLES CODE */ ( )
../../Python/generated_cases.c.h:2254:37: warning: code will never be executed [-Wunreachable-code]
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                    ^
../../Python/generated_cases.c.h:2254:33: note: silence by adding parentheses to mark code as explicitly dead
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                ^
                                /* DISABLES CODE */ ( )
3 warnings generated.
In file included from ../../Python/executor.c:84:
../../Python/executor_cases.c.h:1516:37: warning: code will never be executed [-Wunreachable-code]
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                    ^
../../Python/executor_cases.c.h:1516:33: note: silence by adding parentheses to mark code as explicitly dead
            stack_pointer[-1 - (0 ? 1 : 0)] = attr;
                                ^
                                /* DISABLES CODE */ ( )
1 warning generated.
../../Python/initconfig.c:2252:27: warning: format specifies type 'wint_t' (aka 'int') but the argument has type 'wint_t' (aka 'unsigned int') [-Wformat]
    printf(usage_envvars, (wint_t)DELIM, (wint_t)DELIM, PYTHONHOMEHELP);
           ~~~~~~~~~~~~~  ^~~~~~~~~~~~~
../../Python/initconfig.c:145:18: note: format string is defined here
"PYTHONPATH   : '%lc'-separated list of directories prefixed to the\n"
                 ^~~
                 %c
../../Python/initconfig.c:2252:42: warning: format specifies type 'wint_t' (aka 'int') but the argument has type 'wint_t' (aka 'unsigned int') [-Wformat]
    printf(usage_envvars, (wint_t)DELIM, (wint_t)DELIM, PYTHONHOMEHELP);
           ~~~~~~~~~~~~~                 ^~~~~~~~~~~~~
../../Python/initconfig.c:147:58: note: format string is defined here
"PYTHONHOME   : alternate <prefix> directory (or <prefix>%lc<exec_prefix>).\n"
                                                         ^~~
                                                         %c
2 warnings generated.
../../Python/optimizer.c:382:9: warning: variable 'reserved' set but not used [-Wunused-but-set-variable]
    int reserved = 0;
        ^
1 warning generated.
../../Modules/expat/xmlparse.c:3116:9: warning: code will never be executed [-Wunreachable-code]
        parser->m_characterDataHandler(parser->m_handlerArg, parser->m_dataBuf,
        ^~~~~~
../../Modules/expat/xmlparse.c:3115:16: note: silence by adding parentheses to mark code as explicitly dead
      else if (0 && parser->m_characterDataHandler)
               ^
               /* DISABLES CODE */ ( )
../../Modules/expat/xmlparse.c:4059:9: warning: code will never be executed [-Wunreachable-code]
        parser->m_characterDataHandler(parser->m_handlerArg, parser->m_dataBuf,
        ^~~~~~
../../Modules/expat/xmlparse.c:4058:16: note: silence by adding parentheses to mark code as explicitly dead
      else if (0 && parser->m_characterDataHandler)
               ^
               /* DISABLES CODE */ ( )
../../Modules/expat/xmlparse.c:7703:11: warning: format specifies type 'int' but the argument has type 'ptrdiff_t' (aka 'long') [-Wformat]
          bytesMore, (account == XML_ACCOUNT_DIRECT) ? "DIR" : "EXP",
          ^~~~~~~~~
3 warnings generated.
../../Modules/socketmodule.c:4081:33: warning: comparison of integers of different signs: 'unsigned long' and 'long' [-Wsign-compare]
         cmsgh != NULL; cmsgh = CMSG_NXTHDR(&msg, cmsgh)) {
                                ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/buildbot/.emscripten_cache/sysroot/include/sys/socket.h:356:44: note: expanded from macro 'CMSG_NXTHDR'
        __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../Modules/socketmodule.c:4134:33: warning: comparison of integers of different signs: 'unsigned long' and 'long' [-Wsign-compare]
         cmsgh != NULL; cmsgh = CMSG_NXTHDR(&msg, cmsgh)) {
                                ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/buildbot/.emscripten_cache/sysroot/include/sys/socket.h:356:44: note: expanded from macro 'CMSG_NXTHDR'
        __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../Modules/socketmodule.c:4758:54: warning: comparison of integers of different signs: 'unsigned long' and 'long' [-Wsign-compare]
            cmsgh = (i == 0) ? CMSG_FIRSTHDR(&msg) : CMSG_NXTHDR(&msg, cmsgh);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~
/opt/buildbot/.emscripten_cache/sysroot/include/sys/socket.h:356:44: note: expanded from macro 'CMSG_NXTHDR'
        __CMSG_LEN(cmsg) + sizeof(struct cmsghdr) >= __MHDR_END(mhdr) - (unsigned char *)(cmsg) \
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
../../Modules/_sqlite/connection.c:2171:19: warning: result of comparison of constant 9223372036854775807 with expression of type 'Py_ssize_t' (aka 'long') is always false [-Wtautological-constant-out-of-range-compare]
    if (data->len > 9223372036854775807) {  // (1 << 63) - 1
        ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
1 warning generated.
In file included from ../../Modules/_testcapi/vectorcall_limited.c:3:
In file included from ../../Modules/_testcapi/clinic/vectorcall_limited.c.h:6:
../../Include/internal/pycore_gc.h:48:10: error: call to undeclared function 'PyObject_IS_GC'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    if (!PyObject_IS_GC(obj)) {
         ^
In file included from ../../Modules/_testcapi/vectorcall_limited.c:3:
In file included from ../../Modules/_testcapi/clinic/vectorcall_limited.c.h:7:
In file included from ../../Include/internal/pycore_runtime.h:14:
In file included from ../../Include/internal/pycore_floatobject.h:12:
../../Include/internal/pycore_unicodeobject.h:323:5: error: unknown type name '_Py_Identifier'
    _Py_Identifier *right       /* Right identifier */
    ^
../../Include/internal/pycore_unicodeobject.h:361:41: error: unknown type name '_Py_Identifier'
PyAPI_FUNC(PyObject*) _PyUnicode_FromId(_Py_Identifier*);
                                        ^
../../Include/internal/pycore_unicodeobject.h:379:8: error: unknown type name 'PyStatus'
xtern PyStatus _PyUnicode_InitGlobalObjects(PyInterpreterState *);
       ^
../../Include/internal/pycore_unicodeobject.h:380:8: error: unknown type name 'PyStatus'
xtern PyStatus _PyUnicode_InitTypes(PyInterpreterState *);
       ^
In file included from ../../Modules/_testcapi/vectorcall_limited.c:3:
In file included from ../../Modules/_testcapi/clinic/vectorcall_limited.c.h:7:
In file included from ../../Include/internal/pycore_runtime.h:14:
../../Include/internal/pycore_floatobject.h:17:8: error: unknown type name 'PyStatus'
xtern PyStatus _PyFloat_InitTypes(PyInterpreterState *);
       ^
../../Include/internal/pycore_floatobject.h:51:5: error: unknown type name 'PyFloatObject'
    PyFloatObject *free_list;
    ^
In file included from ../../Modules/_testcapi/vectorcall_limited.c:3:
In file included from ../../Modules/_testcapi/clinic/vectorcall_limited.c.h:7:
In file included from ../../Include/internal/pycore_runtime.h:16:
In file included from ../../Include/internal/pycore_global_objects.h:13:
../../Include/internal/pycore_global_strings.h:31:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_dictcomp, "<dictcomp>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:32:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_genexpr, "<genexpr>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:33:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_lambda, "<lambda>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:34:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_listcomp, "<listcomp>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:35:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_module, "<module>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:36:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_null, "<NULL>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:37:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_setcomp, "<setcomp>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:38:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_string, "<string>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:39:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(anon_unknown, "<unknown>")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:40:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(close_br, "}")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:41:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(dbl_close_br, "}}")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
../../Include/internal/pycore_global_strings.h:42:9: error: unknown type name 'PyASCIIObject'
        STRUCT_FOR_STR(dbl_open_br, "{{")
        ^
../../Include/internal/pycore_global_strings.h:22:5: note: expanded from macro 'STRUCT_FOR_STR'
    STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
    ^
../../Include/internal/pycore_global_strings.h:18:9: note: expanded from macro 'STRUCT_FOR_ASCII_STR'
        PyASCIIObject _ascii; \
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
mcc: error: 'ccache /opt/emsdk/upstream/bin/clang -target wasm32-unknown-emscripten -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -D__EMSCRIPTEN_SHARED_MEMORY__=1 -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=22 -Werror=implicit-function-declaration -I/opt/buildbot/.emscripten_cache/sysroot/include/SDL --sysroot=/opt/buildbot/.emscripten_cache/sysroot -Xclang -iwithsysroot/include/compat -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g3 -O3 -Wall -pthread -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I../../Include/internal -IObjects -IInclude -IPython -I. -I../../Include -DPy_BUILD_CORE_BUILTIN -c -matomics -mbulk-memory ../../Modules/_testcapi/vectorcall_limited.c -o Modules/_testcapi/vectorcall_limited.o' failed (returned 1)
make: *** [Makefile:3038: Modules/_testcapi/vectorcall_limited.o] Error 1
make: *** Waiting for unfinished jobs....
mmake: error: 'make -j2 all' failed (returned 2)

find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
find: ‘build’: No such file or directory
make: [Makefile:2770: clean-retain-profile] Error 1 (ignored)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@brettcannon

brettcannon commented Aug 14, 2023

Copy link
Copy Markdown
Member

@corona10 FYI this caused a few of the WebAssembly buildbots to fail, e.g., https://buildbot.python.org/all/#/builders/1046/builds/2731 .

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@corona10

corona10 commented Aug 14, 2023

Copy link
Copy Markdown
Member

@corona10 FYI this caused a few of the WebAssembly buildbots to fail, e.g., https://buildbot.python.org/all/#/builders/1046/builds/2731 .

I will take a look, it can be easily fixed if the implicit function declarations is a real issue.

In file included from ../../Modules/_testcapi/clinic/vectorcall_limited.c.h:6:
../../Include/internal/pycore_gc.h:48:10: error: call to undeclared function 'PyObject_IS_GC'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
if (!PyObject_IS_GC(obj)) {

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@corona10

corona10 commented Aug 14, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member
#define Py_LIMITED_API 0x030c0000 // 3.12
#include "parts.h"
#include "clinic/vectorcall_limited.c.h"

#ifdef LIMITED_API_AVAILABLE

the code line of #ifdef LIMITED_API_AVAILABLE was issue, I will send a hot fix for it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@corona10

corona10 commented Aug 14, 2023

Copy link
Copy Markdown
Member

Okay, this is an issue between AC and limited C APIs. We should revert it first.
cc @erlend-aasland @vstinner @nahyeon-an

Thank you @vstinner for investigation :)

brettcannon and nahyeon-an reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@corona10 corona10 mentioned this pull request Aug 14, 2023
Revert "gh-104469 : Convert _testcapi/vectorcall_limited.c to use AC … #107951
Merged
corona10 added a commit to corona10/cpython that referenced this pull request Aug 14, 2023
@corona10
Revert "pythongh-104469 : Convert _testcapi/vectorcall_limited.c to u…
95e9fb6
…se AC (pythongh-107857)"

This reverts commit 2e27da1.
corona10 added a commit to corona10/cpython that referenced this pull request Aug 14, 2023
@corona10
Revert "pythongh-104469 : Convert _testcapi/vectorcall_limited.c to u…
26ba468
…se AC (pythongh-107857)"

This reverts commit 2e27da1.
@vstinner

vstinner commented Aug 14, 2023

Copy link
Copy Markdown
Member

Okay, this is an issue between AC and limited C APIs

Right, see:

  • issue [C API] Convert a few stdlib extensions to the limited C API (PEP 384) #85283
  • https://discuss.python.org/t/propose-that-argument-clinic-only-uses-public-python-apis-to-make-it-easier-to-use-outside-cpython/16557
erlend-aasland reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

corona10 added a commit that referenced this pull request Aug 14, 2023
@corona10
Revert "gh-104469 : Convert _testcapi/vectorcall_limited.c to use AC … (
580f357
gh-107951)

Revert "gh-104469 : Convert _testcapi/vectorcall_limited.c to use AC (gh-107857)"

This reverts commit 2e27da1.
@erlend-aasland

erlend-aasland commented Aug 15, 2023

Copy link
Copy Markdown
Contributor

Sounds good, go ahead with any needed reverts. It is not important that the _test* extension modules use clinic :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

iritkatriel pushed a commit to iritkatriel/cpython that referenced this pull request Aug 16, 2023
@corona10 @iritkatriel
Revert "pythongh-104469 : Convert _testcapi/vectorcall_limited.c to u…
2237015
…se AC … (pythongh-107951)

Revert "pythongh-104469 : Convert _testcapi/vectorcall_limited.c to use AC (pythongh-107857)"

This reverts commit 2e27da1.
@vstinner vstinner mentioned this pull request Sep 21, 2023
gh-104469: Disallow using Py_LIMITED_API with Py_BUILD_CORE #109690
Merged
@vstinner

vstinner commented Sep 21, 2023

Copy link
Copy Markdown
Member

New attempt since Argument Clinic now supports the limited C API: PR #109691.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vstinner

vstinner commented Sep 25, 2023

Copy link
Copy Markdown
Member

@nahyeon-an: I merged again your PR as 8c521f0 (PR gh-109691). Thanks for your contribution!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@corona10 corona10 corona10 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@corona10 corona10

Labels

skip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@nahyeon-an @bedevere-bot @ambv @brettcannon @corona10 @vstinner @erlend-aasland
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.