I checked out the TVM repo yesterday and ran into a build error (branch main):
Scanning dependencies of target tvm_runtime
[ 38%] Linking CXX shared library libtvm_runtime.so
ld.lld: error: unknown argument '-force_load’
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [CMakeFiles/tvm_runtime.dir/build.make:181: libtvm_runtime.so] Error 1
make: *** [CMakeFiles/Makefile2:1186: CMakeFiles/tvm_runtime.dir/all] Error 2
In my config.cmake I turned on USE_LLVM, USE_NNPACK, USE_MICRO, and USE_MICRO_STANDALONE_RUNTIME. I thought it might be LLVM version issue, but the same error occurs with LLVM 14.0.0 (prebuilt) and 15.0.0git (llvm-project). My cmake version is 3.16.3.