[操作系统=Linux Mint 19.2]
我正在尝试构建这个版本的 QEMU,以便我可以尝试 3D 加速。但是每次我尝试构建时,它总是失败。这是我的配置参数:
./configure --prefix=/opt/qemu3 \
--target-list=x86_64-softmmu \
--audio-drv-list=pa,alsa,oss \
--enable-gtk \
--disable-vte \
--enable-opengl \
--enable-sdl \
--with-sdlabi=2.0 \
--enable-virglrenderer
这行得通。现在,当我运行时make
,它在 rdma 构建中失败:
CC x86_64-softmmu/hw/rdma/rdma_utils.o
CC x86_64-softmmu/hw/rdma/rdma_backend.o
CC x86_64-softmmu/hw/rdma/rdma_rm.o
CC x86_64-softmmu/hw/rdma/vmw/pvrdma_dev_ring.o
CC x86_64-softmmu/hw/rdma/vmw/pvrdma_cmd.o
/home/me/Development/source/qemu-3.1.1/hw/rdma/vmw/pvrdma_cmd.c: In function ‘create_qp’:
/home/me/Development/source/qemu-3.1.1/hw/rdma/vmw/pvrdma_cmd.c:517:16: error: ‘rc’ undeclared (first use in this function)
return rc;
^~
/home/me/Development/source/qemu-3.1.1/hw/rdma/vmw/pvrdma_cmd.c:517:16: note: each undeclared identifier is reported only once for each function it appears in
/home/me/Development/source/qemu-3.1.1/rules.mak:69: recipe for target 'hw/rdma/vmw/pvrdma_cmd.o' failed
make[1]: *** [hw/rdma/vmw/pvrdma_cmd.o] Error 1
Makefile:483: recipe for target 'subdir-x86_64-softmmu' failed
make: *** [subdir-x86_64-softmmu] Error 2
我已经librdmacm-dev
安装了库。我究竟做错了什么?
你没有做错什么,代码有问题。
你应该更换
在第517 行
hw/rdma/vmw/pvrdma_cmd.c