aarch64 assembly code failing when cross-compiling with android-ndk (r21d)
Issue #603
new
Trying to build the library for Android aarch64
, targeting API 24.
[51/68] Generating asm.S.o
FAILED: asm.S.o
clang++ -fPIC -c libx265/src/source/common/aarch64/asm.S -o asm.S.o
libx265/src/source/common/aarch64/asm.S:24:1: error: unknown directive
.arch armv8-a
^
ninja: build stopped: subcommand failed.
A workaround, is to pass
--target=aarch64-linux-android24 -fno-integrated-as
.
I’m not clear on whether to use the workaround, as Google has recommended to move away from using -fno-integrated-as
, although it works for now.
https://android.googlesource.com/platform/ndk/+/master/docs/ClangMigration.md
Is android-ndk going to be supported in the build system?