Monterey: make returns atomic.h error
macOS Monterey/root:xnu-8019.41.5~1/RELEASE_ARM64_T6000 arm64, when installing via brew I get the following error (while docker-machine-driver-xhyve installation works):
$ brew install --HEAD xhyve
==> Cloning https://github.com/machyve/xhyve.git
Updating /Users/xxx/Library/Caches/Homebrew/xhyve--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at dfbe09b Migrate vmm_callout -> OSX libdispatch (#112)
==> make
Last 15 lines from /Users/xxx/Library/Logs/Homebrew/xhyve/01.make:
include/xhyve/support/atomic.h:237:4: note: expanded from macro 'ATOMIC_LOAD'
: "=a" (res), /* 0 /
^
include/xhyve/support/atomic.h:267:1: error: invalid output constraint '=a' in asm
ATOMIC_LOAD(long, "cmpxchgq %0,%1");
^
include/xhyve/support/atomic.h:237:4: note: expanded from macro 'ATOMIC_LOAD'
: "=a" (res), / 0 */
^
18 errors generated.
make: *** [build/vmm/x86.o] Error 1
18 errors generated.
make: *** [build/vmm/vmm_instruction_emul.o] Error 1
18 errors generated.
make: *** [build/vmm/vmm.o] Error 1
Source: machyve/xhyve