Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1223065

Bug#1089230: pcre2: Please enable JIT on loong64

From zhangdandan <zhangdandan@loongson.cn>
Newsgroups linux.debian.bugs.dist
Subject Bug#1089230: pcre2: Please enable JIT on loong64
Date 2024-12-07 15:00 +0100
Message-ID <JR3vH-eqQo-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Source: pcre2
Version: 10.44-4
Severity: wishlist
Tags: patch
User: debian-loongarch@lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the pcre2 10.44-4 successed for loong64 in the Debian Package 
Auto-Building environment.
But pcre2 source package do not enable JIT on loong64.

Without enable JIT on loong64 in pcre2 source package, the phenomenon 
caused is python-pcre2 build failure.
The error(test cases fail) log of python-pcre2 is as follows,
```
=========================== short test summary info 
============================
FAILED 
tests/test_pattern.py::test_pattern_jit_compile_success[a+b+c*d*-0-SUCCESS0]
FAILED 
tests/test_pattern.py::test_pattern_jit_compile_success[(?<foo>a+b+)c*d*-0-SUCCESS0]
FAILED 
tests/test_pattern.py::test_pattern_jit_compile_success[\xc3\xa5+\xe2\x88\xab+\xc3\xa7*\xe2\x88\x82*-0-SUCCESS]
FAILED 
tests/test_pattern.py::test_pattern_jit_compile_success[a+b+c*d*-0-SUCCESS1]
FAILED 
tests/test_pattern.py::test_pattern_jit_compile_success[(?<foo>a+b+)c*d*-0-SUCCESS1]
FAILED 
tests/test_pattern.py::test_pattern_jit_compile_success[(?<foo>a+b+)c*d*(?<foo>a+b+)-64-SUCCESS]
FAILED 
tests/test_pattern.py::test_pattern_jit_compile_success[\xe5+\u222b+\xe7*\u2202*-0-SUCCESS]
FAILED 
tests/test_pattern.py::test_pattern_jit_compile_success[(?<\u0192\xf8\xf8>a+b+)c*d*-0-SUCCESS]
FAILED tests/test_pattern.py::test_pattern_jit_findall - 
pcre2.exceptions.Lib...
FAILED tests/test_pattern.py::test_pattern_jit_split - 
pcre2.exceptions.Libra...
======================== 10 failed, 52 passed in 0.37s 
=========================

```
The error log can be found at 
https://buildd.debian.org/status/logs.php?pkg=python-pcre2&ver=0.4.0%2Bds-1&arch=loong64.

Pleason consider the patch I attached for pcre2.
1. I have built pcre2 successfully in locally.
```
......
dpkg-deb: building package 'libpcre2-dev' in 
'../libpcre2-dev_10.44-4+loong64_loong64.deb'.
dpkg-deb: building package 'pcre2-utils-dbgsym' in 
'../pcre2-utils-dbgsym_10.44-4+loong64_loong64.deb'.
dpkg-deb: building package 'libpcre2-8-0-udeb' in 
'debian/.debhelper/scratch-space/build-libpcre2-8-0-udeb/libpcre2-8-0-udeb_10.44-4+loong64_loong64.deb'.
     Renaming libpcre2-8-0-udeb_10.44-4+loong64_loong64.deb to 
libpcre2-8-0-udeb_10.44-4+loong64_loong64.udeb
  dpkg-genbuildinfo -O../pcre2_10.44-4+loong64_loong64.buildinfo
  dpkg-genchanges -O../pcre2_10.44-4+loong64_loong64.changes

```

2. Base on local libpcre2-dev_10.44-4+loong64_loong64.deb, I have built 
python-pcre2 successfully in locally.
```
===== 62 passed in 0.49s =====
......
dpkg-deb: building package 'python3-pcre2' in 
'../python3-pcre2_0.4.0+ds-1_loong64.deb'.
dpkg-deb: building package 'python3-pcre2-dbgsym' in 
'../python3-pcre2-dbgsym_0.4.0+ds-1_loong64.deb'.
  dpkg-genbuildinfo -O../python-pcre2_0.4.0+ds-1_loong64.buildinfo
  dpkg-genchanges -O../python-pcre2_0.4.0+ds-1_loong64.changes
```

Please enable JIT on loong64 in pcre2 source package.

Best Regards,
Dandan Zhang

Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1089230: pcre2: Please enable JIT on loong64 zhangdandan <zhangdandan@loongson.cn> - 2024-12-07 15:00 +0100
  Bug#1089230: pcre2: Please enable JIT on loong64 Matthew Vernon <matthew@debian.org> - 2024-12-07 15:50 +0100
  Bug#1089530: (no subject) Matthew Vernon <matthew@debian.org> - 2024-12-08 14:20 +0100

csiph-web