From: Eric Blake <eblake@redhat.com>
To: Stefan Weil <sw@weilnetz.de>, Mike Ladouceur <mike.ladouceur@live.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Compiling Qemu from Cygwin
Date: Tue, 15 Sep 2015 14:44:04 -0600 [thread overview]
Message-ID: <55F88314.8030604@redhat.com> (raw)
In-Reply-To: <55F87B36.6040907@weilnetz.de>
[-- Attachment #1: Type: text/plain, Size: 1631 bytes --]
On 09/15/2015 02:10 PM, Stefan Weil wrote:
>>
>> CC qga/commands-win32.o
>>> qga/commands-win32.c: In function ‘qmp_guest_set_user_password’:
>>> qga/commands-win32.c:1254:55: warning: passing argument 2 of
>>> ‘g_base64_decode’ from incompatible pointer type
>>> rawpasswddata = (char *)g_base64_decode(password, &rawpasswdlen);
>>> ^
Ugh. Compiling for cygwin should favor POSIX interfaces, not
commands-win32. The build is failing because it isn't even correctly
deciding which files it should be compiling.
> compiling with cygwin is unsupported. I suggest using MinGW-w64
> (which also works for cross compilations under Linux).
Remember, cygwin is itself an emulation layer - you are emulating POSIX
interfaces on top of Windows; which, while making the environment easier
to port to, also makes the environment slower. qemu targets mingw and
not cygwin because qemu is an emulator and already slow enough, without
needing another layer of emulation thrown in the mix.
That said, if you want to port qemu to cygwin and supply patches, I'm
more than willing to help review them. It's just that right now, it's
not my personal itch to write such patches, and that the qemu community
currently favors mingw rather than cygwin.
Also, cygwin comes with cross-compilers, so you can still use your
cygwin setup to compile qemu for mingw (although doing the cross-compile
on a true Linux box will be faster).
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2015-09-15 20:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-15 18:48 [Qemu-devel] Compiling Qemu from Cygwin Mike Ladouceur
2015-09-15 20:10 ` Stefan Weil
2015-09-15 20:44 ` Eric Blake [this message]
2015-09-16 17:51 ` Mike Ladouceur
2015-09-19 2:49 ` Mike Ladouceur
2015-09-19 6:31 ` Stefan Weil
2015-09-21 1:19 ` Mike Ladouceur
2015-09-21 17:38 ` Stefan Weil
2015-09-22 0:00 ` Mike Ladouceur
2015-09-22 5:21 ` Liviu Ionescu
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=55F88314.8030604@redhat.com \
--to=eblake@redhat.com \
--cc=mike.ladouceur@live.com \
--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).