Bug 259983

Summary: Bhyve snapshots/amd64/13.0-STABLE 2021-Nov-18 04:26
Product: Base System Reporter: didier.castellacci
Component: bhyveAssignee: freebsd-virtualization (Nobody) <virtualization>
Status: Closed Feedback Timeout    
Severity: Affects Some People CC: markj
Priority: ---    
Version: 13.0-STABLE   
Hardware: amd64   
OS: Any   

Description didier.castellacci 2021-11-22 14:30:11 UTC
I may have encountered a difficulty with the make command

here is the message:


usr/src/usr.sbin/bhyve/pci_fbuf.c:231:7: error: implicit declaration of function 'vm_munmap_memseg' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                if (vm_munmap_memseg(ctx, sc->fbaddr, FB_SIZE) != 0)
                    ^
/data/src/src_13.0/usr/src/usr.sbin/bhyve/pci_fbuf.c:231:7: note: did you mean 'vm_mmap_memseg'?
/usr/include/vmmapi.h:111:5: note: 'vm_mmap_memseg' declared here
int     vm_mmap_memseg(struct vmctx *ctx, vm_paddr_t gpa, int segid,
        ^
1 error generated.
*** Error code 1

Stop.
make: stopped in /data/src/src_13.0/usr/src/usr.sbin/bhyve




I ran the make command in the bhyve directory of the file:

src.txz 184260736 2021-Nov-18 04:26

Do you have any idea to get around the problem ?

Thank You
Didier
Comment 1 Mark Johnston freebsd_committer freebsd_triage 2021-11-22 17:12:15 UTC
It's not clear what exactly you're doing.  You're trying to compile stable/13 bhyve(8) sources on 13.0?  I think you have to, at least, compile and install lib/libvmmapi first, but again it's not clear.
Comment 2 Mark Johnston freebsd_committer freebsd_triage 2021-11-30 15:21:21 UTC
Please feel free to reopen with additional details.