Bug#874164: freerdp2: Fix FTBFS on armel

Adrian Bunk bunk at debian.org
Sun Sep 3 18:11:55 UTC 2017


Source: freerdp2
Version: 2.0.0~git20170725.1.1648deb+dfsg1-1
Severity: important
Tags: patch

https://buildd.debian.org/status/fetch.php?pkg=freerdp2&arch=armel&ver=2.0.0~git20170725.1.1648deb%2Bdfsg1-1&stamp=1503900692&raw=0

...
In file included from /«BUILDDIR»/freerdp2-2.0.0~git20170725.1.1648deb+dfsg1/libfreerdp/primitives/prim_colors_opt.c:31:0:
/usr/lib/gcc/arm-linux-gnueabi/7/include/arm_neon.h:31:2: error: #error "NEON intrinsics not available with the soft-float ABI.  Please use -mfloat-abi=softp or -mfloat-abi=hard"
 #error "NEON intrinsics not available with the soft-float ABI.  Please use -mfloat-abi=softp or -mfloat-abi=hard"
  ^~~~~


While freerdp2 seems to have proper autodetection for NEON which
is good for armhf, the solution for armel is to disable WITH_NEON
(replacing the ARM_FLOAT_ABI option that was removed upstream):

--- debian/rules.old	2017-09-03 17:28:27.209424306 +0000
+++ debian/rules	2017-09-03 17:30:51.367856314 +0000
@@ -7,10 +7,10 @@
 CXXFLAGS+=$(CPPFLAGS)
 
 DEB_HOST_ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
-ifneq (,$(filter armhf,$(DEB_HOST_ARCH)))
-ARM_FLOAT_ABI = -DARM_FP_ABI=hard
+ifneq (,$(filter armel,$(DEB_HOST_ARCH)))
+WITH_NEON = -DWITH_NEON=OFF
 else
-ARM_FLOAT_ABI =
+WITH_NEON =
 endif
 
 NULL =
@@ -44,7 +44,7 @@
                           -DCMAKE_BUILD_TYPE=RELWITHDEBINFO \
                           -DWITH_WAYLAND=ON \
                           -DWITH_CLIENT_INTERFACE=OFF \
-                          $(ARM_FLOAT_ABI) \
+                          $(WITH_NEON) \
                           $(NULL)
 %:
 	dh $@ --parallel


More information about the pkg-remote-team mailing list