kdev-python not compiling cleanly on Alpine Linux Py_ssize_t due to musl?
Björn Strömberg <[email protected]> Mon, 1 Jan 2024 22:23:32 +0100
| Newsgroups | gmane.comp.kde.devel.kdevelop |
|---|---|
| Message-ID | <CAHo5mS2Xy2m0q=fWJhprVzh6YyJuyLMQJaYzeYTGPXsLi5wL9A@mail.gmail.com> |
--000000000000123167060de8ff3f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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) =3D=3D * 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 =3D=3D 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=C3=B6rn --000000000000123167060de8ff3f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">so i'm trying to compile kdev-python on Alpine Linux 3= .19 / KDevelop 23.08.4<div><br></div><div>currently the problem is that com= pilation fails of asttransformer.cpp on pyport.h and unknown type ssize_t i= n this block of the header..</div><div><br></div><blockquote style=3D"margi= n:0 0 0 40px;border:none;padding:0px"><div>/* Py_ssize_t is a signed integr= al type such that sizeof(Py_ssize_t) =3D=3D</div><div>=C2=A0* sizeof(size_t= ).=C2=A0 C99 doesn't define such a thing directly (size_t is an</div><d= iv>=C2=A0* unsigned integral type).=C2=A0 See PEP 353 for details.</div><di= v>=C2=A0* PY_SSIZE_T_MAX is the largest positive value of type Py_ssize_t.<= /div><div>=C2=A0*/</div><div>#ifdef HAVE_PY_SSIZE_T</div><div><br></div><di= v>#elif HAVE_SSIZE_T</div><div>typedef ssize_t =C2=A0 =C2=A0 =C2=A0 =C2=A0 = Py_ssize_t;</div><div># =C2=A0 define PY_SSIZE_T_MAX SSIZE_MAX</div><div>#e= lif SIZEOF_VOID_P =3D=3D SIZEOF_SIZE_T</div><div>typedef Py_intptr_t =C2=A0= =C2=A0 Py_ssize_t;</div><div># =C2=A0 define PY_SSIZE_T_MAX INTPTR_MAX</di= v><div>#else</div><div># =C2=A0 error "Python needs a typedef for Py_s= size_t in pyport.h."</div><div>#endif</div></blockquote><br><div>this = sounds like something that might be related to Alpine Linux using musl as i= ts libc,=C2=A0</div><div>since it seems to compile fine on Arch Linux that = uses glibc, since they package it while Alpine Linux does not..</div><div><= br></div><div>would be nice to have python language support in KDevelop,=C2= =A0</div><div>hopefully someone still reads this list,=C2=A0</div><div>and = might have some ideas what needs patching if its musl related..</div><div><= br></div><div>/Bj=C3=B6rn</div></div> --000000000000123167060de8ff3f--