Hello Everyone,
From yesterday(as I recall), I’m facing a build issue while building mlir-opt.
log:
ninja mlir-opt
[1/1] Linking CXX executable bin/mlir-opt
/binutils-2.32/bin/ld: cannot find -lLLVMNVPTXCodeGen
/binutils-2.32/bin/ld: cannot find -lLLVMNVPTXDesc
/binutils-2.32/bin/ld: cannot find -lLLVMNVPTXInfo
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
CMake script used:
cmake …/…/llvm/ -G “Ninja” -DCMAKE_BUILD_TYPE=RELEASE -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_ENABLE_PROJECTS=“clang;lld;lldb;mlir” -DLLVM_ENABLE_ASSERTIONS:BOOL=ON -DCLANG_DEFAULT_LINKER:STRING=lld
Please note here mlir-translate, mlir-tblgen is getting build fine.
Is their something wrong with cmake config, do we actually need these LLVMNVPTXCodeGen and others libs?
Thanks,
Sourabh.