Article View: linux.debian.bugs.dist
Article #5893Bug#1145420: highway: testsuite failure on riscv64 hardware with vector extension
From: Sebastian Ramacher
Date: Tue, 24 Nov 2026 08:00
Date: Tue, 24 Nov 2026 08:00
78 lines
5119 bytes
5119 bytes
Control: severity -1 serious
Control: affects -1 src:fastp
On 2026-08-24 22:09:42 +0200, Aurelien Jarno wrote:
> Source: highway
> Version: 1.3.0-5.1
> Severity: important
Raising the severity as this issue now makes at least visp and fastp
FTBFS on riscv64.
Cheers
> X-Debbugs-Cc: debian-riscv@lists.debian.org
> User: debian-riscv@lists.debian.org
> Usertags: riscv64
>
> Dear maintainers,
>
> Two of the riscv64 buildds (rv-manda-02 and rv-manda-04) recently got
> their hardware upgraded to a CPU with vector extension ("V").
>
> The upstream highway software defaults to using vector extension, but as
> it is not included in the Debian baseline ISA, this is disabled through
> the -DHWY_CMAKE_RVV:BOOL=OFF option. In order to still use vector
> extension, runtime dispatch using the GCC target extension has been
> backported from upstream master ("gcc-15.patch"). On the paper this
> looks great.
>
> Unfortunately, the testsuite now fails on hardware having the vector
> extension:
>
> | The following tests FAILED:
> | 355 - HwyInterleavedTestGroup/HwyInterleavedTest.TestAllLoadStoreInterleaved2/RVV (Failed)
> | 357 - HwyInterleavedTestGroup/HwyInterleavedTest.TestAllLoadStoreInterleaved3/RVV (Failed)
> | 359 - HwyInterleavedTestGroup/HwyInterleavedTest.TestAllLoadStoreInterleaved4/RVV (Failed)
> | 647 - TupleTestGroup/TupleTest.TestAllCreate/RVV (Failed)
> | 696 - DotTestGroup/DotTest.TestAllDotF32BF16/RVV (Failed)
> | Errors while running CTest
>
> The full build log is available there:
> https://buildd.debian.org/status/fetch.php?pkg=highway&arch=riscv64&ver=1.3.0-5.1&stamp=1786752450&raw=0
>
> At this stage I haven't been able to fully fix the issue except by fully
> disabling RVV support. Nevertheless I would like to share my initial
> debugging attempts:
>
> - Disabling "gcc-15.patch" fixes the issue.
>
> - Building with -DHWY_CMAKE_RVV:BOOL=ON, instead on relying on runtime
> detection fixes 4 of the issues, but adds an extra one:
> | 126 - HwyBlockwiseTestGroup/HwyBlockwiseTest.TestAllZipLower/EMU128 (Failed)
> | 696 - DotTestGroup/DotTest.TestAllDotF32BF16/RVV (Failed)
>
> - With the current upstream HEAD with -DHWY_CMAKE_RVV:BOOL=OFF (so with runtime
> detection), I get:
> | 365 - HwyInterleavedTestGroup/HwyInterleavedTest.TestAllLoadStoreInterleaved2/RVV (Failed)
> | 367 - HwyInterleavedTestGroup/HwyInterleavedTest.TestAllLoadStoreInterleaved3/RVV (Failed)
> | 369 - HwyInterleavedTestGroup/HwyInterleavedTest.TestAllLoadStoreInterleaved4/RVV (Failed)
> | 697 - TupleTestGroup/TupleTest.TestAllCreate/RVV (Failed)
> | 750 - MinMaxTestGroup/MinMaxTest.TestAllIndexOfExtremeInLongSpan/RVV (Failed)
> | 774 - DotTestGroup/DotTest.TestAllDotF32BF16/RVV (Failed)
> | 831 - IntDivTestGroup/IntDivTest.TestAllFloorDivision/RVV (Failed)
>
> - With the current upstream HEAD with -DHWY_CMAKE_RVV:BOOL=ON, I get:
> | 750 - MinMaxTestGroup/MinMaxTest.TestAllIndexOfExtremeInLongSpan/RVV (Failed)
> | 774 - DotTestGroup/DotTest.TestAllDotF32BF16/RVV (Failed)
> | 831 - IntDivTestGroup/IntDivTest.TestAllFloorDivision/RVV (Failed)
>
> I have been able to reproduce the issue on a SpacemiT K1 CPU (like the
> buildds), a SpacemiT K3 CPU and using QEMU, so I think we can rule out a
> CPU bug.
>
> Regards
> Aurelien
--
Sebastian Ramacher
Technical Details
Message-ID:
<O2TBv-dQ05-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lon.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NvJjb-d1oP-1@gated-at.bofh.it> <NvJjb-d1oP-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Sebastian Ramacher <sramacher@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1145420: highway: testsuite failure on riscv64 hardware with vector extension Date: Tue, 24 Nov 2026 09:00:01 +0100 Message-ID: <O2TBv-dQ05-3@gated-at.bofh.it> References: <NvJjb-d1oP-1@gated-at.bofh.it> <NvJjb-d1oP-1@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Tue Nov 24 07:59:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Sebastian Ramacher <sramacher@debian.org>, 1145420@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-phototools-devel@lists.alioth.debian.org X-Debian-Pr-Message: followup 1145420 X-Debian-Pr-Package: src:highway X-Debian-Pr-Source: highway MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Debian-User: sramacher X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004623 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 78 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 24 Nov 2026 08:58:03 +0100 X-Original-Message-ID: <awVDi_4zYK2F2QZE@ramacher.at> X-Original-References: <178760218227.932318.18156035714273905990.reportbug@ohm.local> <178760218227.932318.18156035714273905990.reportbug@ohm.local>