impala-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Apple <jbap...@cloudera.com>
Subject Re: Impala build error with libgflags-dev installed
Date Mon, 17 Oct 2016 20:25:26 GMT
Thanks! Can you file a bug for this?

On Mon, Oct 17, 2016 at 12:01 PM, Yonghyun Hwang <yonghyun@cloudera.com> wrote:
> 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
View raw message