Source: rubberband
Version: 1.9.2-1
Severity: serious
Tags: ftbfs patch

https://buildd.debian.org/status/fetch.php?pkg=rubberband&arch=armel&ver=1.9.2-2&stamp=1631846256&raw=0

...
FAILED: librubberband.a.p/src_system_sysutils.cpp.o
c++ -Ilibrubberband.a.p -I. -I.. -I../rubberband -I../src 
-fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch 
-Wnon-virtual-dtor -std=c++14 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2 -fPIC -pthread -DUSE_BUILTIN_FFT -DHAVE_LIBSAMPLERATE 
-DUSE_PTHREADS -DHAVE_POSIX_MEMALIGN -MD -MQ 
librubberband.a.p/src_system_sysutils.cpp.o -MF 
librubberband.a.p/src_system_sysutils.cpp.o.d -o 
librubberband.a.p/src_system_sysutils.cpp.o -c ../src/system/sysutils.cpp
/tmp/ccANy3Ml.s: Assembler messages:
/tmp/ccANy3Ml.s:295: Error: selected processor does not support `fmrx r3,fpscr' 
in ARM mode
/tmp/ccANy3Ml.s:298: Error: selected processor does not support `fmxr fpscr,r3' 
in ARM mode
...


Fix is attached.
Description: Fix FTBFS on armel
 Don't initialise the FPU when it is not available.
Author: Adrian Bunk <b...@debian.org>

--- rubberband-1.9.2.orig/src/system/sysutils.cpp
+++ rubberband-1.9.2/src/system/sysutils.cpp
@@ -189,7 +189,7 @@ void system_specific_initialise()
     fesetenv(FE_DFL_DISABLE_DENORMS_ENV);
 #endif
 #endif
-#if defined __ARMEL__
+#if defined(__ARMEL__) && !defined(__SOFTFP__)
     // ARM32
     static const unsigned int x = 0x04086060;
     static const unsigned int y = 0x03000000;

Reply via email to