xiebaiyuan edited a comment on issue #7705: URL: https://github.com/apache/tvm/issues/7705#issuecomment-810921348
> I've pushed a change on my branch. Could you try again? > > The issue was that cmake resolves `/usr/bin/cc` to a specific compiler + flags on macOS, but does not give you any way to access these flags. @tqchen sorry i forgot to open libbackstrace use this commit : commit c18319ca63bfc60b3d8b01f8fd2216f6c1967e4e (HEAD -> fix_libbacktrace_macos, origin/fix_libbacktrace_macos) Author: Tristan Konolige <[email protected]> Date: Thu Mar 25 09:58:01 2021 -0700 detect bad macos compile and use the correct one ============ [ 20%] Linking CXX shared library libtvm_runtime.dylib ld: warning: ignoring file libbacktrace/lib/libbacktrace.a, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 ) Undefined symbols for architecture x86_64: "_backtrace_create_state", referenced from: __GLOBAL__sub_I_logging.cc in logging.cc.o "_backtrace_full", referenced from: tvm::runtime::Backtrace() in logging.cc.o "_backtrace_syminfo", referenced from: tvm::runtime::(anonymous namespace)::BacktraceFullCallback(void*, unsigned long, char const*, int, char const*) in logging.cc.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [libtvm_runtime.dylib] Error 1 make[1]: *** [CMakeFiles/tvm_runtime.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... -- 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. For queries about this service, please contact Infrastructure at: [email protected]
