DEBUG: Executing shell function do_compile
* Getting build dependencies for wheel...
INFO:run_command:running egg_info
INFO:write_pkg_info:writing src/M2Crypto.egg-info/PKG-INFO
INFO:write_file:writing dependency_links to src/M2Crypto.egg-info/dependency_links.txt
INFO:write_file:writing requirements to src/M2Crypto.egg-info/requires.txt
INFO:write_file:writing top-level names to src/M2Crypto.egg-info/top_level.txt
INFO:read_manifest:reading manifest file 'src/M2Crypto.egg-info/SOURCES.txt'
INFO:read_template:reading manifest template 'MANIFEST.in'
WARNING:process_template_line:warning: no files found matching '*.dat' under directory 'tests'
WARNING:process_template_line:warning: no files found matching '*.p7*' under directory 'tests'
WARNING:process_template_line:warning: no files found matching '*.txt' under directory 'tests'
WARNING:process_template_line:warning: no previously-included files matching '*' found under directory '.keys'
WARNING:process_template_line:warning: no files found matching 'src/SWIG/_m2crypto_wrap.c'
INFO:add_license_files:adding license file 'LICENSES/BSD-2-Clause.txt'
INFO:execute:writing manifest file 'src/M2Crypto.egg-info/SOURCES.txt'
* Building wheel...
INFO:run_command:running bdist_wheel
INFO:run_command:running build
INFO:run_command:running build_py
INFO:copy_file:copying src/M2Crypto/Rand.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/types.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/EC.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/Provider.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/RC4.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/callback.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/DH.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/m2urllib.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/Err.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/httpslib.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/SMIME.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/m2.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/BN.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/BIO.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/X509.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/m2crypto.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/threading.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/DSA.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/Engine.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/__init__.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/util.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/ftpslib.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/RSA.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/ASN1.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/m2urllib2.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/m2xmlrpclib.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/EVP.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/AuthCookie.py -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:mkpath:creating build/lib.linux-x86_64-cpython-314/M2Crypto/SSL
INFO:copy_file:copying src/M2Crypto/SSL/SSLError.py -> build/lib.linux-x86_64-cpython-314/M2Crypto/SSL
INFO:copy_file:copying src/M2Crypto/SSL/Checker.py -> build/lib.linux-x86_64-cpython-314/M2Crypto/SSL
INFO:copy_file:copying src/M2Crypto/SSL/timeout.py -> build/lib.linux-x86_64-cpython-314/M2Crypto/SSL
INFO:copy_file:copying src/M2Crypto/SSL/Session.py -> build/lib.linux-x86_64-cpython-314/M2Crypto/SSL
INFO:copy_file:copying src/M2Crypto/SSL/__init__.py -> build/lib.linux-x86_64-cpython-314/M2Crypto/SSL
INFO:copy_file:copying src/M2Crypto/SSL/Context.py -> build/lib.linux-x86_64-cpython-314/M2Crypto/SSL
INFO:copy_file:copying src/M2Crypto/SSL/SSLServer.py -> build/lib.linux-x86_64-cpython-314/M2Crypto/SSL
INFO:copy_file:copying src/M2Crypto/SSL/TwistedProtocolWrapper.py -> build/lib.linux-x86_64-cpython-314/M2Crypto/SSL
INFO:copy_file:copying src/M2Crypto/SSL/Cipher.py -> build/lib.linux-x86_64-cpython-314/M2Crypto/SSL
INFO:copy_file:copying src/M2Crypto/SSL/cb.py -> build/lib.linux-x86_64-cpython-314/M2Crypto/SSL
INFO:copy_file:copying src/M2Crypto/SSL/Connection.py -> build/lib.linux-x86_64-cpython-314/M2Crypto/SSL
INFO:run_command:running egg_info
INFO:write_pkg_info:writing src/M2Crypto.egg-info/PKG-INFO
INFO:write_file:writing dependency_links to src/M2Crypto.egg-info/dependency_links.txt
INFO:write_file:writing requirements to src/M2Crypto.egg-info/requires.txt
INFO:write_file:writing top-level names to src/M2Crypto.egg-info/top_level.txt
INFO:read_manifest:reading manifest file 'src/M2Crypto.egg-info/SOURCES.txt'
INFO:read_template:reading manifest template 'MANIFEST.in'
WARNING:process_template_line:warning: no files found matching '*.dat' under directory 'tests'
WARNING:process_template_line:warning: no files found matching '*.p7*' under directory 'tests'
WARNING:process_template_line:warning: no files found matching '*.txt' under directory 'tests'
WARNING:process_template_line:warning: no previously-included files matching '*' found under directory '.keys'
WARNING:process_template_line:warning: no files found matching 'src/SWIG/_m2crypto_wrap.c'
INFO:add_license_files:adding license file 'LICENSES/BSD-2-Clause.txt'
INFO:execute:writing manifest file 'src/M2Crypto.egg-info/SOURCES.txt'
INFO:copy_file:copying src/M2Crypto/_m2crypto.pyi -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:copy_file:copying src/M2Crypto/py.typed -> build/lib.linux-x86_64-cpython-314/M2Crypto
INFO:run_command:running build_ext
INFO:build_extension:building 'M2Crypto._m2crypto' extension
INFO:swig_sources:swigging src/SWIG/_m2crypto.i to src/SWIG/_m2crypto_wrap.c
INFO:spawn:swig -python -Isystem_shadowing -ITOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../lib/x86_64-poky-linux/gcc/x86_64-poky-linux/16.1.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../lib/x86_64-poky-linux/gcc/x86_64-poky-linux/16.1.0/include-fixed -ITOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../lib/x86_64-poky-linux/gcc/x86_64-poky-linux/16.1.0/../../../../../x86_64-poky-linux/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/recipe-sysroot/usr/lib/x86_64-poky-linux/16.1.0/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/recipe-sysroot/usr/local/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../lib/x86_64-poky-linux/gcc/../../../lib/x86_64-poky-linux/gcc/x86_64-poky-linux/16.1.0/../../../../../x86_64-poky-linux/include -ITOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/recipe-sysroot/usr/include -D__x86_64__ -ITOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/recipe-sysroot/usr/include/python3.14 -I/usr/include/openssl -includeall -builtin -outdir build/lib.linux-x86_64-cpython-314/M2Crypto -o src/SWIG/_m2crypto_wrap.c src/SWIG/_m2crypto.i
src/SWIG/_provider.i:27: Warning 454: Setting a pointer/reference variable may leak memory.
INFO:call:x86_64-poky-linux-gcc -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-m2crypto/0.48.0/recipe-sysroot -O2 -g -fcanon-prefix-map -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/sources/m2crypto-0.48.0=/usr/src/debug/python3-m2crypto/0.48.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/sources/m2crypto-0.48.0=/usr/src/debug/python3-m2crypto/0.48.0 -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/recipe-sysroot= -ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/recipe-sysroot-native= -pipe -fPIC -ITOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/recipe-sysroot/usr/include/python3.14 -ITOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/sources/m2crypto-0.48.0/src/SWIG -c src/SWIG/_m2crypto_wrap.c -o build/temp.linux-x86_64-cpython-314/src/SWIG/_m2crypto_wrap.o -DTHREADING -Wno-deprecated-declarations
src/SWIG/_m2crypto_wrap.c: In function 'x509_store_verify_callback':
src/SWIG/_m2crypto_wrap.c:4909:21: error: implicit declaration of function 'PyInt_AsLong'; did you mean 'PyLong_AsLong'? [-Wimplicit-function-declaration]
4909 | cret = (int)PyInt_AsLong(ret);
| ^~~~~~~~~~~~
| PyLong_AsLong
src/SWIG/_m2crypto_wrap.c: In function 'rsa_get_ex_data':
src/SWIG/_m2crypto_wrap.c:7605:12: error: implicit declaration of function 'PyInt_FromLong'; did you mean 'PyLong_FromLong'? [-Wimplicit-function-declaration]
7605 | return PyInt_FromLong(*data);
| ^~~~~~~~~~~~~~
| PyLong_FromLong
src/SWIG/_m2crypto_wrap.c:7605:12: error: returning 'int' from a function with return type 'PyObject *' {aka 'struct _object *'} makes pointer from integer without a cast [-Wint-conversion]
7605 | return PyInt_FromLong(*data);
| ^~~~~~~~~~~~~~~~~~~~~
src/SWIG/_m2crypto_wrap.c: In function 'ec_get_builtin_curves':
src/SWIG/_m2crypto_wrap.c:9856:26: error: implicit declaration of function 'PyString_FromString'; did you mean 'PyLong_FromString'? [-Wimplicit-function-declaration]
9856 | PyString_FromString(sname));
| ^~~~~~~~~~~~~~~~~~~
| PyLong_FromString
src/SWIG/_m2crypto_wrap.c:9856:26: error: passing argument 3 of 'PyDict_SetItemString' makes pointer from integer without a cast [-Wint-conversion]
9856 | PyString_FromString(sname));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/recipe-sysroot/usr/include/python3.14/Python.h:101,
from src/SWIG/_m2crypto_wrap.c:208:
TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/recipe-sysroot/usr/include/python3.14/dictobject.h:58:79: note: expected 'PyObject *' {aka 'struct _object *'} but argument is of type 'int'
58 | PyAPI_FUNC(int) PyDict_SetItemString(PyObject *dp, const char *key, PyObject *item);
| ~~~~~~~~~~^~~~
src/SWIG/_m2crypto_wrap.c:9858:26: error: passing argument 3 of 'PyDict_SetItemString' makes pointer from integer without a cast [-Wint-conversion]
9858 | PyString_FromString(comment));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/recipe-sysroot/usr/include/python3.14/dictobject.h:58:79: note: expected 'PyObject *' {aka 'struct _object *'} but argument is of type 'int'
58 | PyAPI_FUNC(int) PyDict_SetItemString(PyObject *dp, const char *key, PyObject *item);
| ~~~~~~~~~~^~~~
error: Command '['x86_64-poky-linux-gcc', '-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-m2crypto/0.48.0/recipe-sysroot', '-O2', '-g', '-fcanon-prefix-map', '-ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/sources/m2crypto-0.48.0=/usr/src/debug/python3-m2crypto/0.48.0', '-ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/sources/m2crypto-0.48.0=/usr/src/debug/python3-m2crypto/0.48.0', '-ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/recipe-sysroot=', '-ffile-prefix-map=TOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/recipe-sysroot-native=', '-pipe', '-fPIC', '-ITOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/recipe-sysroot/usr/include/python3.14', '-ITOPDIR/tmp/work/x86-64-v3-poky-linux/python3-m2crypto/0.48.0/sources/m2crypto-0.48.0/src/SWIG', '-c', 'src/SWIG/_m2crypto_wrap.c', '-o', 'build/temp.linux-x86_64-cpython-314/src/SWIG/_m2crypto_wrap.o', '-DTHREADING', '-Wno-deprecated-declarations']' returned non-zero exit status 1.
TIP pass --env-dir and --sdist-extract-dir to keep the build environment and sources, then see https://build.pypa.io/en/stable/how-to/troubleshooting.html#debug-a-failed-build for help debugging a failed build
ERROR Backend subprocess exited when trying to invoke build_wheel
WARNING: exit code 1 from a shell command.