Re: Cross-building Windows binaries using the mingw toolchain

2014-05-06 Thread Florian Weimer
On 05/04/2014 08:50 PM, Ludovic HOCHET wrote: I finally got it to work. When running on 64-bit Windows, you have to specify --with-target-bits=32, otherwise building with Visual Studio Express will fail. It's obvious in retrospect, but somewhat difficult to figure out, considering that ./confi

Re: Cross-building Windows binaries using the mingw toolchain

2014-05-04 Thread Ludovic HOCHET
On Fri, May 2, 2014 at 4:19 PM, Florian Weimer wrote: > On 04/30/2014 07:00 PM, Volker Simonis wrote: > >> But why can't you install Cygwin and the free Microsoft Express/SDK >> compilers and do a native build. > > > I finally got it to work. When running on 64-bit Windows, you have to > specify

Re: Cross-building Windows binaries using the mingw toolchain

2014-05-02 Thread Florian Weimer
On 04/30/2014 07:00 PM, Volker Simonis wrote: But why can't you install Cygwin and the free Microsoft Express/SDK compilers and do a native build. I finally got it to work. When running on 64-bit Windows, you have to specify --with-target-bits=32, otherwise building with Visual Studio Expre

Re: Cross-building Windows binaries using the mingw toolchain

2014-05-02 Thread Florian Weimer
On 05/02/2014 08:26 AM, Ivan Krylov wrote: > Suppose you are working on a cross-platform bug or feature. You want to make sure that the fix works on Windows as well. I would think that testing the fix with cross-compiled build would be insufficient for the reasons that Volker lists. If the produ

Re: Cross-building Windows binaries using the mingw toolchain

2014-05-01 Thread Ivan Krylov
What would this give in practical terms? Suppose you are working on a cross-platform bug or feature. You want to make sure that the fix works on Windows as well. I would think that testing the fix with cross-compiled build would be insufficient for the reasons that Volker lists. If the produced

Re: Cross-building Windows binaries using the mingw toolchain

2014-04-30 Thread Volker Simonis
On Wed, Apr 30, 2014 at 6:31 PM, Florian Weimer wrote: > On 04/30/2014 06:16 PM, Volker Simonis wrote: > >> The first one is to make the OpenJDK compile on Windows with the MinGW >> toolchain (instead of Cygwin). This currently doesn't work out of the >> box but is relatively easy to achieve (see

Re: Cross-building Windows binaries using the mingw toolchain

2014-04-30 Thread Florian Weimer
On 04/30/2014 06:16 PM, Volker Simonis wrote: The first one is to make the OpenJDK compile on Windows with the MinGW toolchain (instead of Cygwin). This currently doesn't work out of the box but is relatively easy to achieve (see for example "8022177: Windows/MSYS builds broken" https://bugs.ope

Re: Cross-building Windows binaries using the mingw toolchain

2014-04-30 Thread Volker Simonis
Hi Florian, there are two different points to consider here. The first one is to make the OpenJDK compile on Windows with the MinGW toolchain (instead of Cygwin). This currently doesn't work out of the box but is relatively easy to achieve (see for example "8022177: Windows/MSYS builds broken" ht

Cross-building Windows binaries using the mingw toolchain

2014-04-30 Thread Florian Weimer
I noticed that cross-building Windows binaries is currently not supported. It seems that Hotspot in particular assumes that the host and target operating systems are the same (for examples, Linux-to-Linux cross builds are support). Assuming I can get it to work within the current build system