Skip to content

Error when compiling from the source #13094

@njuhang

Description

@njuhang

Actual behavior

/usr/bin/ld: CMakeFiles/tvm_runtime_objs.dir/src/runtime/logging.cc.o: in function tvm::runtime::Backtrace[abi:cxx11]()': logging.cc:(.text+0x45a): undefined reference to backtrace_full'
/usr/bin/ld: CMakeFiles/tvm_runtime_objs.dir/src/runtime/logging.cc.o: in function tvm::runtime::(anonymous namespace)::BacktraceFullCallback(void*, unsigned long, char const*, int, char const*)': logging.cc:(.text+0x1736): undefined reference to backtrace_syminfo'
/usr/bin/ld: CMakeFiles/tvm_runtime_objs.dir/src/runtime/logging.cc.o: in function _GLOBAL__sub_I_logging.cc': logging.cc:(.text.startup+0x3f): undefined reference to backtrace_create_state'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/tvm_runtime.dir/build.make:176: libtvm_runtime.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:284: CMakeFiles/tvm_runtime.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Built target tvm_objs
make: *** [Makefile:136: all] Error 2

Environment

OS: windows10 wsl, ubuntu 20.04
TVM: newest

Steps to reproduce

git clone https://github.com/apache/tvm tvm
cd 3rdparty/libbacktrace/
dos2unix *
cd ../../build
cmake ..
make -j4

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triagePRs or issues that need to be investigated by maintainers to find the right assignees to address ittype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions