machyve / xhyve

xhyve, a lightweight OS X virtualization solution
Other
6.44k stars 353 forks source link

Build error on El capitan 10.11.4 #93

Closed gunofmoon closed 8 years ago

gunofmoon commented 8 years ago

clang version:

Apple LLVM version 7.3.0 (clang-703.0.29)
Target: x86_64-apple-darwin15.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

error message:

cc src/vmm/io/vhpet.c
src/vmm/io/vhpet.c:294:60: error: format specifies type 'void *' but the argument has type 'struct vhpet *' [-Werror,-Wformat-pedantic]
xhyve_abort("vhpet(%p) callout with counter disabled\n", vhpet);
Cloudxtreme commented 8 years ago

Agree - same error.

gunofmoon commented 8 years ago

Type casting may work?

xhyve_abort("vhpet(%p) callout with counter disabled\n", (void *)vhpet);
bermanboris commented 8 years ago

xhyve_abort("vhpet(%p) callout with counter disabled\n", (void *)vhpet);

Works just fine!

timfallmk commented 8 years ago

You can also set CFLAGS= -Wno-format-pedantic to temporarily suppress this.

xez commented 8 years ago

Fixed in https://github.com/mist64/xhyve/pull/96.