From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Stefan Weil" <sw@weilnetz.de>,
"Patch Tracking" <patches@linaro.org>,
"QEMU Developers" <qemu-devel@nongnu.org>,
"Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] [PATCH] tci: Fix compile failure by including qemu-common.h
Date: Thu, 9 Jul 2015 11:55:44 -0700 [thread overview]
Message-ID: <CAEgOgz7_jCRWJ-Tk5iztCL-bZSBqT-oMm-uCi8211Y_9BboPrQ@mail.gmail.com> (raw)
In-Reply-To: <CAFEAcA-4c+YRzqxokWtEgvny7xJEN4nXdt-V4K0oM4uo1-+jkA@mail.gmail.com>
On Thu, Jul 9, 2015 at 9:58 AM, Peter Maydell <peter.maydell@linaro.org> wrote:
> On 9 July 2015 at 17:49, Peter Maydell <peter.maydell@linaro.org> wrote:
>> Compilation of TCI was accidentally broken by the recent disassembler
>> changes:
>>
>> CC x86_64-softmmu/arch_init.o
>> In file included from target-i386/cpu-qom.h:23:0,
>> from target-i386/cpu.h:986,
>> from include/qemu-common.h:122,
>> from include/disas/bfd.h:12,
>> from disas/tci.c:20:
>> include/qom/cpu.h:178:43: error: unknown type name ‘disassemble_info’
>> void (*disas_set_info)(CPUState *cpu, disassemble_info *info);
>> ^
>> include/qom/cpu.h:179:1: error:
>> no semicolon at end of struct or union [-Werror]
>> } CPUClass;
>> ^
>> cc1: all warnings being treated as errors
>>
>> The underlying cause of this is an include loop:
>> bfd.h -> qemu-common.h -> target-arm/cpu.h -> target-arm/cpu-qom.h
>> -> qom/cpu.h -> bfd.h
>>
>> which means that if bfd.h is included first then qom/cpu.h doesn't
>> get the definition of the disassemble_info type that it wanted.
>> The easiest fix for this is to include qemu-common.h from tci.c
>> before including disas/bfd.h.
>>
>> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
>
> Applied to master.
>
Thanks,
I'll be adding this one to my own configury for multi-arch testing.
Regards,
Peter
> Note that "make check" on a TCI seems to assert; I'll let
> somebody who cares about TCI look into that.
>
> -- PMM
>
next prev parent reply other threads:[~2015-07-09 18:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-09 16:49 [Qemu-devel] [PATCH] tci: Fix compile failure by including qemu-common.h Peter Maydell
2015-07-09 16:58 ` Peter Maydell
2015-07-09 18:55 ` Peter Crosthwaite [this message]
2015-07-10 19:14 ` Stefan Weil
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=CAEgOgz7_jCRWJ-Tk5iztCL-bZSBqT-oMm-uCi8211Y_9BboPrQ@mail.gmail.com \
--to=peter.crosthwaite@xilinx.com \
--cc=afaerber@suse.de \
--cc=patches@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=sw@weilnetz.de \
/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).