qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Meson can't recover from deletion of generated QAPI file(s)


From: Marc-André Lureau
Subject: Re: Meson can't recover from deletion of generated QAPI file(s)
Date: Wed, 9 Sep 2020 18:00:06 +0400

Hi

On Wed, Sep 9, 2020 at 4:37 PM Markus Armbruster <armbru@redhat.com> wrote:
Watch this:

    $ rm qapi/qapi-types-error.h
    $ make
    Generating qemu-version.h with a meson_exe.py custom command
    Compiling C object qom/libqom.fa.p/object_interfaces.c.o
    In file included from ../qom/object_interfaces.c:4:
    /work/armbru/qemu/include/qapi/error.h:275:10: fatal error: qapi/qapi-types-error.h: No such file or directory
      275 | #include "qapi/qapi-types-error.h"
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make: *** [Makefile.ninja:348: qom/libqom.fa.p/object_interfaces.c.o] Error 1

To recover, I have to run qapi-gen.py manually and exactly right, or
blow away the build tree and start over.

The old build system did what a build system should: it remade the files
that are missing or out of date.

I'm still too clueless about Meson to debug this, but I hope I can learn
from watching you fix it.

It looks like the ninja build handles that fine, so this is most likely a ninja2make conversion issue.


--
Marc-André Lureau

reply via email to

[Prev in Thread] Current Thread [Next in Thread]