DEBUG: Executing shell function do_compile
TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-fann2/1.1.2/recipe-sysroot-native/usr/lib/python3.14/site-packages/setuptools/dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  self._finalize_license_expression()
running build
running build_py
creating build/lib.linux-x86_64-cpython-314/fann2
copying fann2/__init__.py -> build/lib.linux-x86_64-cpython-314/fann2
copying fann2/libfann.py -> build/lib.linux-x86_64-cpython-314/fann2
not copying fann2/libfann.py (output up-to-date)
not copying fann2/__init__.py (output up-to-date)
running egg_info
writing fann2.egg-info/PKG-INFO
writing dependency_links to fann2.egg-info/dependency_links.txt
writing top-level names to fann2.egg-info/top_level.txt
reading manifest file 'fann2.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'fann2.egg-info/SOURCES.txt'
copying fann2/fann2.i -> build/lib.linux-x86_64-cpython-314/fann2
copying fann2/fann2_wrap.cxx -> build/lib.linux-x86_64-cpython-314/fann2
copying fann2/fann_cpp_subclass.h -> build/lib.linux-x86_64-cpython-314/fann2
running build_ext
building 'fann2._libfann' extension
x86_64-poky-linux-g++ -m64 -march=x86-64-v3 -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-fann2/1.1.2/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-fann2/1.1.2/sources/fann2-1.1.2=/usr/src/debug/python3-fann2/1.1.2 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-fann2/1.1.2/sources/fann2-1.1.2=/usr/src/debug/python3-fann2/1.1.2 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-fann2/1.1.2/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-fann2/1.1.2/recipe-sysroot-native= -pipe -fvisibility-inlines-hidden -fPIC -DSWIG_COMPILE -I./include -I../include -Iinclude -ITOPDIR/tmp/work/x86-64-v3-poky-linux/python3-fann2/1.1.2/recipe-sysroot/usr/include/python3.14 -c fann2/fann2_wrap.cxx -o build/temp.linux-x86_64-cpython-314/fann2/fann2_wrap.o
fann2/fann2_wrap.cxx: In function 'PyObject* _wrap_neural_net_create_standard_array(PyObject*, PyObject*)':
fann2/fann2_wrap.cxx:10062:41: error: 'PyInt_AsLong' was not declared in this scope; did you mean 'PyLong_AsLong'?
10062 |         arg2->array[i] = (unsigned int) PyInt_AsLong(o);
      |                                         ^~~~~~~~~~~~
      |                                         PyLong_AsLong
fann2/fann2_wrap.cxx: In function 'PyObject* _wrap_neural_net_create_sparse_array(PyObject*, PyObject*)':
fann2/fann2_wrap.cxx:10135:41: error: 'PyInt_AsLong' was not declared in this scope; did you mean 'PyLong_AsLong'?
10135 |         arg3->array[i] = (unsigned int) PyInt_AsLong(o);
      |                                         ^~~~~~~~~~~~
      |                                         PyLong_AsLong
fann2/fann2_wrap.cxx: In function 'PyObject* _wrap_neural_net_create_shortcut_array(PyObject*, PyObject*)':
fann2/fann2_wrap.cxx:10200:41: error: 'PyInt_AsLong' was not declared in this scope; did you mean 'PyLong_AsLong'?
10200 |         arg2->array[i] = (unsigned int) PyInt_AsLong(o);
      |                                         ^~~~~~~~~~~~
      |                                         PyLong_AsLong
fann2/fann2_wrap.cxx: In function 'PyObject* _wrap_neural_net_get_layer_array(PyObject*, PyObject*)':
fann2/fann2_wrap.cxx:10557:21: error: 'PyInt_FromLong' was not declared in this scope; did you mean 'PyLong_FromLong'?
10557 |       PyObject *o = PyInt_FromLong( (long) result->array[i]);
      |                     ^~~~~~~~~~~~~~
      |                     PyLong_FromLong
fann2/fann2_wrap.cxx: In function 'PyObject* _wrap_neural_net_get_bias_array(PyObject*, PyObject*)':
fann2/fann2_wrap.cxx:10594:21: error: 'PyInt_FromLong' was not declared in this scope; did you mean 'PyLong_FromLong'?
10594 |       PyObject *o = PyInt_FromLong( (long) result->array[i]);
      |                     ^~~~~~~~~~~~~~
      |                     PyLong_FromLong
fann2/fann2_wrap.cxx: In function 'PyObject* _wrap_neural_net_set_weight_array(PyObject*, PyObject*)':
fann2/fann2_wrap.cxx:10672:11: error: 'PyInt_Check' was not declared in this scope; did you mean 'PySet_Check'?
10672 |       if (PyInt_Check(from_neuron) && PyInt_Check(to_neuron) &&
      |           ^~~~~~~~~~~
      |           PySet_Check
fann2/fann2_wrap.cxx:10674:53: error: 'PyInt_AsLong' was not declared in this scope; did you mean 'PyLong_AsLong'?
10674 |         arg2->array[i].from_neuron = (unsigned int) PyInt_AsLong(from_neuron);
      |                                                     ^~~~~~~~~~~~
      |                                                     PyLong_AsLong
error: Command '['x86_64-poky-linux-g++', '-m64', '-march=x86-64-v3', '-fstack-protector-strong', '-O2', '-D_FORTIFY_SOURCE=2', '-Wformat', '-Wformat-security', '-Werror=format-security', '--sysroot=TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-fann2/1.1.2/recipe-sysroot', '-O2', '-g', '-fcanon-prefix-map', '-ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-fann2/1.1.2/sources/fann2-1.1.2=/usr/src/debug/python3-fann2/1.1.2', '-ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-fann2/1.1.2/sources/fann2-1.1.2=/usr/src/debug/python3-fann2/1.1.2', '-ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-fann2/1.1.2/recipe-sysroot=', '-ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-fann2/1.1.2/recipe-sysroot-native=', '-pipe', '-fvisibility-inlines-hidden', '-fPIC', '-DSWIG_COMPILE', '-I./include', '-I../include', '-Iinclude', '-ITOPDIR/tmp/work/x86-64-v3-poky-linux/python3-fann2/1.1.2/recipe-sysroot/usr/include/python3.14', '-c', 'fann2/fann2_wrap.cxx', '-o', 'build/temp.linux-x86_64-cpython-314/fann2/fann2_wrap.o']' returned non-zero exit status 1.
WARNING: exit code 1 from a shell command.

Error details

Submitted on:
13/08/26 18:04
Error type:
Recipe
Task:
do_compile
Recipe:
python3-fann2
Recipe version:
1.1.2-r0
Machine:
qemux86-64
Distro:
poky
Build system:
x86_64-linux
Target system:
x86_64-poky-linux
Host distro:
debian-11/debian-11
Branch:
yoe/mut
Commit:
3176269ed4440e834ba4ea7bf6f52ac3f2a8866b
Build:
#246656
Submitter:
yp-ab-debian11-vk-1
Link back:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/81/builds/1722
Similar errors:
1
Open a bug