You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/07/17 06:04:29 UTC

[GitHub] [incubator-doris] zhangchangwei opened a new issue #4113: 源码编译报错

zhangchangwei opened a new issue #4113:
URL: https://github.com/apache/incubator-doris/issues/4113


   /opt/apache-doris/apache-doris-0.12.0/be/src/common/logconfig.cpp: In function ‘bool doris::init_glog(const char*, bool)’:
   /opt/apache-doris/apache-doris-0.12.0/be/src/common/logconfig.cpp:68:5: error: ‘FLAGS_log_filenum_quota’ was not declared in this scope
        FLAGS_log_filenum_quota = config::sys_log_roll_num;
        ^
   /opt/apache-doris/apache-doris-0.12.0/be/src/common/logconfig.cpp:99:9: error: ‘FLAGS_log_split_method’ was not declared in this scope
            FLAGS_log_split_method = "day";
            ^
   /opt/apache-doris/apache-doris-0.12.0/be/src/common/logconfig.cpp:102:9: error: ‘FLAGS_log_split_method’ was not declared in this scope
            FLAGS_log_split_method = "hour";
            ^
   /opt/apache-doris/apache-doris-0.12.0/be/src/common/logconfig.cpp:105:9: error: ‘FLAGS_log_split_method’ was not declared in this scope
            FLAGS_log_split_method = "size";
            ^
   make[2]: *** [src/common/CMakeFiles/Common.dir/logconfig.cpp.o] Error 1
   make[1]: *** [src/common/CMakeFiles/Common.dir/all] Error 2
   make[1]: *** Waiting for unfinished jobs....
   [  1%] Building CXX object src/agent/CMakeFiles/Agent.dir/heartbeat_server.cpp.o
   [  1%] Building CXX object src/agent/CMakeFiles/Agent.dir/task_worker_pool.cpp.o
   [  1%] Building CXX object src/agent/CMakeFiles/Agent.dir/utils.cpp.o
   [  1%] Building CXX object src/agent/CMakeFiles/Agent.dir/cgroups_mgr.cpp.o
   [  2%] Building CXX object src/agent/CMakeFiles/Agent.dir/topic_subscriber.cpp.o
   [  2%] Building CXX object src/agent/CMakeFiles/Agent.dir/user_resource_listener.cpp.o
   [  2%] Linking CXX static library libAgent.a
   [  2%] Built target Agent
   make: *** [all] Error 2
   
   
   
   
   详情日志如下:
   File /opt/apache-doris/apache-doris-0.12.0/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: /opt/apache-doris/apache-doris-0.12.0/be/build/CMakeFiles/CMakeTmp
   
   Run Build Command:"/usr/bin/gmake" "cmTC_13965/fast"
   /usr/bin/gmake -f CMakeFiles/cmTC_13965.dir/build.make CMakeFiles/cmTC_13965.dir/build
   gmake[1]: Entering directory `/opt/apache-doris/apache-doris-0.12.0/be/build/CMakeFiles/CMakeTmp'
   Building C object CMakeFiles/cmTC_13965.dir/CheckFunctionExists.c.o
   /usr/local/bin/../bin/gcc   -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_13965.dir/CheckFunctionExists.c.o   -c /usr/local/share/cmake-3.9/Modules/CheckFunctionExists.c
   Linking C executable cmTC_13965
   /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_13965.dir/link.txt --verbose=1
   /usr/local/bin/../bin/gcc  -DCHECK_FUNCTION_EXISTS=pthread_create    -rdynamic CMakeFiles/cmTC_13965.dir/CheckFunctionExists.c.o  -o cmTC_13965 -lpthreads 
   /usr/bin/ld: cannot find -lpthreads
   collect2: error: ld returned 1 exit status
   gmake[1]: *** [cmTC_13965] Error 1
   gmake[1]: Leaving directory `/opt/apache-doris/apache-doris-0.12.0/be/build/CMakeFiles/CMakeTmp'
   gmake: *** [cmTC_13965/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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] francisoliverlee commented on issue #4113: 源码编译报错

Posted by GitBox <gi...@apache.org>.
francisoliverlee commented on issue #4113:
URL: https://github.com/apache/incubator-doris/issues/4113#issuecomment-662786957


   @zhangchangwei 
   try compile use docker, so easy.
   [how-to-build-doris-on-docker](http://doris.incubator.apache.org/master/zh-CN/installing/compilation.html)


----------------------------------------------------------------
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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] zhangchangwei commented on issue #4113: 源码编译报错

Posted by GitBox <gi...@apache.org>.
zhangchangwei commented on issue #4113:
URL: https://github.com/apache/incubator-doris/issues/4113#issuecomment-662797890


   thks,i have tried,it's ok
   
   联系人:张长伟
   公司:国网汇通金财(北京)信息科技有限公司
   公司地址:北京西城区广安门内大街311号祥龙商务大厦一座
   联系邮箱:zhangchangwei@sgec.sgcc.com.cn
   
   > 在 2020年7月23日,10:14,francis lee <no...@github.com> 写道:
   > 
   > 
   > @zhangchangwei
   > try compile use docker, so easy.
   > how-to-build-doris-on-docker
   > 
   > —
   > You are receiving this because you were mentioned.
   > Reply to this email directly, view it on GitHub, or unsubscribe.
   


----------------------------------------------------------------
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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] francisoliverlee commented on issue #4113: 源码编译报错

Posted by GitBox <gi...@apache.org>.
francisoliverlee commented on issue #4113:
URL: https://github.com/apache/incubator-doris/issues/4113#issuecomment-663098881


   @zhangchangwei ok


----------------------------------------------------------------
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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] vagetablechicken commented on issue #4113: 源码编译报错

Posted by GitBox <gi...@apache.org>.
vagetablechicken commented on issue #4113:
URL: https://github.com/apache/incubator-doris/issues/4113#issuecomment-660902383


   ```
   /opt/apache-doris/apache-doris-0.12.0/be/src/common/logconfig.cpp:68:5: error: ‘FLAGS_log_filenum_quota’ was not declared in this scope
   ```
   So you'd better to check the glog header "glog/logging.h". It should have `DECLARE_int32(log_filenum_quota);`.


----------------------------------------------------------------
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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org