impala-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yu feng <olaptes...@gmail.com>
Subject Re: Compile error in Redhat 7.x
Date Wed, 30 Aug 2017 06:03:58 GMT
It is weird, I can not find /usr/lib/x86_64-linux-gnu/ in RHEL 6.X or 7.x,
and It is obvious that we need newer GLIBC version and we only have glibc
2.12 on RHEL 6.x

hzfengyu@hadoop1107:~/source/impala-kudu$ ldd --version
ldd (GNU libc) 2.12
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

I recompile it in RHEL 7.x and which have libc 2.17 and get the error :

-- Setup toolchain link flags
-Wl,-rpath,/home/impala/source/impala-kudu/toolchain/gcc-4.9.2/lib64
-L/home/impala/source/impala-kudu/toolchain/gcc-4.9.2/lib64
-- The CXX compiler identification is GNU 4.9.2
-- Check for working CXX compiler:
/home/impala/source/impala-kudu/toolchain/gcc-4.9.2/bin/g++
-- Check for working CXX compiler:
/home/impala/source/impala-kudu/toolchain/gcc-4.9.2/bin/g++ -- broken
CMake Error at
toolchain/cmake-3.2.3-p1/share/cmake-3.2/Modules/CMakeTestCXXCompiler.cmake:54
(message):
  The C++ compiler
  "/home/impala/source/impala-kudu/toolchain/gcc-4.9.2/bin/g++" is not able
  to compile a simple test program.

  It fails with the following output:

   Change Dir: /home/impala/source/impala-kudu/CMakeFiles/CMakeTmp



  Run Build Command:"/usr/bin/gmake" "cmTryCompileExec4017731048/fast"

  /usr/bin/gmake -f CMakeFiles/cmTryCompileExec4017731048.dir/build.make
  CMakeFiles/cmTryCompileExec4017731048.dir/build

  gmake[1]: Entering directory
  `/home/impala/source/impala-kudu/CMakeFiles/CMakeTmp'

  /home/impala/source/impala-kudu/toolchain/cmake-3.2.3-p1/bin/cmake -E
  cmake_progress_report
  /home/impala/source/impala-kudu/CMakeFiles/CMakeTmp/CMakeFiles 1

  Building CXX object
  CMakeFiles/cmTryCompileExec4017731048.dir/testCXXCompiler.cxx.o

  /home/impala/source/impala-kudu/toolchain/gcc-4.9.2/bin/g++ -o
  CMakeFiles/cmTryCompileExec4017731048.dir/testCXXCompiler.cxx.o -c
  /home/impala/source/impala-kudu/CMakeFiles/CMakeTmp/testCXXCompiler.cxx

  Linking CXX executable cmTryCompileExec4017731048

  /home/impala/source/impala-kudu/toolchain/cmake-3.2.3-p1/bin/cmake -E
  cmake_link_script CMakeFiles/cmTryCompileExec4017731048.dir/link.txt
  --verbose=1

  /home/impala/source/impala-kudu/toolchain/gcc-4.9.2/bin/g++
  CMakeFiles/cmTryCompileExec4017731048.dir/testCXXCompiler.cxx.o -o
  cmTryCompileExec4017731048 -rdynamic

  gmake[1]: Leaving directory
  `/home/impala/source/impala-kudu/CMakeFiles/CMakeTmp'



/home/impala/source/impala-kudu/toolchain/gcc-4.9.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib64/libstdc++.so:
  undefined reference to `__cxa_thread_atexit_impl@GLIBC_2.18'

  collect2: error: ld returned 1 exit status

  gmake[1]: *** [cmTryCompileExec4017731048] Error 1

  gmake: *** [cmTryCompileExec4017731048/fast] Error 2





However, my finally goal it build it and run impala cluster in REHL 6.5,
Please help it someone have this experience´╝î Thanks very much.

2017-08-30 12:06 GMT+08:00 Tim Armstrong <tarmstrong@cloudera.com>:

> Impala definitely should build and run on RHEL6.x. We do most of our
> testing on CentOS 6.
>
> I'm not sure if this will help, but when building on Ubuntu we generally
> need to set LD_LIBRARY_PATH to work around this problem
>
> export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH
>
>
>
>
> On Tue, Aug 29, 2017 at 8:15 PM, yu feng <olaptestyu@gmail.com> wrote:
>
>> Hi, I try to compile impala in Red Hat Enterprise Linux Server release 6.5
>> (Santiago), and I get thje error :
>>
>> cmake: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by
>> /home/hzfengyu/source/impala-kudu/toolchain/gcc-4.9.2/lib64/
>> libstdc++.so.6)
>> cmake: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by
>> /home/hzfengyu/source/impala-kudu/toolchain/gcc-4.9.2/lib64/
>> libstdc++.so.6)
>> cmake: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by
>> /home/hzfengyu/source/impala-kudu/toolchain/gcc-4.9.2/lib64/
>> libstdc++.so.6)
>> cmake: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by
>> /home/hzfengyu/source/impala-kudu/toolchain/gcc-4.9.2/lib64/
>> libgcc_s.so.1)
>> Error in /home/hzfengyu/source/impala-kudu/bin/make_impala.sh at line
>> 125:
>> cmake . ${CMAKE_ARGS[@]}
>> Error in buildall.sh at line 319: "$IMPALA_HOME/bin/make_impala.sh"
>> ${MAKE_IMPALA_ARGS}
>>
>> change GLIBC have a great influence, So do I have any other way finish it.
>>
>> I just want to compile and run impala cluster beyond Red Hat Enterprise
>> Linux Server release 6.5 .
>>
>> Thanks a lot.
>>
>
>

Mime
View raw message