Open rheno opened 2 years ago
I have the same errors while building on my macOS (Silicon) ... also brew install hyperkit
does not work! Is Silicon Mac supported in hyperkit latest release?
i am seeing this error also, Apple Silicon M1 Chip in a 2020 MacBook Air, 16 GB RAM, Mac OS Monterey v12.5. is anything being done on PR #335 to update this to handle Apple Silicon chips in the compile?
% git clone https://github.com/moby/hyperkit
Cloning into 'hyperkit'...
remote: Enumerating objects: 3891, done.
remote: Counting objects: 100% (62/62), done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 3891 (delta 28), reused 48 (delta 27), pack-reused 3829
Receiving objects: 100% (3891/3891), 12.81 MiB | 526.00 KiB/s, done.
Resolving deltas: 100% (2022/2022), done.
% cd hyperkit
% make
gen src/lib/dtrace.d
cc src/lib/vmm/intel/vmcs.c
cc src/lib/vmm/intel/vmx.c
cc src/lib/vmm/intel/vmx_msr.c
cc src/lib/vmm/io/vatpic.c
cc src/lib/vmm/io/vatpit.c
cc src/lib/vmm/io/vhpet.c
cc src/lib/vmm/io/vioapic.c
cc src/lib/vmm/io/vlapic.c
cc src/lib/vmm/io/vpmtmr.c
cc src/lib/vmm/io/vrtc.c
cc src/lib/vmm/vmm.c
src/lib/vmm/vmm.c:846:14: error: variable 'wmesg' set but not used [-Werror,-Wunused-but-set-variable]
const char *wmesg;
^
src/lib/vmm/vmm.c:1012:9: error: variable 'done' set but not used [-Werror,-Wunused-but-set-variable]
int i, done;
^
2 errors generated.
make: *** [build/lib/vmm/vmm.o] Error 1
faddah@FaddahsoakinAir hyperkit % arch -arm64 make
cc src/lib/vmm/vmm.c
src/lib/vmm/vmm.c:846:14: error: variable 'wmesg' set but not used [-Werror,-Wunused-but-set-variable]
const char *wmesg;
^
src/lib/vmm/vmm.c:1012:9: error: variable 'done' set but not used [-Werror,-Wunused-but-set-variable]
int i, done;
^
2 errors generated.
make: *** [build/lib/vmm/vmm.o] Error 1
Run make CFLAGS_WARN=
.
use make CFLAGS_WARN=-Wunused-but-set-variable
Step to reproduce :
git clone https://github.com/moby/hyperkit
cd hyperkit
make -i
Details:
Environments :