Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure on NetBSD: Incorrect number of arguments to 'pthread_setname_np' in _threadmodule.c #128279

Open
furkanonder opened this issue Dec 27, 2024 · 1 comment
Labels
build The build process and cross-build extension-modules C modules in the Modules dir type-bug An unexpected behavior, bug, or error

Comments

@furkanonder
Copy link
Contributor

furkanonder commented Dec 27, 2024

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

@furkanonder furkanonder added type-bug An unexpected behavior, bug, or error build The build process and cross-build labels Dec 27, 2024
furkanonder added a commit to furkanonder/cpython that referenced this issue Dec 27, 2024
@furkanonder
Copy link
Contributor Author

Bisect to 67b18a1 @vstinner

@picnixz picnixz added the extension-modules C modules in the Modules dir label Dec 27, 2024
furkanonder added a commit to furkanonder/cpython that referenced this issue Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build extension-modules C modules in the Modules dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants