Source: libav Version: 6:11~beta1-2 Severity: important Justification: blocker for kde builds X-Debbugs-CC: Thorsten Glaser <t...@mirbsd.de>
When I try building libav in an x32 schroot (without the build dependencies on frei0r, opencv, x264 which have also all failed to build on x32), I get this: ... /tmp/libav/libav-11~beta1/libswscale/x86/swscale_template.c: Assembler messages: /tmp/libav/libav-11~beta1/libswscale/x86/swscale_template.c:798: Error: operand type mismatch for `push' /tmp/libav/libav-11~beta1/libswscale/x86/swscale_template.c:860: Error: operand type mismatch for `push' /tmp/libav/libav-11~beta1/libswscale/x86/swscale_template.c:861: Error: operand type mismatch for `push' ... /tmp/libav/libav-11~beta1/libswscale/x86/swscale_template.c:1380: Error: operand type mismatch for `pop' /tmp/libav/libav-11~beta1/Makefile:44: recipe for target 'libswscale/x86/swscale.o' failed make[1]: *** [libswscale/x86/swscale.o] Error 1 make[1]: Leaving directory '/tmp/libav/libav-11~beta1/debian-static' debian/rules:81: recipe for target 'build-stamp-static' failed make: *** [build-stamp-static] Error 2 rm configure-stamp-static dpkg-buildpackage: error: debian/rules build gave error exit status 2 I'm attaching the debdiff I'm using for an upload to debian-ports/unreleased. You can ignore the debian/control part, and as the debian/rules changes could be considered a horrible hack, I'm not tagging this as patch. -- Daniel Schepler
diff -Nru libav-11~beta1/debian/changelog libav-11~beta1/debian/changelog --- libav-11~beta1/debian/changelog 2014-08-30 08:02:45.000000000 -0700 +++ libav-11~beta1/debian/changelog 2014-09-03 20:32:53.000000000 -0700 @@ -1,3 +1,12 @@ +libav (6:11~beta1-2+x32) unreleased; urgency=low + + * Bootstrap for x32 without cyclic dependencies on frei0r, opencv, + x264 (all of which have previously failed to build on x32, anyway). + * Set --arch='x32' instead of --arch='amd64' for x32 builds as the + inline assembly fails to build. + + -- Daniel Schepler <schep...@debian.org> Wed, 03 Sep 2014 20:32:47 -0700 + libav (6:11~beta1-2) unstable; urgency=medium [ Reinhard Tartler ] diff -Nru libav-11~beta1/debian/confflags libav-11~beta1/debian/confflags --- libav-11~beta1/debian/confflags 2014-08-10 10:17:38.000000000 -0700 +++ libav-11~beta1/debian/confflags 2014-09-03 20:31:38.000000000 -0700 @@ -95,7 +95,11 @@ endef # Common configuration flags +ifeq ($(DEB_HOST_ARCH),x32) +confflags += --arch='x32' +else confflags += --arch='$(DEB_HOST_ARCH_CPU)' +endif confflags += --enable-pthreads confflags += --enable-runtime-cpudetect confflags += --extra-version='$(DEB_VERSION)' @@ -114,6 +118,10 @@ confflags += --enable-pic endif +ifeq ($(DEB_HOST_ARCH),x32) +confflags += --enable-pic +endif + # Additional features confflags += $(call cond_enable,/usr/include/bzlib.h,bzlib) confflags += $(call cond_enable,/usr/include/dc1394/dc1394.h,libdc1394) diff -Nru libav-11~beta1/debian/control libav-11~beta1/debian/control --- libav-11~beta1/debian/control 2014-08-30 08:01:33.000000000 -0700 +++ libav-11~beta1/debian/control 2014-09-03 20:30:01.000000000 -0700 @@ -16,7 +16,7 @@ doxygen Build-Depends: debhelper (>= 9), - frei0r-plugins-dev, + frei0r-plugins-dev [!x32], libasound2-dev [linux-any], libbz2-dev, libcdio-cdda-dev, @@ -30,7 +30,7 @@ libmp3lame-dev, libopencore-amrnb-dev, libopencore-amrwb-dev, - libopencv-dev, + libopencv-dev [!x32], libopenjpeg-dev, libopus-dev (>= 1.0.1), libpulse-dev, @@ -48,7 +48,7 @@ libvorbis-dev, libvpx-dev, libx11-dev, - libx264-dev, + libx264-dev [!x32], libxext-dev, libxfixes-dev, libxvidcore-dev,