Bug#701830: vlc: FTBFS on powerpcspe (illegal insns due to -mtune=G4)
Roland Stigge
stigge at antcom.de
Wed Feb 27 17:47:01 UTC 2013
Source: vlc
Version: 2.0.5-1
Severity: wishlist
Tags: patch sid
User: debian-powerpcspe at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vlc.patch
Type: text/x-diff
Size: 603 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20130227/e3e91e68/attachment.patch>
More information about the pkg-multimedia-maintainers
mailing list