Linux-Mint
QEMU 3.1.1 建構失敗
$$ OS=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
安裝了庫。我究竟做錯了什麼?
你沒有做錯什麼,程式碼有問題。
你應該更換
return rc;
在第517 行
hw/rdma/vmw/pvrdma_cmd.c
goto out;