Bug#751856: libav FTBFS on arm64
Tags 751856 +patch thanks peter green wrote: This should be a better patch: https://git.libav.org/?p=libav.git;a=commitdiff;h=34fb994d9340313b0d247899a4a7a97cc010df92;hp=e780c3daafe0588e035e752c771ebfcd2201746a Can you verify that patch works for you? The build without neon is currently still in progress. The reduced feature build without neon built successfully and was uploaded to debian-ports arm64 unreleased. I'll probablly try your patch later when I come to do a full-feature build. Since the reduced feature build was uploaded build-depends for libav have become installable (partly due to the availability of the reduced feature build, some other issues also had to be dealt with). As expected the autobuild failed with the same error as my first attempt at a reduced feature build. I then applied the patch you linked and was able to successfully perform a build. Debdiff attatched and uploaded to debian-ports arm64 unreleased. Please include the patch in your next upload diff -Nru libav-10.1/debian/changelog libav-10.1/debian/changelog --- libav-10.1/debian/changelog 2014-05-11 16:31:13.0 + +++ libav-10.1/debian/changelog 2014-06-23 11:57:10.0 + @@ -1,3 +1,9 @@ +libav (6:10.1-1+arm641) unreleased; urgency=medium + + * Apply upstream patch to fix build on aarch64 with neon and pic. + + -- Peter Michael Green plugw...@debian.org Mon, 23 Jun 2014 11:56:46 + + libav (6:10.1-1) unstable; urgency=low * New upstream release 10: diff -Nru libav-10.1/debian/patches/fix-aarch64-pic.patch libav-10.1/debian/patches/fix-aarch64-pic.patch --- libav-10.1/debian/patches/fix-aarch64-pic.patch 1970-01-01 00:00:00.0 + +++ libav-10.1/debian/patches/fix-aarch64-pic.patch 2014-06-23 11:56:03.0 + @@ -0,0 +1,33 @@ +From: Martin Storsjö mar...@martin.st +Date: Thu, 29 May 2014 11:37:31 + (+0300) +Subject: aarch64: Use the correct syntax for relocations +X-Git-Url: https://git.libav.org/?p=libav.git;a=commitdiff_plain;h=34fb994d9340313b0d247899a4a7a97cc010df92;hp=e780c3daafe0588e035e752c771ebfcd2201746a + +aarch64: Use the correct syntax for relocations + +This fixes building in PIC mode with gas. The examples in the gas +manual showed using a # here even though gas itself actually didn't +support that syntax (and the gas test suite only tests it without +the extra hash sign). + +CC: libav-sta...@libav.org +Signed-off-by: Martin Storsjö mar...@martin.st +(cherry picked from commit 08cd92144e73195eecc28ed0348e66e255516b82) +Signed-off-by: Martin Storsjö mar...@martin.st +--- + +diff --git a/libavutil/aarch64/asm.S b/libavutil/aarch64/asm.S +index 94e5a84..6608472 100644 +--- a/libavutil/aarch64/asm.S b/libavutil/aarch64/asm.S +@@ -55,8 +55,8 @@ ELF .size \name, . - \name + + .macro movrel rd, val + #if CONFIG_PIC +-adrp\rd, #:pg_hi21:\val +-add \rd, \rd, #:lo12:\val ++adrp\rd, :pg_hi21:\val ++add \rd, \rd, :lo12:\val + #else + ldr \rd, =\val + #endif diff -Nru libav-10.1/debian/patches/series libav-10.1/debian/patches/series --- libav-10.1/debian/patches/series2014-05-11 16:31:13.0 + +++ libav-10.1/debian/patches/series2014-06-23 11:55:02.0 + @@ -1 +1,2 @@ 03-disable-configuration-warnings.patch +fix-aarch64-pic.patch ___ pkg-multimedia-maintainers mailing list pkg-multimedia-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers
Bug#751856: libav FTBFS on arm64
Package: libav Version: 6:10.1-1 Severity: important I've been trying to build libav for arm64 (in a user mode qemu chroot), I removed opencv, frei0r and x264 from build-depends to break the look (as suggested in README.source) gcc -I. -I/libav-10.1 -D_FORTIFY_SOURCE=2 -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -fPIC -g -MMD -MF libavcodec/aarch64/h264cmc_neon.d -MT libavcodec/aarch64/h264cmc_neon.o -c -o libavcodec/aarch64/h264cmc_neon.o /libav-10.1/libavcodec/aarch64/h264cmc_neon.S /libav-10.1/libavcodec/aarch64/h264cmc_neon.S: Assembler messages: /libav-10.1/libavcodec/aarch64/h264cmc_neon.S:391: Error: bad expression at operand 2 -- `adrp x6,#:pg_hi21:rv40bias' /libav-10.1/libavcodec/aarch64/h264cmc_neon.S:392: Error: bad expression at operand 2 -- `adrp x6,#:pg_hi21:rv40bias' /libav-10.1/libavcodec/aarch64/h264cmc_neon.S:393: Error: bad expression at operand 2 -- `adrp x6,#:pg_hi21:rv40bias' /libav-10.1/libavcodec/aarch64/h264cmc_neon.S:394: Error: bad expression at operand 2 -- `adrp x6,#:pg_hi21:rv40bias' /libav-10.1/Makefile:47: recipe for target 'libavcodec/aarch64/h264cmc_neon.o' failed make[1]: *** [libavcodec/aarch64/h264cmc_neon.o] Error 1 make[1]: Leaving directory '/libav-10.1/debian-shared' debian/rules:81: recipe for target 'build-stamp-shared' failed make: *** [build-stamp-shared] Error 2 The block of code in question looks like #if CONFIG_RV40_DECODER const rv40bias .short 0, 16, 32, 16 .short 32, 28, 32, 28 .short 0, 32, 16, 32 .short 32, 28, 32, 28 endconst h264_chroma_mc8 put, rv40 h264_chroma_mc8 avg, rv40 h264_chroma_mc4 put, rv40 h264_chroma_mc4 avg, rv40 #endif I had a look though the ubuntu patches but didn't find anything that looked immediately relavent. I'm now attempting to disable NEON to see if that makes the package build. ___ pkg-multimedia-maintainers mailing list pkg-multimedia-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers
Processed: Re: Bug#751856: libav FTBFS on arm64
Processing control commands: tag -1 fixed-upstream Bug #751856 [libav] libav FTBFS on arm64 Added tag(s) fixed-upstream. -- 751856: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751856 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems ___ pkg-multimedia-maintainers mailing list pkg-multimedia-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers
Bug#751856: libav FTBFS on arm64
Control: tag -1 fixed-upstream On Tue, Jun 17, 2014 at 5:11 AM, peter green plugw...@p10link.net wrote: I had a look though the ubuntu patches but didn't find anything that looked immediately relavent. The corresponding bug in ubuntu is: https://bugs.launchpad.net/ubuntu/+source/libav/+bug/1323144 I'm now attempting to disable NEON to see if that makes the package build. This should be a better patch: https://git.libav.org/?p=libav.git;a=commitdiff;h=34fb994d9340313b0d247899a4a7a97cc010df92;hp=e780c3daafe0588e035e752c771ebfcd2201746a Can you verify that patch works for you? -- regards, Reinhard ___ pkg-multimedia-maintainers mailing list pkg-multimedia-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers