Building on riscv64 works if 1) LTO is disabled and 2) The following diff is applied:
diff --git a/debian/patches/c95cc0237d2f7a0f5ca5dc3fb4b5961b2b1dcdfc.patch b/debian/patches/c95cc0237d2f7a0f5ca5dc3fb4b5961b2b1dcdfc.patch index da42088..df69ba7 100644 --- a/debian/patches/c95cc0237d2f7a0f5ca5dc3fb4b5961b2b1dcdfc.patch +++ b/debian/patches/c95cc0237d2f7a0f5ca5dc3fb4b5961b2b1dcdfc.patch @@ -10,6 +10,7 @@ Also split HWY_HAVE_RUNTIME_DISPATCH into multiple macros to enable overriding parts of the logic. PiperOrigin-RevId: 639709709 +Updated: 2025-09-29, enable HWY_HAVE_RUNTIME_DISPATCH_RVV --- hwy/detect_targets.h | 51 ++++++++++++++++++++++++++++++++------------ 1 file changed, 37 insertions(+), 14 deletions(-) @@ -28,7 +29,7 @@ Index: highway/hwy/detect_targets.h +// #error check, whereas 14.1 fails with "argument type 'vuint16m8_t' requires +// the V ISA extension": https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115325. +// Hence disable runtime dispatch for now. -+#if HWY_ARCH_RISCV && 0 ++#if HWY_ARCH_RISCV +#define HWY_HAVE_RUNTIME_DISPATCH_RVV 1 +#else +#define HWY_HAVE_RUNTIME_DISPATCH_RVV 0 diff --git a/debian/rules b/debian/rules index fbef85d..236754d 100755 --- a/debian/rules +++ b/debian/rules @@ -35,7 +35,7 @@ endif ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH),riscv64)) # https://github.com/google/highway/issues/1740 - CMAKE_EXTRA_FLAGS += -DHWY_CMAKE_RVV:BOOL=OFF + # CMAKE_EXTRA_FLAGS += -DHWY_CMAKE_RVV:BOOL=OFF endif include /usr/share/dpkg/buildtools.mk -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2121375 Title: FTBFS with GCC 15.2 To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/2121375/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
