Package: pfstmo Version: 1.4-1 Severity: wishlist Tags: patch sid User: debian-powerpc...@breakpoint.cc Usertags: powerpcspe
Hi, pfstmo currently FTBFS on powerpcspe[1] like this: powerpc-linux-gnuspe-g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/pfs-1.2 -I../../src/pfstmo/ -Wall -g -O2 -fopenmp -DBRANCH_PREDICTION -mtune=powerpc -MT pfstmo_drago03.o -MD -MP -MF .deps/pfstmo_drago03.Tpo -c -o pfstmo_drago03.o pfstmo_drago03.cpp /tmp/ccnMW8vc.s: Assembler messages: /tmp/ccnMW8vc.s:429: Error: Unrecognized opcode: `stfd' [...] Attaching a patch that fixes this by preventing "-mtune=powerpc" which leads gcc to generate asm statements only available on PowerPC w/ altivec (but not on the SPE variant). An additional autoreconf and in turn adjusting CXXFLAGS.dpatch is also necessary. Thanks, Roland [1] http://wiki.debian.org/PowerPCSPEPort -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash
--- acinclude.m4.backup 2012-11-26 11:54:04.000000000 +0100 +++ acinclude.m4 2012-11-26 11:54:27.000000000 +0100 @@ -170,7 +170,11 @@ if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then for arch in $ax_gcc_arch; do if test "x[]m4_default([$1],yes)" = xyes; then # if we require portable code - flags="-mtune=$arch" + if test "x$cputype" = xe500v2 ; then + flags="" + else + flags="-mtune=$arch" + fi # -mcpu=$arch and m$arch generate nonportable code on every arch except # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr. case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac