-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed
Labels
OS-netbsdbuildThe build process and cross-buildThe build process and cross-buildextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
./configure --with-pydebug && make -j3
Output:
gcc -pthread -fno-strict-overflow -Wsign-compare -g -Og -Wall -O2 -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include/internal/mimalloc -I. -I./Include -DPy_BUILD_CORE_BUILTIN -c ./Modules/_threadmodule.c -o Modules/_threadmodule.o
./Modules/_threadmodule.c: In function '_thread_set_name_impl':
./Modules/_threadmodule.c:2443:14: error: too few arguments to function 'pthread_setname_np'
2443 | int rc = pthread_setname_np(thread, name);
| ^~~~~~~~~~~~~~~~~~
In file included from ./Include/cpython/pythread.h:17,
from ./Include/pythread.h:124,
from ./Include/Python.h:120,
from ./Modules/_threadmodule.c:4:
/usr/include/pthread.h:160:5: note: declared here
160 | int pthread_setname_np(pthread_t, const char *, void *);
| ^~~~~~~~~~~~~~~~~~
*** [Modules/_threadmodule.o] Error code 1
make: stopped in /home/blue/cpython
1 error
make: stopped in /home/blue/cpython
OS: NetBSD 10.0
CPython versions tested on:
CPython main branch
Operating systems tested on:
Other
Linked PRs
Metadata
Metadata
Assignees
Labels
OS-netbsdbuildThe build process and cross-buildThe build process and cross-buildextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error