Skip to content

Build error with Python 3.13 #14

@Antalis

Description

@Antalis

Hi,

OS :

  • Fedora 42
  • Python 3.13
  • efl-devel-1.28.1-1

Problem :
Build in error :

$ python setup.py build
Python-EFL: 1.26.1
Checking for Python: OK, found 3.13.5
Checking for Cython: not needed, using pre-generated C files
Checking for Eina: OK, found 1.28.1
Checking for Eo: OK, found 1.28.1
Checking for Evas: OK, found 1.28.1
Checking for Ecore: OK, found 1.28.1
Checking for EcoreFile: OK, found 1.28.1
Checking for EcoreInput: OK, found 1.28.1
Checking for EcoreCon: OK, found 1.28.1
Checking for EcoreX: OK, found 1.28.1
Checking for Ethumb: OK, found 1.28.1
Checking for Ethumb_Client: OK, found 1.28.1
Checking for Edje: OK, found 1.28.1
Checking for Emotion: OK, found 1.28.1
Checking for DBus: OK, found 1.3.2
Checking for Elementary: OK, found 1.28.1
running build
running build_py
running build_ext
building 'efl.eo' extension
gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -O3 -fPIC -I/usr/include/python3.13 -c efl/eo/efl.eo.c -o build/temp.linux-x86_64-cpython-313/efl/eo/efl.eo.o -I/usr/include/eo-1 -I/usr/include/eina-1 -I/usr/include/eina-1/eina -pthread -fno-var-tracking-assignments -Wno-misleading-indentation -Wno-deprecated-declarations -Wno-unused-variable -Wno-format-security
efl/eo/efl.eo.c: In function ‘__pyx_tp_dealloc_3efl_2eo_Eo’:
efl/eo/efl.eo.c:5443:104: error: implicit declaration of function ‘_PyGC_FINALIZED’ [-Wimplicit-function-declaration]
 5443 |   if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
      |                                                                                                        ^~~~~~~~~~~~~~~
efl/eo/efl.eo.c: In function ‘__Pyx_PyInt_As_int’:
efl/eo/efl.eo.c:9221:27: error: too few arguments to function ‘_PyLong_AsByteArray’; expected 6, have 5
 9221 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
      |                           ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.13/longobject.h:107,
                 from /usr/include/python3.13/Python.h:81,
                 from efl/eo/efl.eo.c:38:
/usr/include/python3.13/cpython/longobject.h:111:17: note: declared here
  111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
      |                 ^~~~~~~~~~~~~~~~~~~
efl/eo/efl.eo.c: In function ‘__Pyx_PyInt_As_long’:
efl/eo/efl.eo.c:9493:27: error: too few arguments to function ‘_PyLong_AsByteArray’; expected 6, have 5
 9493 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
      |                           ^~~~~~~~~~~~~~~~~~~
/usr/include/python3.13/cpython/longobject.h:111:17: note: declared here
  111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
      |                 ^~~~~~~~~~~~~~~~~~~
error: command '/bin/gcc' failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions