LLVM Discussion Forums

Undefined reference to `getEmbeddedConstPool'

I converted ONNX to MLIR using onnx-mlir --EmitMLIR.
I added main function to pass input to graph and print statement to print the output of graph.
Then I lowered LLVM Dialect using onnx-mlir-opt --convert-krnl-to-llvm and.onnx.mlir>n1.mlir.
Lowered to LLVM IR using mlir-translate --mlir-to-llvmir n1.mlir>n2.ll
the I ran the .ll file using clang n2.ll “pathto”/libmlir_runner_utils.so -o main -lm
/usr/bin/ld: /tmp/n2-dacb78.o: in function main_graph': undefined reference to getEmbeddedConstPool’
/usr/bin/ld: /tmp/n2-dacb78.o: in function _dyn_entry_point_main_graph': undefined reference to getRtMemRef’
undefined reference to getData' undefined reference to getSizes’
undefined reference to getStrides' undefined reference to createOrderedRtMemRefDict’
undefined reference to createRtMemRef' undefined reference to setData’
undefined reference to setDType' undefined reference to getSizes’
undefined reference to getStrides' undefined reference to setRtMemRef’

I am getting error like above.
How can I solve this?