cross MLIR

试了一下直接用系统的clang,有 /usr/bin/ld: unrecognised emulation mode: elf64lriscv,看来还真得源码构建一遍llvm。

Build Local LLVM/MLIR

缺 pybind11 nanobind python-numpy

Build Local buddy-mlir

缺 python-distlib pkg-config texinfo

震惊了,在缺依赖的构建中发现竟然构建了一整个 riscv-gnu-toolchain ,我麻了,跟各种构建系统和依赖斗智斗勇,头好晕,要长脑子了。