Can't compiler mediasoup server example (Rust) on mac M1

Hi everyone,

I’m having issues compiling the rust examples of media soup.
it keeps giving this error below.

Build started at 2022-10-05T17:55:16.659137
Main binary: /usr/local/bin/python3
Build Options: -Db_pie=true -Db_staticpic=true -Dprefix=/Users/ayomidebajo/IdeaProjects/mediasoup/target/debug/build/mediasoup-sys-a347a2ddf449f15b/out -Dbindir= -Dlibdir= -Dbuildtype=debug
Python system: Darwin
The Meson build system
Version: 0.61.5
Source dir: /Users/ayomidebajo/IdeaProjects/mediasoup/worker
Build dir: /Users/ayomidebajo/IdeaProjects/mediasoup/target/debug/build/mediasoup-sys-a347a2ddf449f15b/out/out/Debug/build
Build type: native build
Project name: mediasoup-worker
Project version: undefined
Sanity testing C compiler: ccache cc
Is cross compiler: False.
Sanity check compiler command line: ccache cc sanitycheckc.c -o sanitycheckc.exe -I/opt/homebrew/opt/llvm/include -L/opt/homebrew/opt/llvm/lib
Sanity check compile stdout:

Sanity check compile stderr:
ld: in '/opt/homebrew/opt/llvm/lib/libunwind.dylib', building for macOS-x86_64 but attempting to link with file built for macOS-arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

----- ERROR: Compiler ccache cc can not compile programs.

my llvm version is


rustc -V --verbose

rustc 1.64.0 (a55dd71d5 2022-09-19)
binary: rustc
commit-hash: a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52
commit-date: 2022-09-19
host: aarch64-apple-darwin
release: 1.64.0
LLVM version: 14.0.6