Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How can I fix an Impala 1.4.0 compile error?

avatar
Explorer

I attempt  to compile impala (1.4.0). My system is CentOS 6.2  boost 1.46.1, llvm 3.3, gcc 4.4.6
    when I compile impala, error info:
    
../../build/debug/codegen/libCodeGen.a(llvm-codegen.cc.o ):( data.rel.ro_ZTIN4llvm18ValueMapCallbackVHIPKNS_5ValueENS_6WeakVHENS_14ValueMapConfigIS3_EEEE[_ZTIN4llvm18ValueMapCallbackVHIPKNS_5ValueENS_6WeakVHENS_14ValueMapConfigIS3_EEEE]+0x10):  undefined reference to `typeinfo for llvm::CallbackVH'

 

 

anyone have any ideas?
Thanks  a million!

1 ACCEPTED SOLUTION

avatar
Master Collaborator

Just as a start, this thread may be helpful (unsure if you followed the same steps):

 

https://groups.google.com/a/cloudera.org/forum/#!topic/impala-user/7yjXGkI-wdQ

View solution in original post

2 REPLIES 2

avatar
Master Collaborator

Just as a start, this thread may be helpful (unsure if you followed the same steps):

 

https://groups.google.com/a/cloudera.org/forum/#!topic/impala-user/7yjXGkI-wdQ

avatar
Explorer

I have solved this problem!

 Follow the steps below you need to install LLVM.

    wget http://llvm.org/releases/3.3/llvm-3.3.src.tar.gz
    tar xvzf llvm-3.2.src.tar.gz
    cd llvm-3.2.src/tools
    svn co llvm-project - Revision 214475: /cfe/tags/RELEASE_33/final clang
    cd ../projects
    svn co llvm-project - Revision 214475: /compiler-rt/tags/RELEASE_33/final compiler-rt
    cd ..
    ./configure --with-pic
    make -j4 REQUIRES_RTTI=1
    sudo make install

I forget this option  (REQUIRES_RTTI=1)  causes the problem.