Hi folks, Many of you probably have stopped full building target x86 Android on your macOS devices due to very strange linker issues to do with symbol relocation. That's really sad because by far the most efficient target for testing and local Android iteration is an x86 emulator.
I'm pleased to say that with the help of :lina, :agi, and :rbarker, we finally got to the bottom of this! Now that Bug 1489443 [1] has stuck, this should Just Work. So: reinsert ac_add_options --target=i686-linux-android into your mozconfigs! While we're here, I also recommend using Mozilla's clang toolchain and the `lld` linker rather than the NDK toolchain. `lld` is _much_ faster than the NDK linker. Set that up like: ./mach artifact toolchain --from-build macosx64-clang && mv clang ~/.mozbuild/macosx64-clang-6 and include CC="$HOME/.mozbuild/macosx64-clang-6/bin/clang" CXX="$HOME/.mozbuild/macosx64-clang-6/bin/clang++" ac_add_options --enable-linker=lld in your mozconfig. (It's on my TODO list to revise the Android build documentation [2] with these recommendations.) Happy x86 emulating! Nick [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1489443 [2] https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Simple_Firefox_for_Android_build
_______________________________________________ mobile-firefox-dev mailing list mobile-firefox-dev@mozilla.org https://mail.mozilla.org/listinfo/mobile-firefox-dev