Source: pydevd
Version: 2.10.0+ds-8
Severity: wishlist
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
Dear maintainers,
When compiling the package pydevd for loong64 in the Debian Package
Auto-Building environment, the error message are as follows:
......omit
tests_python/test_tracing_on_top_level.py:121
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pydevd/build/tests_python/test_tracing_on_top_level.py:121:
PytestDeprecationWarning: @pytest.yield_fixture is deprecated.
Use @pytest.fixture instead; they are the same.
@pytest.yield_fixture
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info
============================
FAILED tests_python/test_debugger_json.py::test_notify_gevent -
AssertionErro...
========= 1 failed, 758 skipped, 71 deselected, 11 warnings in 19.10s
==========
*** END OF RUN 5: NOT ALL TESTS HAVE YET PASSED/XFAILED ***
*** SOME TESTS FAILED/ERRORED EVERY RUN, ABORTING ***
......omit
The full compilation log can be found at
https://buildd.debian.org/status/logs.php?pkg=pydevd&ver=2.10.0%2Bds-8&arch=loong64
After analysis, I found that the linux-libc-dev_6.6.8-1 lacks
loongarch's header files when compiling pydev in Debian Package
Auto-Building environment.
```
creating build/temp.linux-loongarch64-cpython-311/_pydevd_bundle
loongarch64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall
-g -fstack-protector-strong -Wformat -Werror=format-security -g -O2
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC
-DPy_BUILD_CORE_MODULE=1 -I/usr/include/python3.11 -c
_pydevd_bundle/pydevd_cython.c -o
build/temp.linux-loongarch64-cpython-311/_pydevd_bundle/pydevd_cython.o
-flto
In file included from /usr/include/loongarch64-linux-gnu/bits/errno.h:26,
from /usr/include/errno.h:28,
from /usr/include/python3.11/Python.h:25,
from _pydevd_bundle/pydevd_cython.c:19:
/usr/include/linux/errno.h:1:10: fatal error: asm/errno.h: No such file
or directory
1 | #include <asm/errno.h>
| ^~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/loongarch64-linux-gnu-gcc' failed with exit code 1
```
We have updated the linux-libc-dev_6.6.9-1 (including
/usr/include/loongarch64-linux-gnu/asm/errno.h)to debian ports.
The pydevd source package was compiled successfully on my local environment.
Feedback the above phenomenon to the maintainer, please help us to giveback.
If you have any questions, you can contact me at any time.
thanks,
Dandan Zhang