[PATCH] D73653: [MLIR] Fixes for shared library dependencies.
Krzysztof Parzyszek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 5 06:03:37 PST 2020
kparzysz added a comment.
This commit causes errors when linking mlir-opt (I'm not using shared libraries):
[...]
/w/bld/org/lib/libMLIRGPUtoCUDATransforms.a(ConvertKernelFuncToCubin.cpp.o): In function `(anonymous namespace)::GpuKernelToCubinPass::runOnOperation()':
ConvertKernelFuncToCubin.cpp:(.text._ZN12_GLOBAL__N_120GpuKernelToCubinPass14runOnOperationEv+0x44): undefined reference to `LLVMInitializeNVPTXTarget'
ConvertKernelFuncToCubin.cpp:(.text._ZN12_GLOBAL__N_120GpuKernelToCubinPass14runOnOperationEv+0x49): undefined reference to `LLVMInitializeNVPTXTargetInfo'
ConvertKernelFuncToCubin.cpp:(.text._ZN12_GLOBAL__N_120GpuKernelToCubinPass14runOnOperationEv+0x4e): undefined reference to `LLVMInitializeNVPTXTargetMC'
ConvertKernelFuncToCubin.cpp:(.text._ZN12_GLOBAL__N_120GpuKernelToCubinPass14runOnOperationEv+0x53): undefined reference to `LLVMInitializeNVPTXAsmPrinter'
ConvertKernelFuncToCubin.cpp:(.text._ZN12_GLOBAL__N_120GpuKernelToCubinPass14runOnOperationEv+0x60): undefined reference to `mlir::translateModuleToNVVMIR(mlir::Operation*)'
ConvertKernelFuncToCubin.cpp:(.text._ZN12_GLOBAL__N_120GpuKernelToCubinPass14runOnOperationEv+0x2d0): undefined reference to `llvm::MCTargetOptions::MCTargetOptions()'
clang-9: error: linker command failed with exit code 1 (use -v to see invocation)
tools/mlir/tools/mlir-opt/CMakeFiles/mlir-opt.dir/build.make:114: recipe for target 'bin/mlir-opt' failed
make[2]: *** [bin/mlir-opt] Error 1
make[2]: Target 'tools/mlir/tools/mlir-opt/CMakeFiles/mlir-opt.dir/build' not remade because of errors.
[...]
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73653/new/
https://reviews.llvm.org/D73653
More information about the llvm-commits
mailing list