kdev-python not compiling cleanly on Alpine Linux Py_ssize_t due to musl?

Björn Strömberg bjorn.stromberg86 at gmail.com
Mon Jan 1 21:23:32 GMT 2024


so i'm trying to compile kdev-python on Alpine Linux 3.19 / KDevelop 23.08.4

currently the problem is that compilation fails of asttransformer.cpp on
pyport.h and unknown type ssize_t in this block of the header..

/* Py_ssize_t is a signed integral type such that sizeof(Py_ssize_t) ==
 * sizeof(size_t).  C99 doesn't define such a thing directly (size_t is an
 * unsigned integral type).  See PEP 353 for details.
 * PY_SSIZE_T_MAX is the largest positive value of type Py_ssize_t.
 */
#ifdef HAVE_PY_SSIZE_T

#elif HAVE_SSIZE_T
typedef ssize_t         Py_ssize_t;
#   define PY_SSIZE_T_MAX SSIZE_MAX
#elif SIZEOF_VOID_P == SIZEOF_SIZE_T
typedef Py_intptr_t     Py_ssize_t;
#   define PY_SSIZE_T_MAX INTPTR_MAX
#else
#   error "Python needs a typedef for Py_ssize_t in pyport.h."
#endif


this sounds like something that might be related to Alpine Linux using musl
as its libc,
since it seems to compile fine on Arch Linux that uses glibc, since they
package it while Alpine Linux does not..

would be nice to have python language support in KDevelop,
hopefully someone still reads this list,
and might have some ideas what needs patching if its musl related..

/Björn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20240101/25757042/attachment.htm>


More information about the KDevelop-devel mailing list