-
Notifications
You must be signed in to change notification settings - Fork 218
Open
Description
Module fail to compile on debian trixie
I guess gcc is just too new.
(venv) user@computer ~/(master) [0|1]> python3 -V
Python 3.13.5
(venv) user@computer ~/(master) [0|1]> /usr/bin/x86_64-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/x86_64-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-linux-gnu/14/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 14.2.0-19' --with-bugurl=file:///usr/share/doc/gcc-14/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2,rust --prefix=/usr --with-gcc-major-version-only --program-suffix=-14 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-libstdcxx-backtrace --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/reproducible-path/gcc-14-14.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/reproducible-path/gcc-14-14.2.0/debian/tmp-gcn/usr --enable-offload-defaulted --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=3
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.2.0 (Debian 14.2.0-19)
(venv) user@computer ~/(master) [0|1]> pip install durable_rules
Collecting durable_rules
Using cached durable_rules-2.0.28.tar.gz (57 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: durable_rules
Building wheel for durable_rules (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for durable_rules (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [58 lines of output]
/tmp/pip-build-env-nkax8090/overlay/lib/python3.13/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: MIT License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-313/durable
copying libpy/durable/engine.py -> build/lib.linux-x86_64-cpython-313/durable
copying libpy/durable/__init__.py -> build/lib.linux-x86_64-cpython-313/durable
copying libpy/durable/lang.py -> build/lib.linux-x86_64-cpython-313/durable
running build_clib
building 'durable_rules_engine_py' library
creating build/temp.linux-x86_64-cpython-313/src/rules
x86_64-linux-gnu-gcc -std=c99 -D_GNU_SOURCE -fPIC -c src/rules/events.c -o build/temp.linux-x86_64-cpython-313/src/rules/events.o
x86_64-linux-gnu-gcc -std=c99 -D_GNU_SOURCE -fPIC -c src/rules/json.c -o build/temp.linux-x86_64-cpython-313/src/rules/json.o
x86_64-linux-gnu-gcc -std=c99 -D_GNU_SOURCE -fPIC -c src/rules/regex.c -o build/temp.linux-x86_64-cpython-313/src/rules/regex.o
x86_64-linux-gnu-gcc -std=c99 -D_GNU_SOURCE -fPIC -c src/rules/rete.c -o build/temp.linux-x86_64-cpython-313/src/rules/rete.o
x86_64-linux-gnu-gcc -std=c99 -D_GNU_SOURCE -fPIC -c src/rules/state.c -o build/temp.linux-x86_64-cpython-313/src/rules/state.o
x86_64-linux-gnu-gcc-ar rcs build/temp.linux-x86_64-cpython-313/libdurable_rules_engine_py.a build/temp.linux-x86_64-cpython-313/src/rules/events.o build/temp.linux-x86_64-cpython-313/src/rules/json.o build/temp.linux-x86_64-cpython-313/src/rules/regex.o build/temp.linux-x86_64-cpython-313/src/rules/rete.o build/temp.linux-x86_64-cpython-313/src/rules/state.o
running build_ext
building 'durable_rules_engine' extension
creating build/temp.linux-x86_64-cpython-313/src/rulespy
x86_64-linux-gnu-gcc -std=c99 -D_GNU_SOURCE -fPIC -Isrc/rules -I/home/theholm/Documents/coding/MQTT-automation/venv/include -I/usr/include/python3.13 -c src/rulespy/rules.c -o build/temp.linux-x86_64-cpython-313/src/rulespy/rules.o
src/rulespy/rules.c: In function ‘storeMessageCallback’:
src/rulespy/rules.c:636:14: error: implicit declaration of function ‘PyEval_CallObject’; did you mean ‘PyObject_CallObject’? [-Wimplicit-function-declaration]
636 | result = PyEval_CallObject(callback, arglist);
| ^~~~~~~~~~~~~~~~~
| PyObject_CallObject
src/rulespy/rules.c:636:12: error: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
636 | result = PyEval_CallObject(callback, arglist);
| ^
src/rulespy/rules.c: In function ‘deleteMessageCallback’:
src/rulespy/rules.c:683:12: error: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
683 | result = PyEval_CallObject(callback, arglist);
| ^
src/rulespy/rules.c: In function ‘queueMessageCallback’:
src/rulespy/rules.c:730:12: error: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
730 | result = PyEval_CallObject(callback, arglist);
| ^
src/rulespy/rules.c: In function ‘getQueuedMessagesCallback’:
src/rulespy/rules.c:777:12: error: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
777 | result = PyEval_CallObject(callback, arglist);
| ^
src/rulespy/rules.c: In function ‘getIdleStateCallback’:
src/rulespy/rules.c:852:12: error: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
852 | result = PyEval_CallObject(callback, arglist);
| ^
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for durable_rules
Failed to build durable_rules
ERROR: Failed to build installable wheels for some pyproject.toml based projects (durable_rules)
Metadata
Metadata
Assignees
Labels
No labels