impala-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonghyun Hwang <yongh...@cloudera.com>
Subject Impala build error with libgflags-dev installed
Date Mon, 17 Oct 2016 19:01:35 GMT
Impala build sees an error if "libgflags-dev" package  is already installed
in a machine. Here is the error.

$ source bin/impala-config.sh && buildall.sh -skiptests -notests
...
...
*Linking CXX shared library* ../../build/debug/gutil/libgutil.so
/home/impala/Impala/toolchain/binutils-2.26-p1/bin/ld:
/usr/lib/x86_64-linux-gnu/libgflags.a(libgflags_la-gflags.o): relocation
R_X86_64_32 against `.rodata' can not be used when making a shared object;
recompile with -fPIC
*/usr/lib/x86_64-linux-gnu/libgflags.a*: *error adding symbols: Bad value*
collect2: error: ld returned 1 exit status
make[3]: *** [be/build/debug/gutil/libgutil.so] Error 1

$ apt search libgflags-dev | grep installed

libgflags-dev/trusty,now 2.0-1.1ubuntu1 amd64 [installed]

$ apt-file list libgflags-dev | grep libgflags.a
libgflags-dev:* /usr/lib/x86_64-linux-gnu/libgflags.a*


I think cmake picks up libgflags.a from "libgflags-dev" instead of that
from ${IMPALA_HOME}/toolchain/gflags-2.0, which causes the build failure.


-Yonghyun

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message