On Tue, Feb 07, 2017 at 02:12:00PM +0900, Mike Hommey wrote: > Okay, that one was fixed upstream in > https://bugzilla.mozilla.org/show_bug.cgi?id=1257055
> Can you try applying the patch there and see how things go from there? > (I'd rather avoid doing multiple uploads if it turns out not to be > sufficient, which I suspect might be the case). The patch needed a bit of changing but after applying and compiling, firefox now indeed works on arm64. Thanks. Build package at: https://people.debian.org/~riku/firefox/ and debdiff attached.
diff -Nru firefox-esr-45.7.0esr/debian/patches/porting/Bug-1257055-use-aarch64-atomics.patch firefox-esr-45.7.0esr/debian/patches/porting/Bug-1257055-use-aarch64-atomics.patch --- firefox-esr-45.7.0esr/debian/patches/porting/Bug-1257055-use-aarch64-atomics.patch 1970-01-01 00:00:00.000000000 +0000 +++ firefox-esr-45.7.0esr/debian/patches/porting/Bug-1257055-use-aarch64-atomics.patch 2017-02-07 07:52:38.000000000 +0000 @@ -0,0 +1,26 @@ +From: Makoto Kato <m_k...@ga2.so-net.ne.jp> +Subject: Bug 1257055 - Use jit/arm64/Architecture-arm64.h on non-JIT aarch64. r=lth + +MozReview-Commit-ID: EmzEDleNc7E +--- a/js/src/jit/AtomicOperations.h ++++ b/js/src/jit/AtomicOperations.h +@@ -304,6 +304,8 @@ + || defined(__ppc64le__) || defined(__PPC64LE__) \ + || defined(__ppc__) || defined(__PPC__) + # include "jit/none/AtomicOperations-ppc.h" ++#elif defined(__aarch64__) ++# include "jit/arm64/AtomicOperations-arm64.h" + #elif defined(JS_CODEGEN_NONE) + # include "jit/none/AtomicOperations-none.h" + #elif defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64) +--- a/js/src/jit/arm64/AtomicOperations-arm64.h ++++ b/js/src/jit/arm64/AtomicOperations-arm64.h +@@ -12,8 +12,6 @@ + #include "mozilla/Assertions.h" + #include "mozilla/Types.h" + +-#include "jit/arm64/Architecture-arm64.h" +- + inline bool + js::jit::AtomicOperations::isLockfree8() + { diff -Nru firefox-esr-45.7.0esr/debian/patches/series firefox-esr-45.7.0esr/debian/patches/series --- firefox-esr-45.7.0esr/debian/patches/series 2017-02-05 22:20:31.000000000 +0000 +++ firefox-esr-45.7.0esr/debian/patches/series 2017-02-07 07:43:52.000000000 +0000 @@ -26,3 +26,4 @@ debian-hacks/Work-around-binutils-assertion-on-mips.patch debian-hacks/Allow-unsigned-addons-in-usr-lib-share-mozilla-exten.patch debian-hacks/Set-program-name-from-the-remoting-name.patch +porting/Bug-1257055-use-aarch64-atomics.patch