Comment 0 for bug 2064814

Revision history for this message
TRIPURARI SINGH (tripurari1) wrote :

Tutorial program does not compile with packaged libhalide17-1, but compiles fine with the binary from https://github.com/halide/Halide/releases. The program also compiled with with libhalide16 on ubuntu 23.10

To reproduce the problem, try compiling https://halide-lang.org/tutorials/tutorial_lesson_01_basics.html with

tutorial[1071] g++ lesson_01*.cpp -g -I /usr/include/halide17 -L /usr/lib/llvm-18/lib -lHalide17 -lpthread -ldl -o lesson_01 -std=c++17
/usr/bin/ld: warning: libLLVM-18.so.1, needed by /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libHalide17.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libHalide17.so: undefined reference to `llvm::MCTargetOptions::MCTargetOptions()@LLVM_18'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libHalide17.so: undefined reference to `LLVMInitializeWebAssemblyTargetMC@LLVM_18'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libHalide17.so: undefined reference to `llvm::orc::JITTargetMachineBuilder::createTargetMachine()@LLVM_18'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libHalide17.so: undefined reference to `llvm::DataExtractor::getU16(unsigned long*, llvm::Error*) const@LLVM_18'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libHalide17.so: undefined reference to `llvm::ModuleToFunctionPassAdaptor::printPipeline(llvm::raw_ostream&, llvm::function_ref<llvm::StringRef (llvm::StringRef)>)@LLVM_18'
(snipped)