Unable to build omnisciDB from github

I an trying to install OmniSciDB (Open Source).
I follow the steps in the guide on github

The error below appear after I try to build the system

make -j 4
[  0%] Built target sqlite3
[  1%] Built target QueryState
[  2%] Built target bcrypt
[  2%] Built target SqliteConnector
Scanning dependencies of target ThriftClient
[  3%] Built target Utils
[  3%] Building CXX object Shared/CMakeFiles/ThriftClient.dir/ThriftClient.cpp.o
Scanning dependencies of target mapd_thrift
[  3%] Generating gen-cpp/CalciteServer.cpp, gen-cpp/calciteserver_constants.cpp, gen-cpp/calciteserver_types.cpp, gen-cpp/completion_hints_constants.cpp, gen-cpp/completion_hints_types.cpp, gen-cpp/extension_functions_constants.cpp, gen-cpp/extension_functions_types.cpp
[  3%] Generating gen-cpp/OmniSci.cpp, gen-cpp/OmniSci.h, gen-cpp/omnisci_constants.cpp, gen-cpp/omnisci_types.cpp, gen-cpp/common_constants.cpp, gen-cpp/common_types.cpp, gen-cpp/completion_hints_constants.cpp, gen-cpp/completion_hints_types.cpp, gen-cpp/serialized_result_set_constants.cpp, gen-cpp/serialized_result_set_types.cpp, gen-cpp/extension_functions_constants.cpp, gen-cpp/extension_functions_types.cpp
[  3%] Building CXX object CMakeFiles/mapd_thrift.dir/gen-cpp/OmniSci.cpp.o
Scanning dependencies of target calciteserver_thrift
[  3%] Generating gen-cpp/CalciteServer.cpp, gen-cpp/calciteserver_constants.cpp, gen-cpp/calciteserver_types.cpp, gen-cpp/completion_hints_constants.cpp, gen-cpp/completion_hints_types.cpp, gen-cpp/extension_functions_constants.cpp, gen-cpp/extension_functions_types.cpp
[  4%] Building CXX object Calcite/CMakeFiles/calciteserver_thrift.dir/gen-cpp/CalciteServer.cpp.o
[  4%] Building CXX object Calcite/CMakeFiles/calciteserver_thrift.dir/gen-cpp/calciteserver_constants.cpp.o
c++: error: /home/omniscidb/build/Calcite/gen-cpp/calciteserver_constants.cpp: No such file or directory
c++: fatal error: no input files
compilation terminated.
Calcite/CMakeFiles/calciteserver_thrift.dir/build.make:109: recipe for target 'Calcite/CMakeFiles/calciteserver_thrift.dir/gen-cpp/calciteserver_constants.cpp.o' failed
make[2]: *** [Calcite/CMakeFiles/calciteserver_thrift.dir/gen-cpp/calciteserver_constants.cpp.o] Error 1
CMakeFiles/Makefile2:983: recipe for target 'Calcite/CMakeFiles/calciteserver_thrift.dir/all' failed
make[1]: *** [Calcite/CMakeFiles/calciteserver_thrift.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  4%] Building CXX object CMakeFiles/mapd_thrift.dir/gen-cpp/omnisci_constants.cpp.o
c++: error: /home/omniscidb/build/gen-cpp/omnisci_constants.cpp: No such file or directory
c++: fatal error: no input files
compilation terminated.
CMakeFiles/mapd_thrift.dir/build.make:127: recipe for target 'CMakeFiles/mapd_thrift.dir/gen-cpp/omnisci_constants.cpp.o' failed
make[2]: *** [CMakeFiles/mapd_thrift.dir/gen-cpp/omnisci_constants.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[  5%] Building CXX object CMakeFiles/mapd_thrift.dir/gen-cpp/omnisci_types.cpp.o
[  5%] Linking CXX static library libThriftClient.a
CMakeFiles/Makefile2:281: recipe for target 'CMakeFiles/mapd_thrift.dir/all' failed
make[1]: *** [CMakeFiles/mapd_thrift.dir/all] Error 2
[  5%] Built target ThriftClient
-- Looking for bison++
-- Configuring done
-- Generating done
-- Build files have been written to: /home/omniscidb/build
[  5%] Built target rerun_cmake
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2

I am wondering which steps was wrong, or did i forget any steps?
Any help is appreciated.

Hi @1111

thanks for joinin8ng our community; I can’t reproduce your error, but looks like you are missing some files, so something has been wrong during the cmake steps.

Could you try to re-reun cmake step and èost the output? looks like something gone wrong during that step (have you installed all the dependencies needed?)

My operating system is ubuntu 18.04,these are my steps

./scripts/mapd-deps-prebuilt.sh
cd scripts
./mapd-deps-ubuntu.sh --compress    

error appears,

CMake Error at docs/cmake_install.cmake:41 (file):
  file INSTALL cannot find
  "/home/omniscidb/scripts/build.llvm-9.0.1/docs/ocamldoc/html/.": No
  such file or directory.
Call Stack (most recent call first):
  cmake_install.cmake:76 (include)

Makefile:61: recipe for target 'install' failed
make: *** [install] Error 1

then

cd ..
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=debug .. 
make -j 4

CUDA is already install in ubuntu. I can compile with nvcc, so i skip the installation.
It seems I also got something when installing the dependencies and the error above
Rest of the steps no error appears.

Maybe the mapd-deps-ubuntu.sh is bailing out because of the error on llvm? do you run the /usr/local/mapd-deps/mapd-deps.sh before CMAKE?

I will try on a Ubuntu 18 distro, tomorrow in the morning

Dear @candido.dessanti

I try to install new ubuntu system(18.04) and install omnisciDB from github (release v5.2.2)

command step as follows:

  1. ./mapd-deps-prebuilt.sh
  2. source /usr/local/mapd-deps/mapd-deps.sh
  3. sudo apt install -y nvidia-cuda-toolkit
  4. cd scripts and ./mapd-deps-ubuntu.sh --compress
  5. cd ~/omniscidb // Go to the root directory of your OmniSciDB clone.
  6. mkdir build
  7. cd build
  8. cmake -DCMAKE_BUILD_TYPE=debug …
  9. make -j 4

make -j 4 terminal can show smiliar follows message:
recipe for target ‘Calcite/CMakeFiles/calciteserver_thrift.dir/gen-cpp/calciteserver_constants.cpp.o’ failed or other cpp file xxxxxx.cpp.o failed message.

thanks.

Hi @1111,

I build the actual master on ubuntu 18_04 without problems.

my steps:

  1. git clone https://github.com/omnisci/omniscidb.git
  2. rm -Rf /usr/local/mapd-deps/ – i wasn’t on a fresh install and I had older dependencies
  3. ./mapd-deps-prebuilt.sh
  4. source /usr/local/mapd-deps/mapd-deps.sh
  5. mkdir build
  6. cd build
  7. cmake -DCMAKE_BUILD_TYPE=debug …
  8. make -j 24

everything went as intended.

I attached a log file of my build…maybe it can be useful to find out what is going wrong in your system
build_ubuntu_1804_log.txt (911,7 KB)

Hi, @candido.dessanti
I fixed the first error above, it seems if you install thrift from github before omnisci installation with the newest version.The constants files that should generate by thrift will be missing, I am not should if its a mistake or an new update.
Anyway, I remove thrift and run the prebuilt.sh, the error is fixed.

The second error didn’t appear since I follow your steps.
I still cant install omnisci correctly, the error appears after sudo make -j 4

/bin/sh: 1: nvcc: not found
QueryEngine/CMakeFiles/QueryEngineCudaTargets.dir/build.make:102: recipe for target 'QueryEngine/HashJoinRuntimeGpu.o' failed
make[2]: *** [QueryEngine/HashJoinRuntimeGpu.o] Error 127
/bin/sh: 1: nvcc: not found
QueryEngine/CMakeFiles/QueryEngineCudaTargets.dir/build.make:93: recipe for target 'QueryEngine/ResultSetSortImpl.o' failed
make[2]: *** [QueryEngine/ResultSetSortImpl.o] Error 127
/bin/sh: 1: nvcc: not found
QueryEngine/CMakeFiles/QueryEngineCudaTargets.dir/build.make:89: recipe for target 'QueryEngine/InPlaceSortImpl.o' failed
make[2]: *** [QueryEngine/InPlaceSortImpl.o] Error 127
/bin/sh: 1: nvcc: not found 

It seems nvcc compiler is missing, but nvcc --version works.I can compile my CUDA code with the nvcc compiler.
The message after I run cmake -DCMAKE_BUILD_TYPE=debug -DENABLE_CUDA=on…
Its too long, so I only put part of it.

-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda (found version "10.0")    
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.1")

It says CUDA is install and you can find it.
I am confused by the error message.

Hi @1111

it’ìs because while building the software for whatever reason the nvcc it’s not found into the $PATH; the make file is something like that

cd /opt/mapd_storage/github/master/omniscidb/build/QueryEngine && nvcc -Xcompiler -fPIC -std=c++14 -D_FORCE_INLINES -DHAVE_CUDA -DBOOST_LOG_DYN_LINK -gencode=arch=compute_35,code=compute_35 -gencode=arch=compute_50,code=compute_50 -gencode=arch=compute_60,code=compute_60 -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_75,code=compute_75 -DTHRUST_DEBUG --debug -c /opt/mapd_storage/github/master/omniscidb/QueryEngine/TopKSort.cu

try to add thos lines to /etc/profile

export PATH=/usr/local/cuda-10.0/bin${PATH:+:{PATH}} export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib{LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

or as last stand try to modify the ./build/QueryEngine/CMakeFiles/QueryEngine.dir/build.make

Hi @candido.dessanti

I build omnisci to 82% show another error message, but I don`t know how to fix it, thanks

eq.
QueryRunner/libQueryRunner.a(QueryRunner.cpp.o):(.data.rel.ro._ZTV8SQLLexer[_ZTV8SQLLexer]+0x30): undefined reference to `yyFlexLexer::yy_create_buffer(std::istream&, int)'
QueryRunner/libQueryRunner.a(QueryRunner.cpp.o):(.data.rel.ro._ZTV8SQLLexer[_ZTV8SQLLexer]+0x48): undefined reference to `yyFlexLexer::yyrestart(std::istream&)'
QueryRunner/libQueryRunner.a(QueryRunner.cpp.o):(.data.rel.ro._ZTV8SQLLexer[_ZTV8SQLLexer]+0x60): undefined reference to `yyFlexLexer::switch_streams(std::istream&, std::ostream&)'
QueryRunner/libQueryRunner.a(QueryRunner.cpp.o):(.data.rel.ro._ZTV8SQLLexer[_ZTV8SQLLexer]+0x68): undefined reference to `yyFlexLexer::yywrap()'
QueryEngine/libQueryEngine.a(BaselineJoinHashTable.cpp.o): In function `llvm::VectorType::get(llvm::Type*, unsigned int, bool)':
/usr/local/mapd-deps/lib/../include/llvm/IR/DerivedTypes.h:457: undefined reference to `llvm::VectorType::get(llvm::Type*, llvm::ElementCount)'
QueryEngine/libQueryEngine.a(BaselineJoinHashTable.cpp.o): In function `llvm::MetadataTracking::track(llvm::Metadata*&)':
/usr/local/mapd-deps/lib/../include/llvm/IR/Metadata.h:221: undefined reference to `llvm::MetadataTracking::track(void*, llvm::Metadata&, llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>)'
QueryEngine/libQueryEngine.a(BaselineJoinHashTable.cpp.o): In function `CgenState::emitExternalCall(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, llvm::Type*, std::vector<llvm::Value*, std::allocator<llvm::Value*> >, std::vector<llvm::Attribute::AttrKind, std::allocator<llvm::Attribute::AttrKind> > const&, bool)':
/home/dotgg/Downloads/omniscidb-5.2.1/QueryEngine/CgenState.h:267: undefined reference to `llvm::AttrBuilder::addByValAttr(llvm::Type*)'
QueryEngine/libQueryEngine.a(ColumnIR.cpp.o): In function `llvm::ICmpInst::ICmpInst(llvm::CmpInst::Predicate, llvm::Value*, llvm::Value*, llvm::Twine const&)':
/usr/local/mapd-deps/lib/../include/llvm/IR/Instructions.h:1203: undefined reference to `llvm::CmpInst::CmpInst(llvm::Type*, llvm::Instruction::OtherOps, llvm::CmpInst::Predicate, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*, llvm::Instruction*)'
QueryEngine/libQueryEngine.a(ColumnIR.cpp.o): In function `llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>::CreateLoad(llvm::Type*, llvm::Value*, llvm::Twine const&)':
/usr/local/mapd-deps/lib/../include/llvm/IR/IRBuilder.h:1581: undefined reference to `llvm::LoadInst::LoadInst(llvm::Type*, llvm::Value*, llvm::Twine const&, llvm::Instruction*)'
QueryEngine/libQueryEngine.a(IRCodegen.cpp.o): In function `llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>::CreateLoad(llvm::Type*, llvm::Value*, char const*)':
/usr/local/mapd-deps/lib/../include/llvm/IR/IRBuilder.h:1577: undefined reference to `llvm::LoadInst::LoadInst(llvm::Type*, llvm::Value*, llvm::Twine const&, llvm::Instruction*)'
QueryEngine/libQueryEngine.a(GroupByAndAggregate.cpp.o): In function `llvm::Function::Create(llvm::FunctionType*, llvm::GlobalValue::LinkageTypes, llvm::Twine const&, llvm::Module*)':
/usr/local/mapd-deps/lib/../include/llvm/IR/Function.h:144: undefined reference to `llvm::Function::Function(llvm::FunctionType*, llvm::GlobalValue::LinkageTypes, unsigned int, llvm::Twine const&, llvm::Module*)'
QueryEngine/libQueryEngine.a(GroupByAndAggregate.cpp.o): In function `llvm::FCmpInst::FCmpInst(llvm::CmpInst::Predicate, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*)':
/usr/local/mapd-deps/lib/../include/llvm/IR/Instructions.h:1340: undefined reference to `llvm::CmpInst::CmpInst(llvm::Type*, llvm::Instruction::OtherOps, llvm::CmpInst::Predicate, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*, llvm::Instruction*)'
QueryEngine/libQueryEngine.a(NativeCodegen.cpp.o): In function `(anonymous namespace)::optimize_ir(llvm::Function*, llvm::Module*, std::unordered_set<llvm::Function*, std::hash<llvm::Function*>, std::equal_to<llvm::Function*>, std::allocator<llvm::Function*> > const&, CompilationOptions const&)':
/home/dotgg/Downloads/omniscidb-5.2.1/QueryEngine/NativeCodegen.cpp:110: undefined reference to `llvm::createInstSimplifyLegacyPass()'
QueryEngine/libQueryEngine.a(NativeCodegen.cpp.o): In function `ExecutionEngineWrapper::ExecutionEngineWrapper(llvm::ExecutionEngine*, CompilationOptions const&)':
/home/dotgg/Downloads/omniscidb-5.2.1/QueryEngine/NativeCodegen.cpp:139: undefined reference to `llvm::JITEventListener::createIntelJITEventListener()'
QueryEngine/libQueryEngine.a(NativeCodegen.cpp.o): In function `CodeGenerator::link_udf_module(std::unique_ptr<llvm::Module, std::default_delete<llvm::Module> > const&, llvm::Module&, CgenState*, llvm::Linker::Flags)':
/home/dotgg/Downloads/omniscidb-5.2.1/QueryEngine/NativeCodegen.cpp:303: undefined reference to `llvm::CloneModule(llvm::Module const&, llvm::ValueMap<llvm::Value const*, llvm::WeakTrackingVH, llvm::ValueMapConfig<llvm::Value const*, llvm::sys::SmartMutex<false> > >&)'
QueryEngine/libQueryEngine.a(NativeCodegen.cpp.o): In function `CodeGenerator::generatePTX(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, llvm::TargetMachine*, CgenState*)':
/home/dotgg/Downloads/omniscidb-5.2.1/QueryEngine/NativeCodegen.cpp:852: undefined reference to `llvm::parseIR(llvm::MemoryBufferRef, llvm::SMDiagnostic&, llvm::LLVMContext&, bool, llvm::StringRef)'
QueryEngine/libQueryEngine.a(NativeCodegen.cpp.o): In function `read_udf_gpu_module(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/dotgg/Downloads/omniscidb-5.2.1/QueryEngine/NativeCodegen.cpp:1233: undefined reference to `llvm::parseIRFile(llvm::StringRef, llvm::SMDiagnostic&, llvm::LLVMContext&, bool, llvm::StringRef)'
QueryEngine/libQueryEngine.a(NativeCodegen.cpp.o): In function `read_udf_cpu_module(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/dotgg/Downloads/omniscidb-5.2.1/QueryEngine/NativeCodegen.cpp:1244: undefined reference to `llvm::parseIRFile(llvm::StringRef, llvm::SMDiagnostic&, llvm::LLVMContext&, bool, llvm::StringRef)'
QueryEngine/libQueryEngine.a(NativeCodegen.cpp.o): In function `read_rt_udf_gpu_module(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/dotgg/Downloads/omniscidb-5.2.1/QueryEngine/NativeCodegen.cpp:1256: undefined reference to `llvm::parseIR(llvm::MemoryBufferRef, llvm::SMDiagnostic&, llvm::LLVMContext&, bool, llvm::StringRef)'
QueryEngine/libQueryEngine.a(NativeCodegen.cpp.o): In function `read_rt_udf_cpu_module(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/home/dotgg/Downloads/omniscidb-5.2.1/QueryEngine/NativeCodegen.cpp:1268: undefined reference to `llvm::parseIR(llvm::MemoryBufferRef, llvm::SMDiagnostic&, llvm::LLVMContext&, bool, llvm::StringRef)'
QueryEngine/libQueryEngine.a(NativeCodegen.cpp.o): In function `Executor::compileWorkUnit(std::vector<InputTableInfo, std::allocator<InputTableInfo> > const&, RelAlgExecutionUnit const&, CompilationOptions const&, ExecutionOptions const&, CudaMgr_Namespace::CudaMgr const*, bool, std::shared_ptr<RowSetMemoryOwner>, unsigned long, signed char, bool, std::unordered_map<int, std::unordered_map<int, std::shared_ptr<ColumnarResults const>, std::hash<int>, std::equal_to<int>, std::allocator<std::pair<int const, std::shared_ptr<ColumnarResults const> > > >, std::hash<int>, std::equal_to<int>, std::allocator<std::pair<int const, std::unordered_map<int, std::shared_ptr<ColumnarResults const>, std::hash<int>, std::equal_to<int>, std::allocator<std::pair<int const, std::shared_ptr<ColumnarResults const> > > > > > >&, RenderInfo*)':
/home/dotgg/Downloads/omniscidb-5.2.1/QueryEngine/NativeCodegen.cpp:1700: undefined reference to `llvm::CloneModule(llvm::Module const&, llvm::ValueMap<llvm::Value const*, llvm::WeakTrackingVH, llvm::ValueMapConfig<llvm::Value const*, llvm::sys::SmartMutex<false> > >&, llvm::function_ref<bool (llvm::GlobalValue const*)>)'
QueryEngine/libQueryEngine.a(NativeCodegen.cpp.o): In function `runtime_module_shallow_copy(CgenState*)':
/home/dotgg/Downloads/omniscidb-5.2.1/QueryEngine/NativeCodegen.cpp:1982: undefined reference to `llvm::CloneModule(llvm::Module const&, llvm::ValueMap<llvm::Value const*, llvm::WeakTrackingVH, llvm::ValueMapConfig<llvm::Value const*, llvm::sys::SmartMutex<false> > >&, llvm::function_ref<bool (llvm::GlobalValue const*)>)'
QueryEngine/libQueryEngine.a(NativeCodegen.cpp.o): In function `llvm::CallBase::getNumSubclassExtraOperands() const':
/usr/local/mapd-deps/lib/../include/llvm/IR/InstrTypes.h:1123: undefined reference to `llvm::CallBase::getNumSubclassExtraOperandsDynamic() const'
QueryEngine/libQueryEngine.a(NativeCodegen.cpp.o): In function `llvm::CallInst::Create(llvm::FunctionType*, llvm::Value*, llvm::Twine const&, llvm::Instruction*)':
/usr/local/mapd-deps/lib/../include/llvm/IR/Instructions.h:1439: undefined reference to `llvm::CallInst::CallInst(llvm::FunctionType*, llvm::Value*, llvm::Twine const&, llvm::Instruction*)'
QueryEngine/libQueryEngine.a(NativeCodegen.cpp.o): In function `llvm::InitializeAllTargetInfos()':
/usr/local/mapd-deps/lib/../include/llvm/Config/Targets.def:36: undefined reference to `LLVMInitializeRISCVTargetInfo'
/usr/local/mapd-deps/lib/../include/llvm/Config/Targets.def:39: undefined reference to `LLVMInitializeWebAssemblyTargetInfo'
QueryEngine/libQueryEngine.a(NativeCodegen.cpp.o): In function `llvm::InitializeAllTargets()':
/usr/local/mapd-deps/lib/../include/llvm/Config/Targets.def:36: undefined reference to `LLVMInitializeRISCVTarget'
/usr/local/mapd-deps/lib/../include/llvm/Config/Targets.def:39: undefined reference to `LLVMInitializeWebAssemblyTarget'
QueryEngine/libQueryEngine.a(NativeCodegen.cpp.o): In function `llvm::InitializeAllTargetMCs()':
/usr/local/mapd-deps/lib/../include/llvm/Config/Targets.def:36: undefined reference to `LLVMInitializeRISCVTargetMC'
/usr/local/mapd-deps/lib/../include/llvm/Config/Targets.def:39: undefined reference to `LLVMInitializeWebAssemblyTargetMC'
QueryEngine/libQueryEngine.a(NativeCodegen.cpp.o): In function `llvm::InitializeAllAsmPrinters()':
/usr/local/mapd-deps/lib/../include/llvm/Config/AsmPrinters.def:37: undefined reference to `LLVMInitializeRISCVAsmPrinter'
/usr/local/mapd-deps/lib/../include/llvm/Config/AsmPrinters.def:40: undefined reference to `LLVMInitializeWebAssemblyAsmPrinter'
QueryEngine/libQueryEngine.a(QueryTemplateGenerator.cpp.o): In function `llvm::LoadInst::LoadInst(llvm::Value*, llvm::Twine const&, bool, llvm::BasicBlock*)':
/usr/local/mapd-deps/lib/../include/llvm/IR/Instructions.h:211: undefined reference to `llvm::LoadInst::LoadInst(llvm::Type*, llvm::Value*, llvm::Twine const&, bool, llvm::BasicBlock*)'
QueryEngine/libQueryEngine.a(QueryTemplateGenerator.cpp.o): In function `llvm::CallInst::Create(llvm::FunctionType*, llvm::Value*, llvm::Twine const&, llvm::BasicBlock*)':
/usr/local/mapd-deps/lib/../include/llvm/IR/Instructions.h:1463: undefined reference to `llvm::CallInst::CallInst(llvm::FunctionType*, llvm::Value*, llvm::Twine const&, llvm::BasicBlock*)'
QueryEngine/libQueryEngine.a(ArithmeticIR.cpp.o): In function `llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>::CreateConstrainedFPBinOp(llvm::Intrinsic::ID, llvm::Value*, llvm::Value*, llvm::Instruction*, llvm::Twine const&, llvm::MDNode*, llvm::Optional<llvm::ConstrainedFPIntrinsic::RoundingMode>, llvm::Optional<llvm::ConstrainedFPIntrinsic::ExceptionBehavior>)':
/usr/local/mapd-deps/lib/../include/llvm/IR/IRBuilder.h:1480: undefined reference to `llvm::IRBuilderBase::CreateIntrinsic(llvm::Intrinsic::ID, llvm::ArrayRef<llvm::Type*>, llvm::ArrayRef<llvm::Value*>, llvm::Instruction*, llvm::Twine const&)'
QueryEngine/libQueryEngine.a(ArithmeticIR.cpp.o): In function `llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>::getConstrainedFPRounding(llvm::Optional<llvm::ConstrainedFPIntrinsic::RoundingMode>)':
/usr/local/mapd-deps/lib/../include/llvm/IR/IRBuilder.h:1093: undefined reference to `llvm::ConstrainedFPIntrinsic::RoundingModeToStr(llvm::ConstrainedFPIntrinsic::RoundingMode)'
QueryEngine/libQueryEngine.a(ArithmeticIR.cpp.o): In function `llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>::getConstrainedFPExcept(llvm::Optional<llvm::ConstrainedFPIntrinsic::ExceptionBehavior>)':
/usr/local/mapd-deps/lib/../include/llvm/IR/IRBuilder.h:1109: undefined reference to `llvm::ConstrainedFPIntrinsic::ExceptionBehaviorToStr(llvm::ConstrainedFPIntrinsic::ExceptionBehavior)'
QueryEngine/libQueryEngine.a(ResultSetReductionCodegen.cpp.o): In function `(anonymous namespace)::translate_body(std::vector<std::unique_ptr<Instruction, std::default_delete<Instruction> >, std::allocator<std::unique_ptr<Instruction, std::default_delete<Instruction> > > > const&, Function const*, llvm::Function*, ReductionCode const&, std::unordered_map<Value const*, llvm::Value*, std::hash<Value const*>, std::equal_to<Value const*>, std::allocator<std::pair<Value const* const, llvm::Value*> > >&, std::unordered_map<Function const*, llvm::Function*, std::hash<Function const*>, std::equal_to<Function const*>, std::allocator<std::pair<Function const* const, llvm::Function*> > > const&)':
/home/dotgg/Downloads/omniscidb-5.2.1/QueryEngine/ResultSetReductionCodegen.cpp:263: undefined reference to `llvm::IRBuilderBase::CreateMemCpy(llvm::Value*, unsigned int, llvm::Value*, unsigned int, llvm::Value*, bool, llvm::MDNode*, llvm::MDNode*, llvm::MDNode*, llvm::MDNode*)'
collect2: error: ld returned 1 exit status
CMakeFiles/initdb.dir/build.make:210: recipe for target 'bin/initdb' failed
make[2]: *** [bin/initdb] Error 1
CMakeFiles/Makefile2:248: recipe for target 'CMakeFiles/initdb.dir/all' failed
make[1]: *** [CMakeFiles/initdb.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

terminal_info.txt (488.3 KB)

Hi @1111,

maybe a stupid idea, but are you building the software while running the DB? Sometimes I did such thing and got a lot of error during the linking phase.

another reason could be the lack of reference to the lvvm lib in the make file, but i think it’s unlikely