[Debian-med-packaging] Bug#1100017: simde: Cherry-pick patch from simde upstream
zhangdandan
zhangdandan at loongson.cn
Mon Mar 10 10:59:43 GMT 2025
Source: simde
Version: 0.8.2-2
Severity: wishlist
Tags: patch FTBFS
User: debian-loongarch at lists.debian.org
Usertags: loong64
Dear maintainers,
Compiling the plink2 failed(depends simde arch=all) for loong64 in the
Debian Package Auto-Building environment.
The error log is as follows,
```
../include/SFMT.c: In function ‘mm_recursion’:
/usr/include/simde/../simde/x86/sse2.h:1447:22: error: type mismatch in
conditional expression
1447 | (((imm8)<=0) ? (a) : (((imm8)>15) ? simde_mm_setzero_si128()
:
simde__m128i_from_lsx_i8((v16i8)__lsx_vbsrl_v(simde__m128i_to_private(a).lsx_i64,
(imm8)))))
| ^
```
Same as the above build error when compiling minimap2 source package.
I have submitted bug and patch for minimap2.
Please check https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1099518.
Instead of submitting modification patches (involving public code) for
each source package (e.g. plink2, minimap2, fermi-lite, fasta3), we
should modify the libsimde-dev dependency package.
Please check the upstream PR:
https://github.com/simd-everywhere/simde/pull/1287.
Please consider the patch I attached.
Based on attached patch, I built simde and installed
libsimde-dev_0.8.2-2+loong64_all.deb.
And then, plink2 and minimap2 were built successfully on my local ENV
(The above two compilation errors of obs-studio have been resolved).
```
dh_md5sums -O--sourcedirectory=build_dynamic/
dh_builddeb -O--sourcedirectory=build_dynamic/
dpkg-deb: building package 'plink2-dbgsym' in
'../plink2-dbgsym_2.00~a6.9-250129+dfsg-1_loong64.deb'.
dpkg-deb: building package 'plink2' in
'../plink2_2.00~a6.9-250129+dfsg-1_loong64.deb'.
dpkg-genbuildinfo -O../plink2_2.00~a6.9-250129+dfsg-1_loong64.buildinfo
dpkg-genchanges -O../plink2_2.00~a6.9-250129+dfsg-1_loong64.changes
......
```
Could you add attached patch(Or upstream pr
https://github.com/simd-everywhere/simde/pull/1287) for simde in the
next upload?
You opinions are welcome.
Best regards,
Dandan Zhang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simde-fix-gcc-build-failure-for-loongarch.patch
Type: text/x-patch
Size: 2160 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20250310/65293738/attachment.bin>
More information about the Debian-med-packaging
mailing list