tvm
tvm copied to clipboard
[make error] 3rdparty/libbacktrace/configure Syntax error
root@00048971l16:/tvm/tvm/build# make -j4 [ 0%] Creating directories for 'project_libbacktrace' [ 1%] Building CXX object CMakeFiles/tvm_libinfo_objs.dir/src/support/libinfo.cc.o [ 2%] No download step for 'project_libbacktrace' [ 2%] No checkout step for 'project_libbacktrace' [ 2%] No update step for 'project_libbacktrace' [ 2%] No patch step for 'project_libbacktrace' [ 2%] Performing configure step for 'project_libbacktrace' : not foundlopSoft/tvm/tvm/cmake/libs/../../3rdparty/libbacktrace/configure: 14: /mnt/d/DevelopSoft/tvm/tvm/cmake/libs/../../3rdparty/libbacktrace/configure: /mnt/d/DevelopSoft/tvm/tvm/cmake/libs/../../3rdparty/libbacktrace/configure: 30: /mnt/d/DevelopSoft/tvm/tvm/cmake/libs/../../3rdparty/libbacktrace/configure: Syntax error: newline unexpected (expecting ")") CMakeFiles/project_libbacktrace.dir/build.make:130: recipe for target 'libbacktrace/src/project_libbacktrace-stamp/project_libbacktrace-configure' failed make[2]: *** [libbacktrace/src/project_libbacktrace-stamp/project_libbacktrace-configure] Error 2 CMakeFiles/Makefile2:985: recipe for target 'CMakeFiles/project_libbacktrace.dir/all' failed make[1]: *** [CMakeFiles/project_libbacktrace.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 2%] Building CXX object CMakeFiles/tvm_objs.dir/src/arith/analyzer.cc.o [ 2%] Building CXX object CMakeFiles/tvm_objs.dir/src/arith/bound_deducer.cc.o [ 2%] Building CXX object CMakeFiles/tvm_objs.dir/src/arith/canonical_simplify.cc.o [ 2%] Built target tvm_libinfo_objs [ 2%] Building CXX object CMakeFiles/tvm_objs.dir/src/arith/const_int_bound.cc.o [ 2%] Building CXX object CMakeFiles/tvm_objs.dir/src/arith/detect_linear_equation.cc.o [ 3%] Building CXX object CMakeFiles/tvm_objs.dir/src/arith/domain_touched.cc.o [ 3%] Building CXX object CMakeFiles/tvm_objs.dir/src/arith/int_constraints.cc.o ... ... [ 91%] Building CXX object CMakeFiles/tvm_objs.dir/src/relay/backend/contrib/example_target_hooks/tir_to_runtime.cc.o [ 91%] Building CXX object CMakeFiles/tvm_objs.dir/src/contrib/hybrid/codegen_hybrid.cc.o [ 91%] Built target tvm_objs Makefile:145: recipe for target 'all' failed make: *** [all] Error 2
Environment
ubuntu 16.0.4 cmake version 3.22.3 llvm 6.0 gcc 5.4.0
I set these configs at build/config.cmake: set(USE_GRAPH_EXECUTOR ON) set(USE_PROFILER ON) set(USE_RELAY_DEBUG ON) set(USE_LLVM /usr/lib/llvm-6.0/bin/llvm-config)
I had test though cmd: "bash ./configure --help" and "dash ./configure --help" all throw Syntax error; Anyone had idear?
I came cross the same crash. is there any workaround to solve the bug?
As a workaround, we could turn off libbacktrace via the following setting in config.cmake:
set(USE_LIBBACKTRACE OFF)
And of course, mixing different toolchains in a C++ project could cause potential issues. Would be great if we could finally unify the autoconf toolchain used in libbacktrace into cmake
@jackyflame I'm having trouble reproducing this issue. I tried on a Ubuntu 16.04 VM and could not reproduce. Can you provide more information about your environment? What version of bash and sh are you using? What kind of machine are you running on? What is your architecture?
@jackyflame Are you still having this issue? Happy to help if it is still an issue.
If so, could you provide some more information to help us debug? For example: what version of bash and sh are you using, what kind of machine are you running on (Is it a VM on a popular cloud provider so I could try to reproduce on my own instance), and what your architecture is.
Hi tvm genius. I have the same issue.
macOS version: macOS Monterey Version 12.4 tvm commit: main branch 8341e33d0

mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. && make -j6

@zhyncs It appears that there was an error in your build but the amount of the build log that you have provided does not show the original error. Could you provide the full build log.
@jackyflame Are you still having this issue? Happy to help if it is still an issue.
If so, could you provide some more information to help us debug? For example: what version of bash and sh are you using, what kind of machine are you running on (Is it a VM on a popular cloud provider so I could try to reproduce on my own instance), and what your architecture is.
I got the error,how do i solve it? [ 88%] Built target tvm_objs [ 88%] Building CXX object CMakeFiles/tvm_libinfo_objs.dir/src/support/libinfo.cc.o [ 88%] Built target tvm_libinfo_objs [ 89%] Creating directories for 'project_libbacktrace' [ 89%] No download step for 'project_libbacktrace' [ 89%] No checkout step for 'project_libbacktrace' [ 89%] No update step for 'project_libbacktrace' [ 89%] No patch step for 'project_libbacktrace' [ 89%] Performing configure step for 'project_libbacktrace' /bin/sh: 1: /mnt/home/projects/litepose/tvm/3rdparty/libbacktrace/configure: not found CMakeFiles/project_libbacktrace.dir/build.make:130: recipe for target 'libbacktrace/src/project_libbacktrace-stamp/project_libbacktrace-configure' failed make[2]: *** [libbacktrace/src/project_libbacktrace-stamp/project_libbacktrace-configure] Error 127 CMakeFiles/Makefile2:174: recipe for target 'CMakeFiles/project_libbacktrace.dir/all' failed make[1]: *** [CMakeFiles/project_libbacktrace.dir/all] Error 2 Makefile:135: recipe for target 'all' failed make: *** [all] Error 2
@wolfworld6 Can you check that all submodules are up to date by running git submodule init; git submodule update
. If that does not work, can you post the full configure + build log?
@wolfworld6 Can you check that all submodules are up to date by running
git submodule init; git submodule update
. If that does not work, can you post the full configure + build log?
It works. Previously I failed for the same reason. Now I know the submodule is hided by git. git submodule init; git submodule update
works