subvertpy icon indicating copy to clipboard operation
subvertpy copied to clipboard

build fails

Open papoteur-mga opened this issue 10 months ago • 2 comments

Hello, I try to build this project in Mageia cauldron as package. I get:

gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -fPIC -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/subversion-1 -Isubvertpy -I/usr/include/python3.12 -c subvertpy/_ra.c -o build/temp.linux-x86_64-cpython-312/subvertpy/_ra.o
  subvertpy/_ra.c:282:9: error: initialization of ‘long int’ from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
    282 |         NULL, /*        printfunc tp_print;     */
        |         ^~~~
  subvertpy/_ra.c:282:9: note: (near initialization for ‘Reporter_Type.tp_vectorcall_offset’)
  subvertpy/_ra.c: In function ‘ra_new’:
  subvertpy/_ra.c:599:9: warning: ‘svn_ra_open4’ is deprecated [-Wdeprecated-declarations]
    599 |         err = svn_ra_open4(&ret->ra, &ret->corrected_url, ret->url, uuid,
        |         ^~~
  In file included from subvertpy/_ra.c:24:
  /usr/include/subversion-1/svn_ra.h:760:1: note: declared here
    760 | svn_ra_open4(svn_ra_session_t **session_p,
        | ^~~~~~~~~~~~
  subvertpy/_ra.c: At top level:
  subvertpy/_ra.c:2080:9: error: initialization of ‘long int’ from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
   2080 |         NULL, /*        printfunc tp_print;     */
        |         ^~~~
  subvertpy/_ra.c:2080:9: note: (near initialization for ‘RemoteAccess_Type.tp_vectorcall_offset’)
  subvertpy/_ra.c:2408:9: error: initialization of ‘long int’ from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
   2408 |         NULL, /*        printfunc tp_print;     */
        |         ^~~~
  subvertpy/_ra.c:2408:9: note: (near initialization for ‘Auth_Type.tp_vectorcall_offset’)
  subvertpy/_ra.c: In function ‘moduleinit’:
  subvertpy/_ra.c:3089:9: warning: ‘PyEval_InitThreads’ is deprecated [-Wdeprecated-declarations]
   3089 |         PyEval_InitThreads();
        |         ^~~~~~~~~~~~~~~~~~
  In file included from /usr/include/python3.12/Python.h:95,
                   from subvertpy/_ra.c:21:
  /usr/include/python3.12/ceval.h:132:37: note: declared here
    132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
        |                                     ^~~~~~~~~~~~~~~~~~
  error: command '/usr/bin/gcc' failed with exit code 1

This is with gcc 14.

papoteur-mga avatar Jan 21 '25 16:01 papoteur-mga

What version are you trying to build?

jelmer avatar Jan 23 '25 16:01 jelmer

@jelmer Sorry, I missed your question. This with 0.11.0 got from pypi.org.

papoteur-mga avatar Jan 29 '25 07:01 papoteur-mga