make fails with F_PUNCHHOLE error
max-mapper opened this issue ยท 1 comments
max-mapper commented
on mac os sierra
๐ 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
cc src/lib/vmm/vmm_api.c
cc src/lib/vmm/vmm_callout.c
cc src/lib/vmm/vmm_host.c
cc src/lib/vmm/vmm_instruction_emul.c
cc src/lib/vmm/vmm_ioport.c
cc src/lib/vmm/vmm_lapic.c
cc src/lib/vmm/vmm_mem.c
cc src/lib/vmm/vmm_stat.c
cc src/lib/vmm/vmm_util.c
cc src/lib/vmm/x86.c
cc src/lib/acpitbl.c
cc src/lib/atkbdc.c
cc src/lib/block_if.c
src/lib/block_if.c:275:21: error: variable has incomplete type 'struct fpunchhole'
struct fpunchhole arg = { .fp_flags = 0, .reserved = 0, .fp_offset = (off_t) fp_offset, .fp_length = (off_t) fp_length };
^
src/lib/block_if.c:275:10: note: forward declaration of 'struct fpunchhole'
struct fpunchhole arg = { .fp_flags = 0, .reserved = 0, .fp_offset = (off_t) fp_offset, .fp_length = (off_t) fp_length };
^
src/lib/block_if.c:276:26: error: use of undeclared identifier 'F_PUNCHHOLE'
ret = fcntl(bc->bc_fd, F_PUNCHHOLE, &arg);
^
src/lib/block_if.c:713:22: error: variable has incomplete type 'struct fpunchhole'
struct fpunchhole arg = { .fp_flags = 0, .reserved = 0, .fp_offset = 0, .fp_length = 0 };
^
src/lib/block_if.c:713:11: note: forward declaration of 'struct fpunchhole'
struct fpunchhole arg = { .fp_flags = 0, .reserved = 0, .fp_offset = 0, .fp_length = 0 };
^
src/lib/block_if.c:714:18: error: use of undeclared identifier 'F_PUNCHHOLE'
if (fcntl(fd, F_PUNCHHOLE, &arg) == 0) {
^
4 errors generated.
make: *** [build/lib/block_if.o] Error 1
ijc commented
I think you need the latest Xcode/tools, we updated our CI to 9.0 for this.