vim 移动到行首 shift+6。
RISC-V 机器 pacman 里面没有 nanobind ,在 prepare 阶段从源码构建一个。
prepare() {
cd "$srcdir/$pkgname"
# vendor nanobind
git submodule add https://github.com/wjakob/nanobind.git third_party/nanobind || true
git submodule update --init --recursive
}
build 阶段指定 nanobind 的路径
-DCMAKE_PREFIX_PATH="$srcdir/$pkgname/third_party/nanobind"
CMake Warning: Manually-specified variables were not used by the project:
NANOBIND_BUILD_TESTS
太好玩了,buddy-mlir 依赖 nanobind,但是 ArchLinux RISCV-V 没有这个包,虽然我可以手动打出来但是 status page 显示缺少依赖 python-tensorflow。咨询了肥猫大佬,是在 checkpkg 阶段跑测试依赖的。
虽然我现在打出来的 nanobind 应该也没啥问题,但是需要在 buddy-mlir 的 PKGBUILD 里面重新 build 一遍才能成功打出来。可能还是直接 cross build 比较好。