Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

make fails with F_PUNCHHOLE error #160

Closed
max-mapper opened this issue Oct 18, 2017 · 1 comment
Closed

make fails with F_PUNCHHOLE error #160

max-mapper opened this issue Oct 18, 2017 · 1 comment

Comments

@max-mapper
Copy link

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
Copy link
Collaborator

ijc commented Oct 19, 2017

I think you need the latest Xcode/tools, we updated our CI to 9.0 for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants