Package: sfst Version: 1.2.0-1.2 Severity: wishlist Tags: patch sid User: debian-powerpc...@breakpoint.cc Usertags: powerpcspe
Hi, sfst FTBFS on powerpcspe[1] like this: [...] checking whether make sets $(MAKE)... yes checking Compilation architecture: PPC, i686, x86_64, Other... PowerPC checking for powerpc-linux-gnuspe-g++... powerpc-linux-gnuspe-g++ checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables See `config.log' for more details. make: *** [config.status] Error 77 dpkg-buildpackage: error: debian/rules build gave error exit status 2 [...] I'm attaching a patch that fixes this by only adding the -maltivec option on "normal" powerpc, not in the powerpcspe case. An additional autoreconf is necessary. Thanks in advance, Roland [1] http://wiki.debian.org/PowerPCSPEPort -- System Information: Debian Release: 7.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.7.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
--- sfst-1.2.0/configure.ac.orig 2008-06-12 21:41:14.000000000 +0200 +++ sfst-1.2.0/configure.ac 2013-02-24 00:11:07.010522536 +0100 @@ -53,8 +53,21 @@ if test x$ARCH = xppc then AC_MSG_RESULT([PowerPC]) - CFLAGS="-Wall -ansi -mpowerpc -maltivec -fno-pic -fomit-frame-pointer $CFLAGS" - CXXFLAGS="-Wall -ansi -mpowerpc -maltivec -fno-pic -fomit-frame-pointer $CXXFLAGS" + CFLAGS="-Wall -ansi -mpowerpc -fno-pic -fomit-frame-pointer $CFLAGS" + CXXFLAGS="-Wall -ansi -mpowerpc -fno-pic -fomit-frame-pointer $CXXFLAGS" + AC_COMPILE_IFELSE([ +#if defined(__GNUC__) && (__GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 4)) +#error "Need GCC >= 3.4 for sane altivec support" +#endif +#include <altivec.h> +int main () { + vector unsigned int v = vec_splat_u32 (1); + v = vec_sub (v, v); + return 0; +}], [ + CFLAGS="-maltivec $CFLAGS" + CXXFLAGS="-maltivec $CXXFLAGS" +],) else if test x$ARCH = xi686 then