How to build libtvm_runtime.so for armeabi-v7a or arm64-v8a?

I tried to build tvm for arm64-v8a, here is my command:

export AR_host="ar"
export CC_host="gcc"
export CXX_host="g++"
export LINK_host="g++"
export ARCH=arm64
export PATH=/home/dai/android-toolchain-arm64/bin:$PATH
export CROSS_COMPILE=aarch64-linux-android-
export CC=/home/dai/android-toolchain-arm64/bin/aarch64-linux-android-gcc
export CXX=/home/dai/android-toolchain-arm64/bin/aarch64-linux-android-g++
export LD=/home/dai/android-toolchain-arm64/bin/aarch64-linux-android-ld
export AR=/home/dai/android-toolchain-arm64/bin/aarch64-linux-android-ar
export AS=/home/dai/android-toolchain-arm64/bin/aarch64-linux-android-as
export RANLIB=/home/dai/android-toolchain-arm64/bin/aarch64-linux-android-ranlib
make clean
make -j4

When I linked the libtvm_runtime.so in an arm64-v8a app, I got this error:

/jniLibs/arm64-v8a/libtvm_runtime.so: error adding symbols: File in wrong format

I found the libtvm_runtime.so file can be linked in x86_64 app.

How could I build libtvm_runtime.so for armeabi-v7a or arm64-v8a?

Looking forward to your reply.

Hi,do you solve the problem?I come with the same bug.

Personally I build native on arm and arm64. I guess I could make binaries available if it would help. Reasonably capable 32 and 64 bit arm dev boards can certainly be found for a modest price.

Hi! Do you have update on this topic? Do you solve problem?