* [Qemu-devel] Cross-Compiling Qemu for Aarch64?
@ 2013-05-16 11:09 Mian M. Hamayun
2013-05-16 11:23 ` Peter Maydell
0 siblings, 1 reply; 5+ messages in thread
From: Mian M. Hamayun @ 2013-05-16 11:09 UTC (permalink / raw)
To: qemu-devel
Hello Everyone,
I am currently trying to compile qemu for Aarch64 but so far I haven't
been able to configure qemu for this purpose.
My first objective is to just configure and cross-compile qemu for
Aarch64, which is currently blocked by the qemu's dependency on
cross-compiled "glib-2.12".
For example, when I use the following configure command:
./configure --cross-prefix=aarch64-linux-gnu- --target-list=arm-softmmu
--enable-fdt --static
I get the following error:
ERROR: glib-2.12 required to compile QEMU
This is a well-known dependency and the following pages are linked to
this issue (directly or indirectly) and I have tried all of them without
any success:
https://bugs.launchpad.net/linaro-oe/+bug/1097561
http://people.debian.org/~wookey/bootstrap.html
http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling
https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/arm64bootstrap
I have also tried the latest git repository from John Rigby but I get
the same error:
https://git.linaro.org/gitweb?p=people/jcrigby/qemu-aarch64.git;a=summary
Anyways, I want to know how we can resolve this dependency ?
Some of you might suggest to cross-compile the glib-2.12 from sources
found at:
http://www.linuxfromscratch.org/blfs/view/6.3/general/glib2.html
http://www.gtk.org/api/2.6/glib/glib-cross-compiling.html
but even this option doesn't work for me as the apparent lacking support
for Aarch64 in "glib-2.12".
I have used the following configure command:
./configure --prefix=/my/prefix/path --host=aarch64-linux-gnu
--cache-file=aarch64.cache
with the following aarch64.cache file contents:
glib_cv_long_long_format=I64
glib_cv_stack_grows=no
Any pointers and/or directions for a possible solution will be highly
appreciated.
Thanks in advance,
Hamayun
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Cross-Compiling Qemu for Aarch64?
2013-05-16 11:09 [Qemu-devel] Cross-Compiling Qemu for Aarch64? Mian M. Hamayun
@ 2013-05-16 11:23 ` Peter Maydell
2013-05-17 2:47 ` John Rigby
0 siblings, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2013-05-16 11:23 UTC (permalink / raw)
To: m.hamayun; +Cc: qemu-devel
On 16 May 2013 12:09, Mian M. Hamayun <m.hamayun@virtualopensystems.com> wrote:
> Hello Everyone,
>
> I am currently trying to compile qemu for Aarch64 but so far I haven't been
> able to configure qemu for this purpose.
> My first objective is to just configure and cross-compile qemu for Aarch64,
> which is currently blocked by the qemu's dependency on cross-compiled
> "glib-2.12".
> For example, when I use the following configure command:
>
> ./configure --cross-prefix=aarch64-linux-gnu- --target-list=arm-softmmu
> --enable-fdt --static
>
> I get the following error:
> ERROR: glib-2.12 required to compile QEMU
This is really a "crossbuilding for aarch64" rather than a QEMU
issue; in general for this kind of thing I suspect you're more
likely to find people who know the answer on the Linaro mailing
lists, eg linaro-dev@lists.linaro.org.
You've clearly already found at least some resources, so
your best bet for getting this question answered is to make
a focused post to linaro-dev saying specifically "I tried
X (as suggested in url Y) to get a version of glib for
aarch64 but it didn't work with error message Z."
> Anyways, I want to know how we can resolve this dependency ?
>
> Some of you might suggest to cross-compile the glib-2.12
When the message says "2.12" it doesn't mean "exactly and
only that version", it means "2.12 or any later version".
You're probably more likely to be successful with something
more recent. That said, I wouldn't try a cross-compile
completely from scratch from upstream sources personally.
You really want to be working with whatever is your cross
toolchain's recommended method for getting dependencies
and building against them. This can differ a lot depending
on how your cross environment is supposed to work.
thanks
-- PMM
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Cross-Compiling Qemu for Aarch64?
2013-05-16 11:23 ` Peter Maydell
@ 2013-05-17 2:47 ` John Rigby
2013-05-17 3:16 ` John Rigby
0 siblings, 1 reply; 5+ messages in thread
From: John Rigby @ 2013-05-17 2:47 UTC (permalink / raw)
To: Peter Maydell; +Cc: qemu-devel, m.hamayun
On Thu, May 16, 2013 at 5:23 AM, Peter Maydell <peter.maydell@linaro.org> wrote:
> On 16 May 2013 12:09, Mian M. Hamayun <m.hamayun@virtualopensystems.com> wrote:
>> Hello Everyone,
>>
>> I am currently trying to compile qemu for Aarch64 but so far I haven't been
>> able to configure qemu for this purpose.
>> My first objective is to just configure and cross-compile qemu for Aarch64,
>> which is currently blocked by the qemu's dependency on cross-compiled
>> "glib-2.12".
>> For example, when I use the following configure command:
>>
>> ./configure --cross-prefix=aarch64-linux-gnu- --target-list=arm-softmmu
>> --enable-fdt --static
>>
>> I get the following error:
>> ERROR: glib-2.12 required to compile QEMU
>
I'm cross building in a raring chroot on a precise host. I started
with the instructions here:
https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/arm64bootstrap
I had some trouble and had to install some packages brute force
because wookey's repo was out of sync with the ubuntu repo. Once I
got it working I have not touched it.
I'm trying to reproduce this with what is currently there. Once I get
something working I'll send the steps and add a wiki page somewhere.
--john
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Cross-Compiling Qemu for Aarch64?
2013-05-17 2:47 ` John Rigby
@ 2013-05-17 3:16 ` John Rigby
2013-05-17 17:28 ` Peter Maydell
0 siblings, 1 reply; 5+ messages in thread
From: John Rigby @ 2013-05-17 3:16 UTC (permalink / raw)
To: m.hamayun, Wook Wookey; +Cc: Peter Maydell, qemu-devel
On Thu, May 16, 2013 at 8:47 PM, John Rigby <john.rigby@linaro.org> wrote:
> On Thu, May 16, 2013 at 5:23 AM, Peter Maydell <peter.maydell@linaro.org> wrote:
>> On 16 May 2013 12:09, Mian M. Hamayun <m.hamayun@virtualopensystems.com> wrote:
>>> Hello Everyone,
>>>
>>> I am currently trying to compile qemu for Aarch64 but so far I haven't been
>>> able to configure qemu for this purpose.
>>> My first objective is to just configure and cross-compile qemu for Aarch64,
>>> which is currently blocked by the qemu's dependency on cross-compiled
>>> "glib-2.12".
>>> For example, when I use the following configure command:
>>>
>>> ./configure --cross-prefix=aarch64-linux-gnu- --target-list=arm-softmmu
>>> --enable-fdt --static
>>>
>>> I get the following error:
>>> ERROR: glib-2.12 required to compile QEMU
>>
> I'm cross building in a raring chroot on a precise host. I started
> with the instructions here:
> https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/arm64bootstrap
>
> I had some trouble and had to install some packages brute force
> because wookey's repo was out of sync with the ubuntu repo. Once I
> got it working I have not touched it.
>
> I'm trying to reproduce this with what is currently there. Once I get
> something working I'll send the steps and add a wiki page somewhere.
>
Adding Wookey.
I tried https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/arm64bootstrap
and nothing works past the line where it recommends saving the
tarball.
Wookey, we have folks who would like to cross compile qemu for
aarch64, any ideas?
I have a working raring chroot tarball that I created back in March.
I followed the instructions until failure then grabbed debs by hand
and installed them. Yes ugly I know.
--john
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Cross-Compiling Qemu for Aarch64?
2013-05-17 3:16 ` John Rigby
@ 2013-05-17 17:28 ` Peter Maydell
0 siblings, 0 replies; 5+ messages in thread
From: Peter Maydell @ 2013-05-17 17:28 UTC (permalink / raw)
To: John Rigby; +Cc: Wookey, qemu-devel, m.hamayun
On 17 May 2013 04:16, John Rigby <john.rigby@linaro.org> wrote:
> I tried https://wiki.linaro.org/Platform/DevPlatform/CrossCompile/arm64bootstrap
> and nothing works past the line where it recommends saving the
> tarball.
For folks who are reading this on qemu-devel, Wookey has updated
the versions of packages in the repo that those instructions
used, and provided a quick summary of what you need to install
to get qemu building:
http://lists.linaro.org/pipermail/linaro-dev/2013-May/016004.html
I've also followed that and (after patching with the full
3 patch set from Claudio) got a final compiled binary, though
I haven't tested it yet.
thanks
-- PMM
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-05-17 17:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-16 11:09 [Qemu-devel] Cross-Compiling Qemu for Aarch64? Mian M. Hamayun
2013-05-16 11:23 ` Peter Maydell
2013-05-17 2:47 ` John Rigby
2013-05-17 3:16 ` John Rigby
2013-05-17 17:28 ` Peter Maydell
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).