From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfjMC-0007iq-ST for qemu-devel@nongnu.org; Wed, 08 Apr 2015 02:21:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfjM9-0000Cx-ML for qemu-devel@nongnu.org; Wed, 08 Apr 2015 02:21:00 -0400 Received: from [2a03:4000:1::4e2f:c7ac:d] (port=34079 helo=v220110690675601.yourvserver.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfjM9-0000Cj-DS for qemu-devel@nongnu.org; Wed, 08 Apr 2015 02:20:57 -0400 Message-ID: <5524C8C4.1050706@weilnetz.de> Date: Wed, 08 Apr 2015 08:20:52 +0200 From: Stefan Weil MIME-Version: 1.0 References: <9C252381-354E-4626-A0E1-9AB1E6AA44B1@livius.net> <6B12EA2D-7ED7-40F6-BBA1-031B44CE6A43@livius.net> In-Reply-To: <6B12EA2D-7ED7-40F6-BBA1-031B44CE6A43@livius.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] 64-bit build of qemu-system-arm with mingw-w64 not functional List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liviu Ionescu Cc: Peter Maydell , QEMU Developers Am 08.04.2015 um 00:45 schrieb Liviu Ionescu: >> On 08 Apr 2015, at 01:36, Peter Maydell 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