Source: musl
Version: 1.1.17-1
Severity: serious
Tags: patch
https://buildd.debian.org/status/fetch.php?pkg=musl&arch=armel&ver=1.1.17-1&stamp=1508450839&raw=0
...
{standard input}: Assembler messages:
{standard input}:625: Error: selected processor does not support `clz r0,r9' in
ARM mode
{standard input}:953: Error: selected processor does not support `clz r3,r7' in
ARM mode
{standard input}:1010: Error: selected processor does not support `clz r3,r6'
in ARM mode
{standard input}:1148: Error: selected processor does not support `clz r0,r3'
in ARM mode
Makefile:164: recipe for target 'obj/src/math/fma.lo' failed
make[1]: *** [obj/src/math/fma.lo] Error 1
Fix is attached.
Description: CLZ is only available with ARM >= 5
Author: Adrian Bunk <[email protected]>
--- musl-1.1.17.orig/arch/arm/atomic_arch.h
+++ musl-1.1.17/arch/arm/atomic_arch.h
@@ -82,9 +82,13 @@ static inline void a_crash()
: : : "memory");
}
+#if __ARM_ARCH >= 5
+
#define a_clz_32 a_clz_32
static inline int a_clz_32(uint32_t x)
{
__asm__ ("clz %0, %1" : "=r"(x) : "r"(x));
return x;
}
+
+#endif