([email protected] to bcc, [email protected])

On 18 March 2016 at 09:15, Tim Armstrong <[email protected]> wrote:

> Looks like you're having issues linking against LLVM - something to do
> with C++ RTTI.
>
> Impala builds on RHEL5/6/7 but we use our own custom build of LLVM.
>
> I believe we don't enable RTTI when we build LLVM, so that may be the
> problem. If you want to build LLVM in the same way we do, we have a
> toolchain that will build many of the dependencies on your OS:
> https://github.com/cloudera/native-toolchain
>
> - Tim
>
> On Fri, Mar 18, 2016 at 1:34 AM, valnci <[email protected]> wrote:
>
>> Hi,
>>
>> I'm trying to build Impala from source. The prerequisites are all
>> inplace. The Impala build progresses upto 80% after which it fails with
>> following errors:
>>
>> Linking CXX executable ../../build/debug/codegen/instruction-counter-test
>> Linking CXX executable ../../build/debug/codegen/llvm-codegen-test
>> CMakeFiles/instruction-counter-test.dir/instruction-counter-test.cc.o:(.data.rel.ro._ZTIN4llvm8ICmpInstE[_ZTIN4llvm8ICmpInstE]+0x10):
>> undefined reference to `typeinfo for llvm::CmpInst'
>> collect2: error: ld returned 1 exit status
>> make[2]: *** [be/build/debug/codegen/instruction-counter-test] Error 1
>> make[1]: *** [be/src/codegen/CMakeFiles/instruction-counter-test.dir/all]
>> Error 2
>> make[1]: *** Waiting for unfinished jobs....
>> Linking CXX executable ../../build/debug/exec/delimited-text-parser-test
>> [ 80%] Built target delimited-text-parser-test
>> ../../build/debug/codegen/libCodeGen.a(llvm-codegen.cc.o):(.data.rel.ro._ZTIN4llvm18ValueMapCallbackVHIPKNS_5ValueENS_6WeakVHENS_14ValueMapConfigIS3_NS_3sys10SmartMutexILb0EEEEEEE[_ZTIN4llvm18ValueMapCallbackVHIPKNS_5ValueENS_6WeakVHENS_14ValueMapConfigIS3_NS_3sys10SmartMutexILb0EEEEEEE]+0x10):
>> undefined reference to `typeinfo for llvm::CallbackVH'
>> ../../build/debug/codegen/libCodeGen.a(llvm-codegen.cc.o):(.data.rel.ro._ZTIN4llvm8FCmpInstE[_ZTIN4llvm8FCmpInstE]+0x10):
>> undefined reference to `typeinfo for llvm::CmpInst'
>> ../../build/debug/codegen/libCodeGen.a(llvm-codegen.cc.o):(.data.rel.ro._ZTIN4llvm8ICmpInstE[_ZTIN4llvm8ICmpInstE]+0x10):
>> undefined reference to `typeinfo for llvm::CmpInst'
>> ../../build/debug/codegen/libCodeGen.a(llvm-codegen.cc.o):(.data.rel.ro._ZTIN4llvm17GetElementPtrInstE[_ZTIN4llvm17GetElementPtrInstE]+0x10):
>> undefined reference to `typeinfo for llvm::Instruction'
>> ../../build/debug/codegen/libCodeGen.a(codegen-anyval.cc.o):(.data.rel.ro._ZTIN4llvm15InsertValueInstE[_ZTIN4llvm15InsertValueInstE]+0x10):
>> undefined reference to `typeinfo for llvm::Instruction'
>> ../../build/debug/codegen/libCodeGen.a(codegen-anyval.cc.o):(.data.rel.ro._ZTIN4llvm16ExtractValueInstE[_ZTIN4llvm16ExtractValueInstE]+0x10):
>> undefined reference to `typeinfo for llvm::UnaryInstruction'
>> ../../build/debug/exprs/libExprs.a(slot-ref.cc.o):(.data.rel.ro._ZTIN4llvm7PHINodeE[_ZTIN4llvm7PHINodeE]+0x10):
>> undefined reference to `typeinfo for llvm::Instruction'
>> ../../build/debug/exec/libExec.a(text-converter.cc.o):(.data.rel.ro._ZTIN4llvm10SelectInstE[_ZTIN4llvm10SelectInstE]+0x10):
>> undefined reference to `typeinfo for llvm::Instruction'
>> collect2: error: ld returned 1 exit status
>> make[2]: *** [be/build/debug/catalog/catalogd] Error 1
>> make[1]: *** [be/src/catalog/CMakeFiles/catalogd.dir/all] Error 2
>> CMakeFiles/llvm-codegen-test.dir/llvm-codegen-test.cc.o:(.data.rel.ro._ZTIN4llvm17GetElementPtrInstE[_ZTIN4llvm17GetElementPtrInstE]+0x10):
>> undefined reference to `typeinfo for llvm::Instruction'
>> ../../build/debug/codegen/libCodeGen.a(llvm-codegen.cc.o):(.data.rel.ro._ZTIN4llvm18ValueMapCallbackVHIPKNS_5ValueENS_6WeakVHENS_14ValueMapConfigIS3_NS_3sys10SmartMutexILb0EEEEEEE[_ZTIN4llvm18ValueMapCallbackVHIPKNS_5ValueENS_6WeakVHENS_14ValueMapConfigIS3_NS_3sys10SmartMutexILb0EEEEEEE]+0x10):
>> undefined reference to `typeinfo for llvm::CallbackVH'
>> ../../build/debug/codegen/libCodeGen.a(llvm-codegen.cc.o):(.data.rel.ro._ZTIN4llvm8FCmpInstE[_ZTIN4llvm8FCmpInstE]+0x10):
>> undefined reference to `typeinfo for llvm::CmpInst'
>> ../../build/debug/codegen/libCodeGen.a(llvm-codegen.cc.o):(.data.rel.ro._ZTIN4llvm8ICmpInstE[_ZTIN4llvm8ICmpInstE]+0x10):
>> undefined reference to `typeinfo for llvm::CmpInst'
>> ../../build/debug/codegen/libCodeGen.a(codegen-anyval.cc.o):(.data.rel.ro._ZTIN4llvm15InsertValueInstE[_ZTIN4llvm15InsertValueInstE]+0x10):
>> undefined reference to `typeinfo for llvm::Instruction'
>> ../../build/debug/codegen/libCodeGen.a(codegen-anyval.cc.o):(.data.rel.ro._ZTIN4llvm16ExtractValueInstE[_ZTIN4llvm16ExtractValueInstE]+0x10):
>> undefined reference to `typeinfo for llvm::UnaryInstruction'
>> ../../build/debug/exprs/libExprs.a(slot-ref.cc.o):(.data.rel.ro._ZTIN4llvm7PHINodeE[_ZTIN4llvm7PHINodeE]+0x10):
>> undefined reference to `typeinfo for llvm::Instruction'
>> ../../build/debug/exec/libExec.a(text-converter.cc.o):(.data.rel.ro._ZTIN4llvm10SelectInstE[_ZTIN4llvm10SelectInstE]+0x10):
>> undefined reference to `typeinfo for llvm::Instruction'
>> collect2: error: ld returned 1 exit status
>> make[2]: *** [be/build/debug/codegen/llvm-codegen-test] Error 1
>> make[1]: *** [be/src/codegen/CMakeFiles/llvm-codegen-test.dir/all] Error 2
>> make: *** [all] Error 2
>> Error in /root/Impala/bin/make_impala.sh at line 122: make
>> -j${IMPALA_BUILD_THREADS:-4}
>> Error in ./buildall.sh at line 257: $IMPALA_HOME/bin/make_impala.sh
>> ${MAKE_IMPALA_ARGS}
>>
>> Kindly guide me on this issue.
>>
>> Regards,
>> valnci
>>
>> PS: llvm is built with RTTI option to 1
>> OS: rhel
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Impala Dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Impala Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
>



-- 
Henry Robinson
Software Engineer
Cloudera
415-994-6679

Reply via email to