You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "都真全 (JIRA)" <ji...@apache.org> on 2019/04/10 07:51:00 UTC

[jira] [Created] (IMPALA-8404) failed when i build Impala in centos7

都真全 created IMPALA-8404:
---------------------------

             Summary: failed when i build Impala in centos7 
                 Key: IMPALA-8404
                 URL: https://issues.apache.org/jira/browse/IMPALA-8404
             Project: IMPALA
          Issue Type: Bug
          Components: Backend
    Affects Versions: Impala 3.2.0
         Environment: centos7  Impala3.2 
            Reporter: 都真全


when I builded impala under centos7 through the documents:https://cwiki.apache.org/confluence/display/IMPALA/Building+Impala,I got the flowing problem:
{code:java}
--insertions_out: protoc-gen-insertions: Plugin killed by signal 11.
make[3]: *** [be/generated-sources/gen-cpp/row_batch.pb.cc] Error 1
make[2]: *** [common/protobuf/CMakeFiles/PROTO_row_batch.proto.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
--insertions_out: protoc-gen-insertions: Plugin killed by signal 11.
make[3]: *** [be/generated-sources/gen-cpp/common.pb.cc] Error 1
make[2]: *** [common/protobuf/CMakeFiles/PROTO_common.proto.dir/all] Error 2
--insertions_out: protoc-gen-insertions: Plugin killed by signal 11.
make[3]: *** [be/src/kudu/util/histogram.pb.cc] Error 1
make[2]: *** [be/src/kudu/util/CMakeFiles/histogram_proto.dir/all] Error 2
--insertions_out: protoc-gen-insertions: Plugin killed by signal 11.
[ 16%] Built target thrift-deps
make[3]: *** [be/src/kudu/util/pb_util.pb.cc] Error 1
make[2]: *** [be/src/kudu/util/CMakeFiles/pb_util_proto.dir/all] Error 2
--insertions_out: protoc-gen-insertions: Plugin killed by signal 11.
make[3]: *** [be/src/kudu/util/maintenance_manager.pb.cc] Error 1
make[2]: *** [be/src/kudu/util/CMakeFiles/maintenance_manager_proto.dir/all] Error 2
--insertions_out: protoc-gen-insertions: Plugin killed by signal 11.
make[3]: *** [be/src/kudu/util/version_info.pb.cc] Error 1
make[2]: *** [be/src/kudu/util/CMakeFiles/version_info_proto.dir/all] Error 2
make[1]: *** [be/src/service/CMakeFiles/impalad.dir/rule] Error 2
make: *** [impalad] Error 2
{code}
And then I check the CMakeErrorlog, I got the flowwing problem:
{code:java}
Run Build Command:"/usr/bin/gmake" "cmTC_2a4fc/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_2a4fc.dir/build.make CMakeFiles/cmTC_2a4fc.dir/build
gmake[1]: Entering directory `/root/zqdou/impala3.2-hadoop3.0/impala/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_2a4fc.dir/CheckSymbolExists.c.o
/root/zqdou/impala3.2-hadoop3.0/impala/toolchain/gcc-4.9.2/bin/gcc -o CMakeFiles/cmTC_2a4fc.dir/CheckSymbolExists.c.o -c /root/zqdou/impala3.2-hadoop3.0/impala/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_2a4fc
/root/zqdou/impala3.2-hadoop3.0/impala/toolchain/cmake-3.8.2-p1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2a4fc.dir/link.txt --verbose=1
/root/zqdou/impala3.2-hadoop3.0/impala/toolchain/gcc-4.9.2/bin/gcc -rdynamic CMakeFiles/cmTC_2a4fc.dir/CheckSymbolExists.c.o -o cmTC_2a4fc
CMakeFiles/cmTC_2a4fc.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_2a4fc] Error 1
gmake[1]: Leaving directory `/root/zqdou/impala3.2-hadoop3.0/impala/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_2a4fc/fast] Error 2

File /root/zqdou/impala3.2-hadoop3.0/impala/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
}
{code}
It seems the pthread lib is missed because uninstalled or unwirded.But,when I check the /usr/lib/, the pthread.so/pthread.a  is available.
{code:java}
-rwxr-xr-x 1 root root 129956 Nov 20 2015 libpthread-2.17.so
-rw-r--r-- 1 root root 153162 Apr 10 14:28 libpthread.a
lrwxrwxrwx 1 root root 24 Apr 10 11:22 libpthread.so -> /usr/lib64/libpthread.so
lrwxrwxrwx 1 root root 18 Apr 23 2018 libpthread.so.0 -> libpthread-2.17.so{code}
This problem is really puzzled.Any sloution is appreciating....



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)