Source: vlc
Version: 2.0.5-1
Severity: wishlist
Tags: patch sid
User: debian-powerpc...@breakpoint.cc
Usertags: powerpcspe

Hi,

vlc FTBFS on powerpcspe[1] like this:

[...]
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. 
-DMODULE_STRING=\"libvlc\" -I../include -I../include -D_FORTIFY_SOURCE=2 -g -O2 
-fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security 
-Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast 
-Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var 
-Werror-implicit-function-declaration -pipe -fvisibility=hidden -ffast-math 
-funroll-loops -fomit-frame-pointer -mtune=G4 -MT error.lo -MD -MP -MF 
.deps/error.Tpo -c error.c  -fPIC -DPIC -o .libs/error.o
{standard input}: Assembler messages:
{standard input}:434: Error: Unrecognized opcode: `stfd'
{standard input}:435: Error: Unrecognized opcode: `stfd'
{standard input}:436: Error: Unrecognized opcode: `stfd'
{standard input}:437: Error: Unrecognized opcode: `stfd'
{standard input}:438: Error: Unrecognized opcode: `stfd'
{standard input}:439: Error: Unrecognized opcode: `stfd'
{standard input}:440: Error: Unrecognized opcode: `stfd'
{standard input}:441: Error: Unrecognized opcode: `stfd'
make[2]: *** [error.lo] Error 1
make[1]: *** [override_dh_auto_configure] Error 2
make[2]: Leaving directory `/«PKGBUILDDIR»/lib'
make[1]: Leaving directory `/«PKGBUILDDIR»'
make: *** [build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2

As you can see above, -mtune=G4 is used by default, leading to the above
illegal instructions. The attached patch fixes this by enabling altivec only on
powerpc _except_ powerpcspe, and doing "confflags += --with-tuning=8548" which
is propagated to gcc as "-mtune=8548" on powerpcspe.

Thanks,

Roland


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

-- System Information:
Debian Release: 7.0
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: powerpcspe (ppc)

Kernel: Linux 3.8.0 (SMP w/2 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
--- vlc-2.0.5/debian/rules.backup	2013-02-27 11:42:44.417931459 +0100
+++ vlc-2.0.5/debian/rules	2013-02-27 12:58:16.251057655 +0100
@@ -194,13 +194,18 @@
 endif
 
 # PowerPC specific optimizations
-ifneq ($(filter $(DEB_HOST_ARCH_CPU),powerpc),)
+ifeq ($(filter powerpc,$(DEB_HOST_ARCH_CPU))-$(filter powerpcspe,$(DEB_HOST_ARCH)),powerpc-)
 confflags += --enable-altivec
 else
 confflags += --disable-altivec
 removeplugins += altivec
 endif
 
+# PowerPCSPE specific optimizations
+ifeq ($(DEB_HOST_ARCH),powerpcspe)
+confflags += --with-tuning=8548
+endif
+
 %:
 	dh $@ --parallel --with autoreconf
 
_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to