I've built it on my macOS (no docker). The build is working fine just with the clang version 15 (at the moment).
Here's how I've done.
https://medium.com/@davideraffaele.marro/how-to-handle-pjrt-on-a-mac-mx-arm-26d16a0c9bd9