From: Paolo Bonzini <pbonzini@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@redhat.com>, qemu-devel@nongnu.org
Cc: Markus Armbruster <armbru@redhat.com>
Subject: Re: [RFC PATCH] qapi: Incorrect attempt to fix building with MC146818RTC=n
Date: Tue, 7 Jan 2020 11:34:13 +0100 [thread overview]
Message-ID: <0e61692a-b670-153c-d348-5ab292d30a87@redhat.com> (raw)
In-Reply-To: <20191231184916.10235-1-philmd@redhat.com>
On 31/12/19 19:49, Philippe Mathieu-Daudé wrote:
> When configured with --without-default-devices and setting
> MC146818RTC=n, the build fails:
>
> LINK x86_64-softmmu/qemu-system-x86_64
> /usr/bin/ld: qapi/qapi-commands-misc-target.o: in function `qmp_marshal_rtc_reset_reinjection':
> qapi/qapi-commands-misc-target.c:46: undefined reference to `qmp_rtc_reset_reinjection'
> /usr/bin/ld: qapi/qapi-commands-misc-target.c:46: undefined reference to `qmp_rtc_reset_reinjection'
> collect2: error: ld returned 1 exit status
> make[1]: *** [Makefile:206: qemu-system-x86_64] Error 1
> make: *** [Makefile:483: x86_64-softmmu/all] Error 2
>
> This patch tries to fix this, but this is incorrect because QAPI
> scripts only provide TARGET definitions, so with MC146818RTC=y we
> get:
>
> hw/rtc/mc146818rtc.c:113:6: error: no previous prototype for ‘qmp_rtc_reset_reinjection’ [-Werror=missing-prototypes]
> 113 | void qmp_rtc_reset_reinjection(Error **errp)
> | ^~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[1]: *** [rules.mak:69: hw/rtc/mc146818rtc.o] Error 1
>
> Any idea? :)
Adding a stub seems like a good alternative. Is the purpose of this to
change MicroVM's select directive to imply?
Paolo
next prev parent reply other threads:[~2020-01-07 11:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-31 18:49 [RFC PATCH] qapi: Incorrect attempt to fix building with MC146818RTC=n Philippe Mathieu-Daudé
2020-01-07 10:34 ` Paolo Bonzini [this message]
2020-01-13 14:01 ` Markus Armbruster
2020-01-18 20:47 ` Paolo Bonzini
2020-01-21 5:49 ` Markus Armbruster
2020-01-21 8:16 ` Paolo Bonzini
2020-01-21 14:22 ` Markus Armbruster
2020-01-21 14:48 ` Philippe Mathieu-Daudé
2020-01-21 20:44 ` Paolo Bonzini
2020-01-22 5:41 ` Markus Armbruster
2020-01-22 14:30 ` Paolo Bonzini
2020-01-23 8:21 ` Markus Armbruster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0e61692a-b670-153c-d348-5ab292d30a87@redhat.com \
--to=pbonzini@redhat.com \
--cc=armbru@redhat.com \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).