-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BE编译报错,还请帮忙看下 #88
Comments
提供一下系统环境,版本,gcc版本等信息 |
系统版本: |
贴一下完整的输出日志吧,你是已经编译完成thirdparty,然后使用build.sh编译palo时报的错是吧? |
是的,thirdparty已经编译完成了
CMakeError.log:
|
你看下你的系统是否有 lsb_release 这个命令,如果没有,需要安装下 |
还有 有可能需要安装 vim-common |
感谢,已经编译完成。 |
Determining if the pthread_create exist failed with the following output:
Change Dir: /root/palo/palo-master/be/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/gmake" "cmTC_709a2/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_709a2.dir/build.make CMakeFiles/cmTC_709a2.dir/build
gmake[1]: Entering directory
/root/palo/palo-master/be/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_709a2.dir/CheckSymbolExists.c.o /usr/bin/cc -o CMakeFiles/cmTC_709a2.dir/CheckSymbolExists.c.o -c /root/palo/palo-master/be/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_709a2 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_709a2.dir/link.txt --verbose=1 /usr/bin/cc CMakeFiles/cmTC_709a2.dir/CheckSymbolExists.c.o -o cmTC_709a2 -rdynamic CMakeFiles/cmTC_709a2.dir/CheckSymbolExists.c.o: In function
main':CheckSymbolExists.c:(.text+0x16): undefined reference to
pthread_create' collect2: error: ld returned 1 exit status gmake[1]: *** [cmTC_709a2] Error 1 gmake[1]: Leaving directory
/root/palo/palo-master/be/build/CMakeFiles/CMakeTmp'gmake: *** [cmTC_709a2/fast] Error 2
File /root/palo/palo-master/be/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/palo/palo-master/be/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/gmake" "cmTC_69589/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_69589.dir/build.make CMakeFiles/cmTC_69589.dir/build
gmake[1]: Entering directory
/root/palo/palo-master/be/build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_69589.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_69589.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c Linking C executable cmTC_69589 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_69589.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTC_69589.dir/CheckFunctionExists.c.o -o cmTC_69589 -rdynamic -lpthreads /usr/bin/ld: cannot find -lpthreads collect2: error: ld returned 1 exit status gmake[1]: *** [cmTC_69589] Error 1 gmake[1]: Leaving directory
/root/palo/palo-master/be/build/CMakeFiles/CMakeTmp'gmake: *** [cmTC_69589/fast] Error 2
The text was updated successfully, but these errors were encountered: