onnx-mlir
onnx-mlir copied to clipboard
cmake --build on Mac with M1 chip failed with error "ld: symbol(s) not found for architecture arm64"
Build onnx-mlir on my macbook-pro which has M1 chip inside. "cmake --build ." will failed with the following error:
ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed.
Some makefile changes are likely needed to support this different arch. At this time, we are mostly x86 mac based, so I don't think we can provide much help on this regard.
Feel free to look at the LLVM cmake to see if you can gather info on how to make our build work for M1. Pending availability of M1 CI machines, we are not opposed to adding new CIs for the new macs.
if you use brew
for the prerequisites, the build works great now for M1 Macs