[SOLVED] Metal causing backtrace with converted Mobilenet CoreML converted model from tutorial, cause libffi cffi

Directly from https://tvm.apache.org/docs/tutorials/frontend/from_coreml.html

(USE_LLVM ON)

(USE_METAL ON)

are the edits to config.cmake

The edits to the script were

ctx = tvm.cpu(0)

becomes

ctx = tvm.metal(1)

Can anybody help me out here.

Sam

Fix was

brew install pkg-config libffi
PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig pip install cffi