Am 08.04.2015 um 00:45 schrieb Liviu Ionescu:
On 08 Apr 2015, at 01:36, Peter Maydell <peter.mayd...@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