[MacPorts] #71639: python314-devel @3.14.0a3 build error: pymacro.h: error: passing argument 3 of 'pthread_getname_np' makes pointer from integer without a cast [-Wint-conversion]
MacPorts
noreply at macports.org
Tue Dec 24 17:26:14 UTC 2024
#71639: python314-devel @3.14.0a3 build error: pymacro.h: error: passing argument 3
of 'pthread_getname_np' makes pointer from integer without a cast [-Wint-
conversion]
--------------------------+-----------------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Keywords: | Port: python314-devel
--------------------------+-----------------------------
For informational purposes, I gave up on fixing Pythons here.
{{{
/opt/local/bin/gcc-mp-14 -fno-strict-overflow -Wsign-compare -fno-common
-dynamic -DNDEBUG -g -O3 -Wall -pipe -Os -arch ppc -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
-I/opt/local/include -DPy_BUILD_CORE_BUILTIN -c
./Modules/_threadmodule.c -o Modules/_threadmodule.o
In file included from ./Include/Python.h:64,
from ./Modules/_threadmodule.c:4:
./Modules/_threadmodule.c: In function '_thread__get_name_impl':
./Include/pymacro.h:105:5: error: passing argument 3 of
'pthread_getname_np' makes pointer from integer without a cast [-Wint-
conversion]
105 | (sizeof(array) / sizeof((array)[0]))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| long unsigned int
./Modules/_threadmodule.c:2381:47: note: in expansion of macro
'Py_ARRAY_LENGTH'
2381 | int rc = pthread_getname_np(thread, name,
Py_ARRAY_LENGTH(name));
| ^~~~~~~~~~~~~~~
In file included from ./Include/cpython/pythread.h:17,
from ./Include/pythread.h:124,
from ./Include/Python.h:120:
/usr/include/pthread.h:360:52: note: expected 'size_t *' {aka 'long
unsigned int *'} but argument is of type 'long unsigned int'
360 | int pthread_getname_np(pthread_t,char*,size_t*);
| ^~~~~~~
}}}
--
Ticket URL: <https://trac.macports.org/ticket/71639>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list