From: Pavel Butsykin <pbutsykin@odin.com>
To: Fam Zheng <famz@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>
Cc: "Denis V. Lunev" <den@openvz.org>,
Pavel Butsykin <pbutsykin@virtuozzo.com>,
Luiz Capitulino <lcapitulino@redhat.com>,
qemu-devel@nongnu.org, Peter Maydell <peter.maydell@linaro.org>
Subject: Re: [Qemu-devel] [PATCH 2/4] monitor: remove target-specific code from monitor.c
Date: Wed, 9 Sep 2015 14:24:17 +0300 [thread overview]
Message-ID: <55F016E1.7030500@odin.com> (raw)
In-Reply-To: <20150908101304.GA8863@ad.nay.redhat.com>
On 08.09.2015 13:13, Fam Zheng wrote:
> On Tue, 09/08 11:54, Paolo Bonzini wrote:
>>
>> On 08/09/2015 09:09, Denis V. Lunev wrote:
>>> qemu-monitor-info.texi | 151 +++++++
>> This should be added in patch 4, not now.
>>
>>> +const MonitorDef *target_monitor_defs(void) __attribute__((weak));
>>> +
>>> +const MonitorDef *target_monitor_defs(void)
>>> +{
>>> + return NULL;
>>> +}
>> Weak symbols do not work on all platforms. Luckily, making libqemustub
>> a static library gets exactly the same result without the need for weak
>> symbols: the definition from the QEMU object files will hide the stub.
>>
>> You just need to remove __attribute__((weak)), and it should just work.
>>
>> Otherwise, the patches look good to me. Luiz, do you have time to post
>> a pull request for v4, or do you want to pass HMP maintainership as well
>> to someone else?
> Didn't look at the patch, but Patchew is catching this for cross build:
>
> running command: /tmp/qemu-build/configure --prefix=/var/tmp/qemu-build-install --cross-prefix=x86_64-w64-mingw32- --target-list=x86_64-softmmu,aarch64-softmmu ...
> running command: make -j2 ...
> Failed:
> [snip]
> CC aarch64-softmmu/target-arm/kvm-stub.o
> CC aarch64-softmmu/target-arm/translate.o
> CC aarch64-softmmu/target-arm/op_helper.o
> CC aarch64-softmmu/target-arm/helper.o
> CC aarch64-softmmu/target-arm/cpu.o
> CC aarch64-softmmu/target-arm/neon_helper.o
> CC aarch64-softmmu/target-arm/iwmmxt_helper.o
> CC aarch64-softmmu/target-arm/gdbstub.o
> CC aarch64-softmmu/target-arm/psci.o
> CC aarch64-softmmu/target-arm/cpu64.o
> CC aarch64-softmmu/target-arm/translate-a64.o
> CC aarch64-softmmu/target-arm/helper-a64.o
> CC aarch64-softmmu/target-arm/gdbstub64.o
> CC aarch64-softmmu/target-arm/crypto_helper.o
> GEN trace/generated-helpers.c
> CC aarch64-softmmu/gdbstub-xml.o
> CC aarch64-softmmu/trace/generated-helpers.o
> LINK aarch64-softmmu/qemu-system-aarch64w.exe
> monitor.o: In function `get_monitor_def':
> /tmp/qemu-build/monitor.c:2091: undefined reference to `target_monitor_defs'
> collect2: error: ld returned 1 exit status
> Makefile:184: recipe for target 'qemu-system-aarch64w.exe' failed
> make[1]: *** [qemu-system-aarch64w.exe] Error 1
> Makefile:179: recipe for target 'subdir-aarch64-softmmu' failed
> make: *** [subdir-aarch64-softmmu] Error 2
As it turned out, this reaction occurs when using a weak symbol.
next prev parent reply other threads:[~2015-09-09 11:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-08 7:09 [Qemu-devel] [PATCH v3 0/4] Move target- and device specific code from monitor Denis V. Lunev
2015-09-08 7:09 ` [Qemu-devel] [PATCH 1/4] hmp-commands-info: move info_cmds content out of monitor.c Denis V. Lunev
2015-09-08 7:09 ` [Qemu-devel] [PATCH 2/4] monitor: remove target-specific code from monitor.c Denis V. Lunev
2015-09-08 9:54 ` Paolo Bonzini
2015-09-08 10:13 ` Fam Zheng
2015-09-09 11:24 ` Pavel Butsykin [this message]
2015-09-08 13:03 ` Luiz Capitulino
2015-09-08 13:04 ` Paolo Bonzini
2015-09-08 13:13 ` Luiz Capitulino
2015-09-08 13:51 ` Paolo Bonzini
2015-09-09 12:52 ` Stefan Hajnoczi
2015-09-08 7:09 ` [Qemu-devel] [PATCH 3/4] hmp-commands.hx: fix end of table info Denis V. Lunev
2015-09-08 7:09 ` [Qemu-devel] [PATCH 4/4] monitor: added generation of documentation for hmp-commands-info.hx Denis V. Lunev
-- strict thread matches above, loose matches on Subject: below --
2015-09-10 15:38 [Qemu-devel] [PATCH v4 0/4] Move target- and device specific code from monitor Denis V. Lunev
2015-09-10 15:38 ` [Qemu-devel] [PATCH 2/4] monitor: remove target-specific code from monitor.c Denis V. Lunev
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=55F016E1.7030500@odin.com \
--to=pbutsykin@odin.com \
--cc=den@openvz.org \
--cc=famz@redhat.com \
--cc=lcapitulino@redhat.com \
--cc=pbonzini@redhat.com \
--cc=pbutsykin@virtuozzo.com \
--cc=peter.maydell@linaro.org \
--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).