Apple Silicon Support
Goal
libvirt should be compatible with macOS running on an Apple M1 processor.
Technical details
Attempting to compile libvirt 7.0.0 on Apple M1 produces the following error:
../src/cpu/cpu_arm.c:28:11: fatal error: 'sys/auxv.h' file not found
# include <sys/auxv.h>
^~~~~~~~~~~~
1 error generated.
I believe that's a glibc header, which means that the build scripts currently assume an ARM processor must be running Linux.
Additional information
This error was generated while updating Homebrew libvirt to version 7.0 (https://github.com/Homebrew/homebrew-core/pull/69162).
Build logs available at https://github.com/Homebrew/homebrew-core/pull/69162/checks?check_run_id=1712882925.