hellokeey opened a new issue, #13482:
URL: https://github.com/apache/tvm/issues/13482
cross-compile for aarch64:build errors occurred
cmake .. \
-DCMAKE_SYSTEM_NAME=Linux \
-DCMAKE_SYSTEM_VERSION=1 \
-DCMAKE_C_COMPILER=/usr/bin/aarch64-linux-gnu-gcc \
-DCMAKE_CXX_COMPILER=/usr/bin/aarch64-linux-gnu-g++ \
-DCMAKE_FIND_ROOT_PATH=/usr/aarch64-linux-gnu \
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
-DMACHINE_NAME=aarch64-linux-gnu
**make runtime -j4**
errors when final link with ld.
/home/sea/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld:
host_standalone_crt/libmicrotvm_rpc_common.a(framing.o): Relocations in
generic ELF (EM: 62)
host_standalone_crt/libmicrotvm_rpc_common.a: error adding symbols: File in
wrong format
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
make[3]: *** [CMakeFiles/tvm_runtime.dir/build.make:168:libtvm_runtime.so]
error 1
make[2]: *** [CMakeFiles/Makefile2:255:CMakeFiles/tvm_runtime.dir/all] error
2
make[1]: *** [CMakeFiles/Makefile2:346:CMakeFiles/runtime.dir/rule] error 2
make: *** [Makefile:282:runtime] error 2
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]