Impala build sees an error if "libgflags-dev" package  is already installed
in a machine. Here is the error.

$ source bin/ && -skiptests -notests
*Linking CXX shared library* ../../build/debug/gutil/
/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/] 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.


Reply via email to