Package: spandsp
Version: 0.0.6~pre20-3
Severity: wishlist
Tags: sid patch
User: debian-powerpc...@breakpoint.cc
Usertags: powerpcspe

Hi,

on powerpcspe [1], spandsp FTBFS like this:

/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. 
-I..  -I/usr/include/libxml2 -DNDEBUG -std=gnu99 -ffast-math -Wall 
-Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1  -g -O2 -c -o 
dtmf.lo dtmf.c
 gcc -DHAVE_CONFIG_H -I. -I. -I. -I.. -I/usr/include/libxml2 -DNDEBUG 
-std=gnu99 -ffast-math -Wall -Wunused-variable -Wwrite-strings 
-Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden 
-DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -O2 -c dtmf.c  -fPIC -DPIC -o 
.libs/dtmf.o
dtmf.c: In function 'dtmf_rx':
spandsp/fast_convert.h:219:9: error: impossible constraint in 'asm'
make[4]: *** [dtmf.lo] Error 1

Attaching a patch that fixes this by omitting powerpc specific asm
on powerpcspe where those asm statements are not available.

Thanks,

Roland


[1] http://wiki.debian.org/PowerPCSPEPort


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.5.0 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -ruN spandsp-0.0.6~pre20.backup/debian/patches/fix-ftbfs-on-powerpcspe.patch spandsp-0.0.6~pre20/debian/patches/fix-ftbfs-on-powerpcspe.patch
--- spandsp-0.0.6~pre20.backup/debian/patches/fix-ftbfs-on-powerpcspe.patch	1970-01-01 01:00:00.000000000 +0100
+++ spandsp-0.0.6~pre20/debian/patches/fix-ftbfs-on-powerpcspe.patch	2012-11-18 22:22:40.952153951 +0100
@@ -0,0 +1,16 @@
+Description: Fix FTBFS on powerpcspe
+ This patch fixes FTBFS on powerpcspe by making sure powerpc optimizations
+ are not done on powerpcspe where certain asm is not available
+Author: Roland Stigge <sti...@antcom.de>
+
+--- spandsp-0.0.6~pre20.orig/src/spandsp/fast_convert.h
++++ spandsp-0.0.6~pre20/src/spandsp/fast_convert.h
+@@ -195,7 +195,7 @@ extern "C"
+     {
+         return (long int) (x);
+     }
+-#elif defined(__ppc__)  ||   defined(__powerpc__)
++#elif (defined(__ppc__)  ||   defined(__powerpc__)) && !defined(__NO_FPRS__)
+     static __inline__ long int lfastrint(register double x)
+     {
+         int res[2];
diff -ruN spandsp-0.0.6~pre20.backup/debian/patches/series spandsp-0.0.6~pre20/debian/patches/series
--- spandsp-0.0.6~pre20.backup/debian/patches/series	2012-07-01 21:48:34.000000000 +0200
+++ spandsp-0.0.6~pre20/debian/patches/series	2012-11-18 22:23:19.992163653 +0100
@@ -1,2 +1,3 @@
 serial-tests
 array_warning
+fix-ftbfs-on-powerpcspe.patch

Reply via email to