All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Weil <sw@weilnetz.de>
To: Liviu Ionescu <ilg@livius.net>
Cc: Peter Maydell <peter.maydell@linaro.org>,
	QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] 64-bit build of qemu-system-arm with mingw-w64 not functional
Date: Wed, 08 Apr 2015 08:20:52 +0200	[thread overview]
Message-ID: <5524C8C4.1050706@weilnetz.de> (raw)
In-Reply-To: <6B12EA2D-7ED7-40F6-BBA1-031B44CE6A43@livius.net>

Am 08.04.2015 um 00:45 schrieb Liviu Ionescu:
>> On 08 Apr 2015, at 01:36, Peter Maydell <peter.maydell@linaro.org> wrote:
>>
>> No,  I built an actual 64 bit Windows binary and it worked.
> ok, then it must be only a matter of configure, which does not detect running on mingw-w64 to set the required options (perhaps like -mthreads  -D_POSIX=1), and I need to set them manually.
>
> I'll look at Stephen Weil's options and try again.

Here they are:

../../../configure --cross-prefix=x86_64-w64-mingw32- 
--enable-trace-backend=stderr 
--extra-cflags=-Wno-missing-format-attribute && make

So you can see that I build in a subdirectory, enable a trace backend 
(no special reason
for that, just to cover more code during the build) and suppress a 
compiler warning.

And yes, I use mingw-w64.Here is my package list (from Debian Jessie):

ii  binutils-mingw-w64-i686 2.22-8+deb7u2+2+deb7u1        amd64        
Cross-binutils for Win32 (x86) using MinGW-w64
ii  binutils-mingw-w64-x86-64 2.22-8+deb7u2+2+deb7u1        amd64        
Cross-binutils for Win64 (x64) using MinGW-w64
ii  g++-mingw-w64 4.6.3-14+8                    all          GNU C++ 
compiler for MinGW-w64
ii  g++-mingw-w64-i686 4.6.3-14+8                    amd64        GNU 
C++ compiler for MinGW-w64 targeting Win32
ii  g++-mingw-w64-x86-64 4.6.3-14+8                    amd64        GNU 
C++ compiler for MinGW-w64 targeting Win64
ii  gcc-mingw-w64 4.6.3-14+8                    all          GNU C 
compiler for MinGW-w64
ii  gcc-mingw-w64-base 4.6.3-14+8                    amd64        GNU 
Compiler Collection for MinGW-w64 (base package)
ii  gcc-mingw-w64-i686 4.6.3-14+8                    amd64        GNU C 
compiler for MinGW-w64 targeting Win32
ii  gcc-mingw-w64-x86-64 4.6.3-14+8                    amd64        GNU 
C compiler for MinGW-w64 targeting Win64
ii  gdb-mingw-w64 7.4.1-1.1+5                   amd64        
Cross-debugger for Win32 and Win64 using MinGW-w64
ii  gdb-mingw-w64-target 7.4.1-1.1+5                   all          
Cross-debugger server for Win32 and Win64 using MinGW-w64
ii  gtk-mingw-w64-x86-64 3.6.4-20131201-2              all          
Converted tgz package
ii  gtk2.0-mingw-w64-i686 2.24.10-20120208-2            all          
Converted tgz package
ii  libfdt-mingw-w64-i686 1.4.0-2                       all          
Converted tgz package
ii  libfdt-mingw-w64-x86-64 1.4.0-2                       all          
Converted tgz package
ii  libpthreads-mingw-w64 2.9.1+dfsg-1                  all          
POSIX threads library for 32- and 64-bit Windows
ii  mingw-w64 2.0.3-1                       all          Development 
environment targetting 32- and 64-bit Windows
ii  mingw-w64-i686-dev 2.0.3-1                       all          
Development files for MinGW-w64 targeting Win32
ii  mingw-w64-tools 2.0.3-1                       amd64        
Development tools for 32- and 64-bit Windows
ii  mingw-w64-x86-64-dev 2.0.3-1                       all          
Development files for MinGW-w64 targeting Win64

The last time when I had to debug a crash on Windows, I used gdb to find 
the reason.

Regards
Stefan

  parent reply	other threads:[~2015-04-08  6:21 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-07 21:21 [Qemu-devel] 64-bit build of qemu-system-arm with mingw-w64 not functional Liviu Ionescu
2015-04-07 21:30 ` Peter Maydell
2015-04-07 21:46   ` Liviu Ionescu
2015-04-07 22:30     ` Liviu Ionescu
2015-04-07 22:36     ` Peter Maydell
2015-04-07 22:45       ` Liviu Ionescu
2015-04-07 23:10         ` Peter Maydell
2015-04-08 14:13           ` Liviu Ionescu
2015-04-08 14:39             ` Peter Maydell
2015-04-08  6:20         ` Stefan Weil [this message]
2015-04-08  6:38           ` Liviu Ionescu
2015-04-08 12:51           ` Liviu Ionescu
2015-04-08 20:27           ` Liviu Ionescu
2015-04-09  5:12             ` Stefan Weil
2015-04-09  7:40               ` Liviu Ionescu
2015-04-09 14:07                 ` Liviu Ionescu
2015-04-09 17:41                   ` Stefan Weil
2015-04-09 17:58                     ` Peter Maydell
2015-04-09 19:44                       ` Liviu Ionescu
2015-04-09 20:43                         ` Stefan Weil
2015-04-09 20:53                           ` Peter Maydell
2015-04-10 19:31                           ` Liviu Ionescu
2015-04-09 20:51                       ` 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=5524C8C4.1050706@weilnetz.de \
    --to=sw@weilnetz.de \
    --cc=ilg@livius.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.