Skip to content

Error in installing Pemu on debian jessie #2

@sapanta992

Description

@sapanta992

Hi,
I am trying to install pemu for kernel instrumentaion of my VMs. I followed your instruction to install pemu. When I want to make in the pemu/build folder, I come up with the following error:

CC hw/block/xen_disk.o
In file included from /home/guest/Documents/tools/pemu-master/include/hw/xen/xen_backend.h:7:0,
from /home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:39:
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h:109:9: error: unknown type name ‘xc_evtchn’
typedef xc_evtchn *XenEvtchn;
^
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h:110:9: error: unknown type name ‘xc_gnttab’
typedef xc_gnttab *XenGnttab;
^
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h: In function ‘xen_xc_evtchn_open’:
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h:118:5: warning: implicit declaration of function ‘xc_evtchn_open’ [-Wimplicit-function-declaration]
return xc_evtchn_open(logger, open_flags);
^
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h:118:5: warning: nested extern declaration of ‘xc_evtchn_open’ [-Wnested-externs]
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h:118:5: warning: return makes pointer from integer without a cast
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h: In function ‘xen_xc_gnttab_open’:
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h:124:5: warning: implicit declaration of function ‘xc_gnttab_open’ [-Wimplicit-function-declaration]
return xc_gnttab_open(logger, open_flags);
^
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h:124:5: warning: nested extern declaration of ‘xc_gnttab_open’ [-Wnested-externs]
/home/guest/Documents/tools/pemu-master/include/hw/xen/xen_common.h:124:5: warning: return makes pointer from integer without a cast
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c: In function ‘destroy_grant’:
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:166:5: warning: implicit declaration of function ‘xc_gnttab_munmap’ [-Wimplicit-function-declaration]
if (xc_gnttab_munmap(gnt, grant->page, 1) != 0) {
^
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:166:5: warning: nested extern declaration of ‘xc_gnttab_munmap’ [-Wnested-externs]
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c: In function ‘ioreq_map’:
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:386:13: warning: implicit declaration of function ‘xc_gnttab_map_grant_refs’ [-Wimplicit-function-declaration]
(gnt, new_maps, domids, refs, ioreq->prot);
^
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:386:13: warning: nested extern declaration of ‘xc_gnttab_map_grant_refs’ [-Wnested-externs]
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:385:22: warning: assignment makes pointer from integer without a cast
ioreq->pages = xc_gnttab_map_grant_refs
^
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:402:17: warning: implicit declaration of function ‘xc_gnttab_map_grant_ref’ [-Wimplicit-function-declaration]
(gnt, domids[i], refs[i], ioreq->prot);
^
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:402:17: warning: nested extern declaration of ‘xc_gnttab_map_grant_ref’ [-Wnested-externs]
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:401:28: warning: assignment makes pointer from integer without a cast
ioreq->page[i] = xc_gnttab_map_grant_ref
^
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c: In function ‘blk_alloc’:
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:693:5: warning: implicit declaration of function ‘xc_gnttab_set_max_grants’ [-Wimplicit-function-declaration]
if (xc_gnttab_set_max_grants(xendev->gnttabdev,
^
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:693:5: warning: nested extern declaration of ‘xc_gnttab_set_max_grants’ [-Wnested-externs]
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c: In function ‘blk_connect’:
/home/guest/Documents/tools/pemu-master/hw/block/xen_disk.c:854:19: warning: assignment makes pointer from integer without a cast
blkdev->sring = xc_gnttab_map_grant_ref(blkdev->xendev.gnttabdev,
^
/home/guest/Documents/tools/pemu-master/rules.mak:28: recipe for target 'hw/block/xen_disk.o' failed
make: *** [hw/block/xen_disk.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions