gesellkammer / pyliblo3

fork of pyliblo with better pip integration, binary wheels and no external dependencies
https://pypi.org/project/pyliblo3/
GNU Lesser General Public License v2.1
10 stars 3 forks source link

pyliblo3 fails to build on Fedora rawhide #10

Open martinkg opened 2 weeks ago

martinkg commented 2 weeks ago

Hi,

$ rpmbuild -bs pyliblo3.spec $ mock -r fedora-42-x86_64 ../SRPMS/pyliblo3-0.16.2-0.4.git91d1781.fc40.src.rpm

gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -O3 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -Ipyliblo3 -I/usr/include -I/usr/local/include -I/usr/include/python3.13 -c pyliblo3/_liblo.c -o build/temp.linux-x86_64-cpython-313/pyliblo3/_liblo.o -fno-strict-aliasing -Werror-implicit-function-declaration -Wfatal-errors
  pyliblo3/_liblo.c: In function ‘__pyx_f_8pyliblo3_6_liblo__msg_callback’:
  pyliblo3/_liblo.c:8980:92: error: passing argument 1 of ‘lo_blob_dataptr’ from incompatible pointer type [-Wincompatible-pointer-types]
   8980 |       __pyx_t_7 = __Pyx_PyBytes_FromCString(((unsigned char *)lo_blob_dataptr((__pyx_v_argv[__pyx_v_i])))); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 274, __pyx_L1_error)
        |                                                                               ~~~~~~~~~~~~~^~~~~~~~~~~~
        |                                                                                            |
        |                                                                                            lo_arg *
  pyliblo3/_liblo.c:1322:78: note: in definition of macro ‘__Pyx_PyBytes_FromCString’
   1322 | #define __Pyx_PyBytes_FromCString(s)   __Pyx_PyBytes_FromString((const char*)s)
        |                                                                              ^
  compilation terminated due to -Wfatal-errors.
  error: command '/usr/bin/gcc' failed with exit code 1
  error: subprocess-exited-with-error

[1] https://martinkg.fedorapeople.org/Review/SPECS/pyliblo3.spec [2] https://martinkg.fedorapeople.org/Review/SRPMS/pyliblo3-0.16.2-0.4.git91d178...

Regards Martin

LecrisUT commented 1 week ago

Try to add the patch https://github.com/gesellkammer/pyliblo3/pull/11/commits/6f0c8a73fd25fd05f528f79ac204a25657cebab7.patch

martinkg commented 1 week ago

Thanks for the patch