blob: d480fb9e36fe47aa7687ffdb70e8e9de31fc4416 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
error while building from source on Ubuntu 16.04
I'm trying to build Qemu from source (from git) as specified here: http://www.qemu-project.org/download/#source
Here is the git commit hash for the source: 7d2c6c95511e42dffe2b263275e09957723d0ff4
During the 'make' step, I get the following error:
migration/rdma.c: In function ‘qemu_rdma_dump_id’:
migration/rdma.c:749:21: error: ‘struct ibv_port_attr’ has no member named ‘link_layer’
migration/rdma.c:750:22: error: ‘struct ibv_port_attr’ has no member named ‘link_layer’
migration/rdma.c:750:37: error: ‘IBV_LINK_LAYER_INFINIBAND’ undeclared (first use in this function)
migration/rdma.c:750:37: note: each undeclared identifier is reported only once for each function it appears in
migration/rdma.c:751:24: error: ‘struct ibv_port_attr’ has no member named ‘link_layer’
migration/rdma.c:751:39: error: ‘IBV_LINK_LAYER_ETHERNET’ undeclared (first use in this function)
migration/rdma.c: In function ‘qemu_rdma_broken_ipv6_kernel’:
migration/rdma.c:850:26: error: ‘struct ibv_port_attr’ has no member named ‘link_layer’
migration/rdma.c:850:41: error: ‘IBV_LINK_LAYER_INFINIBAND’ undeclared (first use in this function)
migration/rdma.c:852:33: error: ‘struct ibv_port_attr’ has no member named ‘link_layer’
migration/rdma.c:852:48: error: ‘IBV_LINK_LAYER_ETHERNET’ undeclared (first use in this function)
migration/rdma.c:891:18: error: ‘struct ibv_port_attr’ has no member named ‘link_layer’
make: *** [migration/rdma.o] Error 1
I searched around a bit, my problem seems related to this: https://patchwork.kernel.org/patch/992952/
That issue makes me think my libibverbs may be out of date, but I checked and I have libibverbs-dev installed. Is that the correct version?
FYI, I installed libibverbs-dev as suggested here: http://wiki.qemu-project.org/index.php/Hosts/Linux#Recommended_additional_packages
|