3

[OS=Linux Mint 19.2]

I'm trying to build this version of QEMU so I can experiment with 3D acceleration. But every time I try the build, it always fails. Here are my configuration parameters:

./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

This works. Now, when I run make, it fails on the rdma build:

  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

I have the librdmacm-dev library installed. What am I doing wrong?

2

You’re not doing anything wrong, the code is buggy.

You should replace

return rc;

on line 517 of hw/rdma/vmw/pvrdma_cmd.c with

goto out;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.