[GHC] #9218: Upgrade the version of MinGW shipped with GHC
#9218: Upgrade the version of MinGW shipped with GHC ------------------------------------+--------------------------------- Reporter: komadori | Owner: komadori Type: task | Status: new Priority: normal | Milestone: 7.10.1 Component: Build System | Version: 7.8.2 Keywords: | Operating System: Windows Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #3390 | ------------------------------------+--------------------------------- The Windows binary distribution of GHC incorporates a version of MinGW which has not been updated for several releases and is now out-of-date. It should be upgraded. The previous time this was done appears to correlate with ticket #3390. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC ---------------------------------+------------------------------------ Reporter: komadori | Owner: komadori Type: task | Status: new Priority: normal | Milestone: 7.10.1 Component: Build System | Version: 7.8.2 Resolution: | Keywords: Operating System: Windows | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: #3390 ---------------------------------+------------------------------------ Comment (by komadori): The MinGW binaries used by the GHC build are stored in a git repository (http://git.haskell.org/ghc-tarballs.git/tree). Note that the ia32 binaries use the original MinGW and the amd64 binaries use the MinGW-w64 fork. kyra suggests (http://www.haskell.org/pipermail/ghc- devs/2014-June/005172.html) switching to use MinGW-w64 for both platforms, but this apparently requires some patches to GHC. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC ---------------------------------+------------------------------------ Reporter: komadori | Owner: komadori Type: task | Status: new Priority: normal | Milestone: 7.10.1 Component: Build System | Version: 7.8.2 Resolution: | Keywords: Operating System: Windows | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: #3390 ---------------------------------+------------------------------------ Comment (by simonpj): Robin, as [http://www.haskell.org/pipermail/ghc-devs/2014-June/005174.html my email to you] (who I is komadori, comment 1) says, we'd be thrilled if felt like leading or partnering with eg. Kyra to do this. Thank you! Simon -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC ---------------------------------+------------------------------------ Reporter: komadori | Owner: komadori Type: task | Status: new Priority: normal | Milestone: 7.10.1 Component: Build System | Version: 7.8.2 Resolution: | Keywords: Operating System: Windows | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: #3390 ---------------------------------+------------------------------------ Changes (by niklasl): * cc: niklasl (added) -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: komadori Type: task | Status: new Priority: normal | Milestone: 7.10.1 Component: Build | Version: 7.8.2 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: #3390 Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): GHC's out-of-date version of MinGW-w64 currently prevents me from developing a Windows version of [https://github.com/RyanGlScott/bluetooth Bluetooth libraries for Haskell]. GHC's version of MinGW-w64 (2.0) [http://comments.gmane.org/gmane.comp.gnu.mingw.w64.general/10121 doesn't pack the necessary Bluetooth structs correctly], whereas the current version (3.1) does. Attempting to link against the most recent MinGW-w64's libraries results in problems as well, since the Bluetooth-related headers have changed substantially (e.g., the [http://sourceforge.net/p/mingw-w64/bugs/355/ NS_BTH macro] was introduced), and compilation often results in [https://ghc.haskell.org/trac/ghc/ticket/7056 this issue] (usually with {{{cabal repl}}}). In addition, the Bluetooth functionality is not available on MinGW, only on MinGW-w64, so switching to minGW-w64 for both Windows architectures would allow me to develop for 32-bit Windows as well. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: komadori Type: task | Status: new Priority: normal | Milestone: 7.10.1 Component: Build | Version: 7.8.2 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: #3390 Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by hvr): See also [http://thread.gmane.org/gmane.comp.lang.haskell.ghc.devel/4883/ this ghc-devs thread] -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: komadori Type: task | Status: new Priority: normal | Milestone: 7.10.1 Component: Build | Version: 7.8.2 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: #3390 Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by gintas): * cc: gintas (added) -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: komadori Type: task | Status: new Priority: normal | Milestone: 7.10.1 Component: Build | Version: 7.8.2 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: #3390 Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by hamish): * cc: hamish (added) -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:7> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: gintas Type: task | Status: new Priority: normal | Milestone: 7.10.1 Component: Build | Version: 7.8.2 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: #3390 Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by gintas): * owner: komadori => gintas Comment: I am looking into this. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:8> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: gintas Type: task | Status: new Priority: normal | Milestone: 7.10.1 Component: Build | Version: 7.8.2 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: #3390 Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by komadori): That's good :-). I've had no time. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:9> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: gintas Type: task | Status: new Priority: normal | Milestone: 7.10.1 Component: Build | Version: 7.8.2 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: #3390 Test Case: | Blocking: | Differential Revisions: Phab:D339 | -------------------------------------+------------------------------------- Changes (by gintas): * differential: => Phab:D339 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:10> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: gintas Type: task | Status: patch Priority: normal | Milestone: 7.10.1 Component: Build | Version: 7.8.2 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: #3390 Test Case: | Blocking: | Differential Revisions: Phab:D339 | -------------------------------------+------------------------------------- Changes (by gintas): * status: new => patch -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:11> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: gintas Type: task | Status: patch Priority: normal | Milestone: 7.10.1 Component: Build | Version: 7.8.2 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: #3390 Test Case: | Blocking: | Differential Revisions: Phab:D339 | -------------------------------------+------------------------------------- Comment (by awson): Here I propose my patchset for `rts/Linker.c` (against current HEAD). It intersects with Gintas' one, but does a bit more (`COMDAT` support for gcc 4.9.x) and does some things in a more straightforward manner -- mostly in handling name decoration things. What's going on with name decoration? Well, original code have some crufty and ad-hocish paths related mostly to very old mingw gcc/binutils/runtime combinations. Now mingw-w64 offers pretty uniform and MS-compatible decoration scheme across its tools and runtime. The scheme is pretty straightforward: on 32 bit objects symbols are exported with underscore prepended (and `@` + stack size suffix appended for `stdcall` functions), on 64 bits no underscore is prepended and no suffix is appended because we have no `stdcall` convention on 64 bits. On top of that `__imp_` prefix is further prepended for `dllimport`ed symbols. Mingw-w64 runtime is conformant to MS declaring all win32 symbols `dllimport`ed, while old mingw is not and this is why 32-bit cases differs so much. I commented on this extensively in #7097 and #2283. My patch reflects these considerations and also unifies a bunch of RTS imports between 32 and 64 bit cases. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:12> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: gintas Type: task | Status: patch Priority: normal | Milestone: 7.10.1 Component: Build | Version: 7.8.2 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: #3390 Test Case: | Blocking: | Differential Revisions: Phab:D339 | -------------------------------------+------------------------------------- Comment (by gintas): awson, thanks for the patch! I'll get to testing it right away. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:13> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: gintas Type: task | Status: patch Priority: normal | Milestone: 7.10.1 Component: Build | Version: 7.8.2 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: #3390 Test Case: | Blocking: | Differential Revisions: Phab:D339 | -------------------------------------+------------------------------------- Comment (by awson): Perhaps I should mention this patch solves `swprintf` problem a bit differently from your approach (I've already [https://ghc.haskell.org/trac/ghc/ticket/9726#comment:1 commented on this]). Also I didn't test it on 32 bits for quite a long time (several months or so). -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:14> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: gintas Type: task | Status: patch Priority: normal | Milestone: 7.10.1 Component: Build | Version: 7.8.2 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: #3390 Test Case: | Blocking: | Differential Revisions: Phab:D339 | -------------------------------------+------------------------------------- Comment (by gintas): Yep, I'm aware of _CRT_NON_CONFORMING_SWPRINTFS. I'll try testing on 32-bit, will let you know how that goes. Thanks again. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:15> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: gintas Type: task | Status: patch Priority: normal | Milestone: 7.10.1 Component: Build | Version: 7.8.2 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: #3390 Test Case: | Blocking: | Differential Revisions: Phab:D339 | -------------------------------------+------------------------------------- Comment (by gintas): I've run validate.sh on Windows with x86_64 and i686 toolchains, both are looking reasonable with kyra's patch. There are some failures, but most of them are also there with the baseline. I think the only remaining blocker is the mirror location for mingw-w64 packages on download.haskell.org in case the files on sourceforge are removed. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:16> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: gintas Type: task | Status: patch Priority: normal | Milestone: 7.10.1 Component: Build | Version: 7.8.2 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: #3390 Test Case: | Blocking: 9215 | Differential Revisions: Phab:D339 | -------------------------------------+------------------------------------- Changes (by thomie): * blocking: => 9215 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:17> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: gintas Type: task | Status: patch Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.8.2 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: 9014 | Test Case: Related Tickets: #3390 | Blocking: 9215 | Differential Revisions: Phab:D339 -------------------------------------+------------------------------------- Changes (by RyanGlScott): * cc: RyanGlScott (added) -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:20> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: gintas Type: task | Status: patch Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.8.2 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: 9014 | Blocking: 9215 Related Tickets: #3390 | Differential Revisions: Phab:D339 -------------------------------------+------------------------------------- Comment (by lukexi): Would be awesome to get this merged! This causes tons of noise on Windows. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:21> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: gintas Type: task | Status: patch Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.8.2 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: 9014 | Blocking: 9215 Related Tickets: #3390 | Differential Revisions: Phab:D339 -------------------------------------+------------------------------------- Comment (by thomie): Status update. Nobody is working on this at the moment. GHC sees very little Windows volunteers in general. The unfinished patch in Phab:D339 does (too) many things: - use [http://mingw-w64.org MinGW-w64] instead of [http://www.mingw.org/ mingw] for 32-bit Windows also. - linker changes needed to go with that, mostly from awson's patch in comment:12 - change the provider of the [http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Wi... 32bit] and [http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Wi... 64bit] packages from rubenvb to mingw-builds. By default this results in much [https://phabricator.haskell.org/D339#25977 larger] downloads (2x for 64bit, 5x for 32bit), which means #9014 should be fixed first. - remove all Perl dependencies, which means it's waiting for #9832. - downloads mingw during `./configure` step, instead of via explicit `git clone ...ghc-tarballs.git`. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:22> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: gintas Type: task | Status: patch Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.8.2 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: 9014 | Blocking: 9215 Related Tickets: #3390 #10705 | Differential Revisions: Phab:D339 -------------------------------------+------------------------------------- Changes (by Phyx-): * related: #3390 => #3390 #10705 Comment: I've started splitting this up to get it in:
•downloads mingw during ./configure step, instead of via explicit git clone ...ghc-tarballs.git. This is now done in #10705
[[BR]]
•change the provider of the 32bit and 64bit packages from rubenvb to mingw-builds. By default this results in much larger downloads (2x for 64bit, 5x for 32bit), which means #9014 should be fixed first. Any particular reason why this was done? Was there anything missing from the rubenvb builds?
-- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:23> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: gintas Type: task | Status: patch Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.8.2 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: 9014 | Blocking: 9215 Related Tickets: #3390 #10705 | Differential Revisions: Phab:D339 #10726 | -------------------------------------+------------------------------------- Changes (by Phyx-): * related: #3390 #10705 => #3390 #10705 #10726 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:24> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: gintas Type: task | Status: patch Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.8.2 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: 9014 | Blocking: 9215 Related Tickets: #3390 #10705 | Differential Revisions: Phab:D339 #10726 | -------------------------------------+------------------------------------- Comment (by thomie): awson: your patch is now in https://phabricator.haskell.org/D1123, maybe you could give it a quick glance and a thumbs up? Please either comment here or by creating an account on [wiki:Phabricator]. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:25> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: gintas Type: task | Status: patch Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.8.2 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: 9014 | Blocking: 9215 Related Tickets: #3390 #10705 | Differential Revisions: Phab:D339 #10726 | -------------------------------------+------------------------------------- Comment (by thomie): awson: do you have any idea what that test failure in `ghci/prog003` is about? -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:26> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: gintas Type: task | Status: patch Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.8.2 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: 9014 | Blocking: 9215 Related Tickets: #3390 #10705 | Differential Revisions: Phab:D339 #10726 | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"7b211b4e5a38efca437d76ea442495370da7cc9a/ghc" 7b211b4/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="7b211b4e5a38efca437d76ea442495370da7cc9a" Upgrade GCC to 5.2.0 for Windows x86 and x86_64 This patch does a few things - Moved GHC x86 to MinGW-w64 (Using Awson's patch) - Moves Both GHCs to MSYS2 toolchains - Completely removes the dependencies on the git tarball repo - Downloads only the required tarball for the architecture for which we are building - Downloads the perl tarball is missing as well - Fixed a few bugs in the linker to fix tests on Windows The links currently point to repo.msys2.org and GitHub, it might be more desirable to mirror them on http://downloads.haskell.org/~ghc/mingw/ as with the previous patch attempt. For more details on what the MSYS2 packages I include see #10726 (Awson's comment). but it should contain all we need and no python or fortran, which makes the uncompressed tar a 1-2 hundreds mb smaller. The `GCC 5.2.0` in the package supports `libgcc` as a shared library, this is a problem since when compiling with -shared the produced dll now has a dependency on `libgcc_s_sjlj-1.dll`. To solve this the flag `-static-libgcc` is now being used for all GCC calls on windows. Test Plan: ./validate was ran both on x86 and x86_64 windows and compared against the baseline. A few test were failing due to Ld no longer being noisy. These were updated. The changes to the configure script *should* be validated by the build bots for the other platforms before landing Reviewers: simonmar, awson, bgamari, austin, thomie Reviewed By: thomie Subscribers: #ghc_windows_task_force, thomie, awson Differential Revision: https://phabricator.haskell.org/D1123 GHC Trac Issues: #10726, #9014, #9218, #10435 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:27> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9218: Upgrade the version of MinGW shipped with GHC -------------------------------------+------------------------------------- Reporter: komadori | Owner: gintas Type: task | Status: closed Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.8.2 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: 9014 | Blocking: 9215 Related Tickets: #3390 #10705 | Differential Revisions: Phab:D339 #10726 | -------------------------------------+------------------------------------- Changes (by thomie): * status: patch => closed * resolution: => fixed Comment: Let's close this one as well. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9218#comment:28> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC