You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/05/13 04:01:03 UTC
[GitHub] [tvm] zyh3826 commented on issue #8033: build tvm CMakeFiles/Makefile2:136: recipe for target 'CMakeFiles/tvm_objs.dir/all' failed
zyh3826 commented on issue #8033:
URL: https://github.com/apache/tvm/issues/8033#issuecomment-840276907
in build/CMakeFiles/CMakeError.log, there are also some error msgs:
> Determining if the pthread_create exist failed with the following output:
Change Dir: /root/tvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/gmake" "cmTC_c5039/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_c5039.dir/build.make CMakeFiles/cmTC_c5039.dir/build
gmake[1]: Entering directory '/root/tvm/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_c5039.dir/CheckSymbolExists.c.o
/usr/bin/cc -fPIC -o CMakeFiles/cmTC_c5039.dir/CheckSymbolExists.c.o -c /root/tvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_c5039
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_c5039.dir/link.txt --verbose=1
/usr/bin/cc -fPIC -rdynamic CMakeFiles/cmTC_c5039.dir/CheckSymbolExists.c.o -o cmTC_c5039
CMakeFiles/cmTC_c5039.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x1b): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_c5039.dir/build.make:86: recipe for target 'cmTC_c5039' failed
gmake[1]: *** [cmTC_c5039] Error 1
gmake[1]: Leaving directory '/root/tvm/build/CMakeFiles/CMakeTmp'
Makefile:121: recipe for target 'cmTC_c5039/fast' failed
gmake: *** [cmTC_c5039/fast] Error 2
File /root/tvm/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /root/tvm/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/gmake" "cmTC_ff4ce/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_ff4ce.dir/build.make CMakeFiles/cmTC_ff4ce.dir/build
gmake[1]: Entering directory '/root/tvm/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_ff4ce.dir/CheckFunctionExists.c.o
/usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_ff4ce.dir/CheckFunctionExists.c.o -c /usr/local/share/cmake-3.13/Modules/CheckFunctionExists.c
Linking C executable cmTC_ff4ce
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ff4ce.dir/link.txt --verbose=1
/usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_ff4ce.dir/CheckFunctionExists.c.o -o cmTC_ff4ce -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_ff4ce.dir/build.make:86: recipe for target 'cmTC_ff4ce' failed
gmake[1]: *** [cmTC_ff4ce] Error 1
gmake[1]: Leaving directory '/root/tvm/build/CMakeFiles/CMakeTmp'
Makefile:121: recipe for target 'cmTC_ff4ce/fast' failed
gmake: *** [cmTC_ff4ce/fast] 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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org