Hi,

I'm still trying to package pypy[23].7 on Alpine Linux. While I have proceeded bootstrapping pypy I got stuck with pypy3. Compiling aborts with several translation errors:

[translation:ERROR] CompilationError: CompilationError(err="""
data_pypy_module_cpyext.c:25256:3: warning: initialization of 'void (*)(Signed)' {aka 'void (*)(long int)'} from incompatible pointer type 'void (*)(int)' [-Wincompatible-pointer-types]
        25256 |   set_Py_DebugFlag, /* 0.value */
              |   ^~~~~~~~~~~~~~~~
data_pypy_module_cpyext.c:25256:3: note: (near initialization for 'pypy_g_array_25832.a.items[0].o_value')

MR : https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/26292
Log: https://gitlab.alpinelinux.org/liske/aports/-/jobs/509516/raw


Any ideas how to deal with these errors?



musl vs. glibc: I've attached a small patch adding a required include to fix compile warnings on missing struct timeval *


Regards & TIA,
Thomas


--
supp...@ibh.de                              Tel. +49 351 477 77 30
www.ibh.de                                  Fax  +49 351 477 77 39

-----------------------------------------------------------------------
Dipl.-Ing. Thomas Liske
Teamleiter DataCenter Services


IBH IT-Service GmbH                      Amtsgericht Dresden
Heilbronner Str. 20                      HRB 13626
01189 Dresden                            GF: Sandra Zander
Germany                                  VAT DE182302907
-----------------------------------------------------------------------
Ihr Partner für: LAN, WAN IP-Quality, Security, VoIP, SAN, Backup, USV
-----------------------------------------------------------------------
       professioneller IT-Service - kompetent und zuverlässig
-----------------------------------------------------------------------
--- a/pypy/module/cpyext/include/Python.h.orig
+++ b/pypy/module/cpyext/include/Python.h
@@ -11,6 +11,7 @@
 # include <math.h>
 # include <errno.h>
 # include <unistd.h>
+# include <sys/time.h>
 # define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
 # define PyAPI_FUNC(RTYPE) __attribute__((visibility("default"))) RTYPE
 # define PyAPI_DATA(RTYPE) extern PyAPI_FUNC(RTYPE)
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to