Public bug reported: 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 compiles fine with with the older 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) ** Affects: halide (Ubuntu) Importance: Undecided Status: New ** Description changed: 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 + https://github.com/halide/Halide/releases. The program also compiles + fine with with the older 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 + 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) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2064814 Title: Linking failure on toy/tutorial program To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/halide/+bug/2064814/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
