[From nobody Fri Jun 12 19:35:07 2026
Received: (at submit) by bugs.debian.org; 7 Jun 2026 13:15:48 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-122.5 required=4.0 tests=ALL_TRUSTED,BAYES_00,
 BODY_INCLUDES_CONTROL_AFFECTS,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
 DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FROMDEVELOPER,MD5_SHA1_SUM,
 SPF_HELO_NONE,SPF_PASS,USER_IN_DKIM_WELCOMELIST,XMAILER_REPORTBUG
 autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 21; hammy, 150; neutral, 82; spammy,
 0. spammytokens:
 hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
 0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
 0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: &lt;bunk@debian.org&gt;
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:39630)
 by buxtehude.debian.org with utf8esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;bunk@debian.org&gt;) id 1wWDLv-006NuD-36
 for submit@bugs.debian.org; Sun, 07 Jun 2026 13:15:48 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.stravinsky;
 h=X-Debian-User:Date:Message-ID:Subject:To:From:
 MIME-Version:Content-Type:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=V1T34VeNXnQzdyaZLV4sVnEuHsfYWgwNP6VLuEylAco=; b=Msxl0rzzMdASUA5Jf2TVYy8ATG
 bM0Y7VPjN0Jr4WuC0ViH7VKNS7Xls5scqshVXPFvDl3tAgLwJowmBUEDGxitlJCXmz0xW19uahp74
 4Ydpw8/n74sKamTGYgk2Dbeo13zVl1owL8XJ4BJXrurMKL0pPcPX3T+1jYj5JRekuxKB/fFOSAyi2
 6iW2Xmau1pip3Qk+FkyrvZMk4dTn2mjtAHt0ttEMVRHzTtXqrYRgVi9MgPSecf8DaXRw89Y5p1jrm
 WZD5NEt/tiDi28uVUfZ7ZYX2a2a7/4qiwtbW+n9vB/8NAgr7sa+Rscx8IRuCXkwfbZDBtEO4EhFkF
 wib9bz0g==;
Received: from authenticated-user by stravinsky.debian.org with utf8esmtpsa
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;bunk@debian.org&gt;) id 1wWDLt-006s1B-1A;
 Sun, 07 Jun 2026 13:15:46 +0000
Content-Type: multipart/mixed; boundary=&quot;===============3597428649304811732==&quot;
MIME-Version: 1.0
From: Adrian Bunk &lt;bunk@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: fftw3: unconditional rdtime use on riscv64
Message-ID: &lt;178083814445.2324432.14447167569465251704.reportbug@localhost&gt;
X-Mailer: reportbug 13.2.0
Date: Sun, 07 Jun 2026 16:15:44 +0300
X-Debian-User: bunk
Delivered-To: submit@bugs.debian.org

This is a multi-part MIME message sent by reportbug.


--===============3597428649304811732==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Source: fftw3
Version: 3.3.11-1
Severity: serious
Tags: patch
Forwarded: https://github.com/FFTW/fftw3/pull/406
X-Debbugs-Cc: debian-riscv@lists.debian.org
User: debian-riscv@lists.debian.org
Usertags: riscv64
Control: affects -1 src:sndfile-tools

https://ci.debian.net/packages/s/sndfile-tools/testing/riscv64/71828732/

...
177s autopkgtest [08:44:03]: test upstream-tests: [-----------------------
184s valgrind /usr/bin/sndfile-generate-chirp : ok
192s valgrind /usr/bin/sndfile-resample    : 1 errors, 0 bytes leaked
196s valgrind /usr/bin/sndfile-resample    : 1 errors, 0 bytes leaked
200s valgrind /usr/bin/sndfile-resample    : 1 errors, 0 bytes leaked
204s valgrind /usr/bin/sndfile-spectrogram : tests/test-wrapper.sh: line 15:  1804 Illegal instruction        $valgrind $@ &gt; $logfile 2&gt;&amp;1
204s ok
215s valgrind /usr/bin/sndfile-waveform    : 0 errors, 432 bytes leaked
215s autopkgtest [08:44:41]: test upstream-tests: -----------------------]
215s autopkgtest [08:44:41]: test upstream-tests:  - - - - - - - - - - results - - - - - - - - - -
215s upstream-tests       FAIL stderr: tests/test-wrapper.sh: line 15:  1804 Illegal instruction        $valgrind $@ &gt; $logfile 2&gt;&amp;1
...


A fix is attached.

--===============3597428649304811732==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=&quot;0001-RISC-V-rdtime-is-part-of-the-Zicntr-extension.patch&quot;

&gt;From abaa6f77feb882f53a132f9c931db56c8d2f7b05 Mon Sep 17 00:00:00 2001
From: Adrian Bunk &lt;bunk@debian.org&gt;
Date: Sun, 7 Jun 2026 14:39:39 +0300
Subject: RISC-V: rdtime is part of the Zicntr extension

---
 kernel/cycle.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cycle.h b/kernel/cycle.h
index 089bdafe..c205cdbd 100644
--- a/kernel/cycle.h
+++ b/kernel/cycle.h
@@ -486,7 +486,7 @@ INLINE_ELAPSED(inline)
 #define HAVE_TICK_COUNTER
 #endif
 
-#if defined(__riscv_xlen) &amp;&amp; !defined(HAVE_TICK_COUNTER)
+#if defined(__riscv_xlen) &amp;&amp; defined(__riscv_zicntr) &amp;&amp; !defined(HAVE_TICK_COUNTER)
 typedef uint64_t ticks;
 static inline ticks getticks(void)
 {
-- 
2.47.3


--===============3597428649304811732==--
]