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


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

Bug#1089230: pcre2: Please enable JIT on loong64

Started byzhangdandan <zhangdandan@loongson.cn>
First post2024-12-07 15:00 +0100
Last post2024-12-08 14:20 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.debian.bugs.dist


Contents

  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

#1223065 — Bug#1089230: pcre2: Please enable JIT on loong64

Fromzhangdandan <zhangdandan@loongson.cn>
Date2024-12-07 15:00 +0100
SubjectBug#1089230: pcre2: Please enable JIT on loong64
Message-ID<JR3vH-eqQo-5@gated-at.bofh.it>

[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

[toc] | [next] | [standalone]


#1223079

FromMatthew Vernon <matthew@debian.org>
Date2024-12-07 15:50 +0100
Message-ID<JR4i6-erm4-7@gated-at.bofh.it>
In reply to#1223065
Hi,

On 07/12/2024 13:48, zhangdandan wrote:

> Without enable JIT on loong64 in pcre2 source package, the phenomenon 
> caused is python-pcre2 build failure.

I think this is a bug in python-pcre2, which should not attempt JIT 
tests when JIT support isn't compiled in?

I agree that LoongArch 64 bit is on the list of JIT-supported 
architectures, so I'll upload a pcre2 version with that support enabled 
(probably in a day or two, I'm a bit behind right now), but I think 
python-pcre2 is also misbehaving here.

Regards,

Matthew

[toc] | [prev] | [next] | [standalone]


#1223212 — Bug#1089530: (no subject)

FromMatthew Vernon <matthew@debian.org>
Date2024-12-08 14:20 +0100
SubjectBug#1089530: (no subject)
Message-ID<JRpmx-eKeX-5@gated-at.bofh.it>
In reply to#1223065
control: submitter 1089530 matthew@debian.org

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web