Source: libyuv
Version: 0.0.1904.20250204-1
Severity: serious
Tags: ftbfs, patch
User: [email protected], Aurelien Jarno <[email protected]>
Usertags: riscv64
X-Debbugs-Cc: [email protected]

Dear Maintainer,

As aurel32 pointed out[0], two of the riscv64 buildds (rv-manda-02 and 
rv-manda-04) recently got their hardware upgraded to a CPU with vector 
extension ("V"). 

Now it had ftbfs on rv-manda-02:

```
error: unrecognized command-line option '-fno-vectorize'
error: unrecognized command-line option '-fno-slp-vectorize'
```
see: 
https://buildd.debian.org/status/fetch.php?pkg=libyuv&arch=riscv64&ver=0.0.1971.20260904-1&stamp=1788683665&raw=0

The upstream RISC-V configuration enables RVV by default and uses a 
Clang-based toolchain[1]. Rather than experimenting with a new build 
environment for this package, I simply disabled RVV support for the 
Debian riscv64 build.

Please let me know if any issues.


[0]: https://bugs.debian.org/1145420
[1]: 
https://salsa.debian.org/debian/libyuv/-/blob/master/riscv_script/riscv-clang.cmake?ref_type=heads

-- 
Regards,
--
  Bo YU

diff -Nru libyuv-0.0.1971.20260904/debian/changelog 
libyuv-0.0.1971.20260904/debian/changelog
--- libyuv-0.0.1971.20260904/debian/changelog   2026-09-05 02:06:21.000000000 
+0000
+++ libyuv-0.0.1971.20260904/debian/changelog   2026-09-08 15:56:36.000000000 
+0000
@@ -1,3 +1,10 @@
+libyuv (0.0.1971.20260904-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Disable RVV on riscv64. (Closes: #-1)
+
+ -- Bo YU <[email protected]>  Tue, 08 Sep 2026 15:56:36 +0000
+
 libyuv (0.0.1971.20260904-1) unstable; urgency=medium
 
   * New upstream snapshot.
diff -Nru libyuv-0.0.1971.20260904/debian/rules 
libyuv-0.0.1971.20260904/debian/rules
--- libyuv-0.0.1971.20260904/debian/rules       2026-09-05 02:06:21.000000000 
+0000
+++ libyuv-0.0.1971.20260904/debian/rules       2026-09-08 15:34:11.000000000 
+0000
@@ -27,9 +27,15 @@
   LIBYUV_TEST_FLAG = OFF
 endif
 
+# Disable the RVV on Debian RISC-V buildd
+ifeq ($(DEB_HOST_ARCH), riscv64)
+  LIBYUV_RVV_FLAG = OFF
+endif
+
 override_dh_auto_configure:
        dh_auto_configure -- \
            -DUNIT_TEST=$(LIBYUV_TEST_FLAG) \
+           -DUSE_RVV=$(LIBYUV_RVV_FLAG) \
            -DGTEST_SRC_DIR=/usr/src/googletest/googletest \
            $(NULL)
 

Attachment: signature.asc
Description: PGP signature

Reply via email to