Bug#1065467: marisa: FTBFS on loongarch64 as the test case fails
Source: marisa
Version: 0.2.6-15
Severity: wishlist
Tags: ftbfs
User: debian-loongarch@lists.debian.org
Usertags: loong64
Dear maintainers,
Compiling the marisa failed for loong64 in the Debian Package
Auto-Building environment.
The error messages is as follows,
```
========================================
marisa 0.2.6: tests/test-suite.log
========================================
# TOTAL: 5
# PASS: 4
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: base-test
===============
```
The full build log can be found at
https://buildd.debian.org/status/logs.php?pkg=marisa&ver=0.2.6-15&arch=loong64.
After analyzing the test case failures, I have fixed wordsize detection
for loongarch64 architecture.
Please consider the patch (my local patch) I have attached.
If you have any questions, you can contact me at any time.
BTW, the tests results and build results in my local loong64 ENV are as
follows,
```
PASS: io-test
PASS: trie-test
PASS: vector-test
PASS: base-test
PASS: marisa-test
============================================================================
Testsuite summary for marisa 0.2.6
============================================================================
# TOTAL: 5
# PASS: 5
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
============================================================================
......
make[1]: Leaving directory '/home/zdd/marisa/marisa-0.2.6'
dh_md5sums
dh_builddeb
dpkg-deb: building package 'libmarisa-perl' in
'../libmarisa-perl_0.2.6-15_loong64.deb'.
dpkg-deb: building package 'libmarisa-perl-dbgsym' in
'../libmarisa-perl-dbgsym_0.2.6-15_loong64.deb'.
dpkg-deb: building package 'libmarisa-dev' in
'../libmarisa-dev_0.2.6-15_loong64.deb'.
dpkg-deb: building package 'python3-marisa' in
'../python3-marisa_0.2.6-15_loong64.deb'.
dpkg-deb: building package 'python3-marisa-dbgsym' in
'../python3-marisa-dbgsym_0.2.6-15_loong64.deb'.
dpkg-deb: building package 'ruby-marisa-dbgsym' in
'../ruby-marisa-dbgsym_0.2.6-15_loong64.deb'.
dpkg-deb: building package 'marisa' in '../marisa_0.2.6-15_loong64.deb'.
dpkg-deb: building package 'libmarisa0' in
'../libmarisa0_0.2.6-15_loong64.deb'.
dpkg-deb: building package 'libmarisa0-dbgsym' in
'../libmarisa0-dbgsym_0.2.6-15_loong64.deb'.
dpkg-deb: building package 'ruby-marisa' in
'../ruby-marisa_0.2.6-15_loong64.deb'.
dpkg-deb: building package 'marisa-dbgsym' in
'../marisa-dbgsym_0.2.6-15_loong64.deb'.
dpkg-genbuildinfo -O../marisa_0.2.6-15_loong64.buildinfo
dpkg-genchanges -O../marisa_0.2.6-15_loong64.changes
```
thanks,
Dandan Zhang
Description: Fix wordsize detection for loongarch64 architecture
Last-Update: 2024-03-05
--- marisa-0.2.6.orig/include/marisa/base.h
+++ marisa-0.2.6/include/marisa/base.h
@@ -34,7 +34,7 @@ typedef uint64_t marisa_uint64;
( defined(__sparc__) && defined(__arch64__) ) || \
( defined(__riscv) && (__riscv_xlen == 64) ) || \
defined(__mips64) || defined(__aarch64__) || defined(__s390x__) || \
- defined(__alpha__)
+ defined(__alpha__) || defined(__loongarch64)
#define MARISA_WORD_SIZE 64
#else // defined(_WIN64), etc.
#define MARISA_WORD_SIZE 32
Reply to: