From: "Daniel P. Berrangé" <berrange@redhat.com>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: qemu-devel <qemu-devel@nongnu.org>,
Michael Tokarev <mjt@tls.msk.ru>,
Erik Skultety <eskultet@redhat.com>,
Brian Cain <bcain@quicinc.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Alistair Francis <alistair.francis@wdc.com>,
Bin Meng <bin.meng@windriver.com>
Subject: Re: How do you represent a host gcc and a cross gcc in lcitool?
Date: Wed, 31 May 2023 12:52:08 +0100 [thread overview]
Message-ID: <ZHc06CG9SYVOz7VD@redhat.com> (raw)
In-Reply-To: <87wn0obuk6.fsf@linaro.org>
On Wed, May 31, 2023 at 12:23:34PM +0100, Alex Bennée wrote:
> Hi,
>
> While trying to convert the debian-riscv64-cross docker container to an
> lcitool based one I ran into a problem building QEMU. The configure step
> fails because despite cross compiling we still need a host compiler to
> build the hexagon codegen tooling.
>
> After scratching my head for a while I discovered we did have host GCC's
> in our cross images despite there being no explicit request for them in
> the docker description. It turned out that the gcovr requirement pulled
> in lcov which itself had a dependency on gcc. However this is a bug:
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=987818
>
> which has been fixed in bookworm (and of course sid which is the only
> way we can get a riscv64 build of QEMU at the moment). Hence my hacky
> attempts to get gcc via side effect of another package failed.
>
> Hence the question in $SUBJECT. I tried to add a mapping to lcitool for
> a pseudo hostgcc package:
>
> + hostgcc:
> + default: gcc
> + pkg:
> + MacOS:
> + cross-policy-default: skip
>
> however this didn't work. Do we need a new mechanism for this or am I
> missing a way to do this?
The last case we had this was with glib2 and in that case we
modified mappings.yml so that it has both 'glib2' and 'glib2-native'
I guess we want the same for gcc in this case.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2023-05-31 11:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-31 11:23 How do you represent a host gcc and a cross gcc in lcitool? Alex Bennée
2023-05-31 11:52 ` Daniel P. Berrangé [this message]
[not found] ` <SN6PR02MB4205D202EFB6D6A256ECB93FB8489@SN6PR02MB4205.namprd02.prod.outlook.com>
[not found] ` <87jzwoba78.fsf@linaro.org>
2023-06-23 2:27 ` Alistair Francis
2023-06-23 10:25 ` Alex Bennée
2023-07-03 3:26 ` Alistair Francis
2023-07-03 7:31 ` Alex Bennée
2023-07-03 8:22 ` Erik Skultety
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=ZHc06CG9SYVOz7VD@redhat.com \
--to=berrange@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=alistair.francis@wdc.com \
--cc=bcain@quicinc.com \
--cc=bin.meng@windriver.com \
--cc=eskultet@redhat.com \
--cc=mjt@tls.msk.ru \
--cc=palmer@dabbelt.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).