You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to deploy the mnist-lenet network to the riscv backend, I executed the following command onnx-mlir -O3 --EmitLib --mtriple=riscv64-unknown-linux-gnu mnist_lenet.onnx
but it reported an error /usr/bin/ld: mnist.o: Relocations in generic ELF (EM: 243) /usr/bin/ld: mnist.o: Relocations in generic ELF (EM: 243) /usr/bin/ld: mnist.o: Relocations in generic ELF (EM: 243) /usr/bin/ld: mnist.o: error adding symbols: file in wrong format collect2: error: ld returned 1 exit status c++ mnist.o -o mnist.so -shared -fPIC -L/home/xy/Desktop/onnx-mlir/build/Debug/lib -lcruntime Error message: Program path: /usr/bin/c++ Command execution failed.
I think this is because the static library architecture is x86 in /build/Debug/lib
If only producing .obj files like this: onnx-mlir -O3 --EmitObj --mtriple=riscv64-unknown-linux-gnu mnist_lenet.onnx
Then when generating the executable file later, do I still need to link the static library? Will an error be reported?
what should I do?
The text was updated successfully, but these errors were encountered:
I want to deploy the mnist-lenet network to the riscv backend, I executed the following command
onnx-mlir -O3 --EmitLib --mtriple=riscv64-unknown-linux-gnu mnist_lenet.onnx
but it reported an error
/usr/bin/ld: mnist.o: Relocations in generic ELF (EM: 243) /usr/bin/ld: mnist.o: Relocations in generic ELF (EM: 243) /usr/bin/ld: mnist.o: Relocations in generic ELF (EM: 243) /usr/bin/ld: mnist.o: error adding symbols: file in wrong format collect2: error: ld returned 1 exit status c++ mnist.o -o mnist.so -shared -fPIC -L/home/xy/Desktop/onnx-mlir/build/Debug/lib -lcruntime Error message: Program path: /usr/bin/c++ Command execution failed.
I think this is because the static library architecture is x86 in /build/Debug/lib
If only producing .obj files like this:
onnx-mlir -O3 --EmitObj --mtriple=riscv64-unknown-linux-gnu mnist_lenet.onnx
Then when generating the executable file later, do I still need to link the static library? Will an error be reported?
what should I do?
The text was updated successfully, but these errors were encountered: