[GHC] #10726: Upgrade MingW-w64 distributions for windows

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: new Priority: normal | Milestone: 7.12.1 Component: Build | Version: 7.11 System | Keywords: | Operating System: Windows Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: #9218 #9014 Differential Revisions: | #10435 -------------------------------------+------------------------------------- This is the second part of splitting up #9218. The goal is to move `GHC x86` from `MingW` to `MingW-w64` and to upgrade both the `x86` and the `x86_64` toolchains shipped with `GHC` to newer versions. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: new Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: #10435 | -------------------------------------+------------------------------------- Comment (by Phyx-): Chosen `MinGW-w64` build for this are the `dongsheng` daily builds from the `MinGW-w64` repository. Which avoids the issues mentioned in #9014 . The `GCC` versions will be upgraded to `5.1.1`. To be complete the `dongsheng` builds contain: {{{ binutils 2.25 gdb 7.9.1 make 4.1 gmp 6.0.0 mpfr 3.1.3 mpc 1.0.3 isl 0.14.1 mingw-w64 master gcc 5.1.1 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: patch Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Changes (by Phyx-): * status: new => patch * differential: => Phab:D1123 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: patch Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Comment (by awson): Could we, perhaps, use Msys2 builds for this? They are of a high quality and pretty well supported. Also they have gcc-5.2 and, most important, recently released binutils-2.25.1 which have a very important bug (wrong linking of 64-bit import libraries generated by MS linker) fixed. As of today the transitive closure of packages required is (I believe) this: {{{ mingw-w64-x86_64-crt-git-5.0.0.4531.49c7046-1 mingw-w64-x86_64-winpthreads-git-5.0.0.4538.78dca70-1 mingw-w64-x86_64-headers-git-5.0.0.4531.49c7046-1 mingw-w64-x86_64-libwinpthread-git-5.0.0.4538.78dca70-1 mingw-w64-x86_64-zlib-1.2.8-8 mingw-w64-x86_64-isl-0.14.1-2 mingw-w64-x86_64-mpc-1.0.3-2 mingw-w64-x86_64-mpfr-3.1.3.p0-2 mingw-w64-x86_64-gmp-6.0.0-3 mingw-w64-x86_64-gcc-libs-5.2.0-3 mingw-w64-x86_64-binutils-2.25.1-1 mingw-w64-x86_64-libiconv-1.14-5 mingw-w64-x86_64-gcc-5.2.0-3 }}} The new repo of Msys2 packages is http://repo.msys2.org/mingw. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: patch Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Comment (by Phyx-): I have no problems with that. I'll try to modify the script tomorrow and let validate run over night. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: patch Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * cc: RyanGlScott (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: patch Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Comment (by Phyx-): I've updated the toolchains to 5.2.0. Validate on `x86_64` looks good again, still fixing a few tests on `x86`. See Phabricator. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows
-------------------------------------+-------------------------------------
Reporter: Phyx- | Owner: Phyx-
Type: task | Status: patch
Priority: normal | Milestone: 7.12.1
Component: Build System | Version: 7.11
Resolution: | Keywords:
Operating System: Windows | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123
#10435 |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

recently released binutils-2.25.1 which have a very important bug (wrong
#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: patch Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Comment (by awson): Replying to [comment:3 awson]: linking of 64-bit import libraries generated by MS linker) fixed. Strictly speaking, binutils-2.25.1 doesn't have this bug fixed, but its MSys2 build *has* the relevant patch (and a couple of other useful patches) applied. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: closed Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Changes (by Phyx-): * status: patch => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: merge Priority: normal | Milestone: 7.12.1 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Changes (by thomie): * status: closed => merge -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: merge Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Changes (by thomie): * milestone: 7.12.1 => 7.10.3 Comment: In #10795, user joozek78 asks for a merge to 7.10 of the above patch. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: merge Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Changes (by snoyberg): * cc: snoyberg (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:12 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: merge Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Changes (by joozek78): * cc: joozek78 (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:13 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: merge Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Comment (by snoyberg): Just adding a clarifying comment. The reason for the requested merge to 7.10 is so that gcc can use response files internally, fixing an issue with long linker command line options. This was originally raised in https://ghc.haskell.org/trac/ghc/ticket/8596. The discussion leading up to the requested merge is on Github at https://github.com/commercialhaskell/stack/issues/795#issuecomment-134758338 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:14 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: merge Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Comment (by joozek78): @thomie Is there any estimate for this will be completed? When should I start to worry about this issue not being looked at? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:15 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: merge Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Comment (by thomie): It's not up to me to decide, but rather the 7.10 release manager's: bgamari or thoughtpolice. It's a rather big change though, and hasn't been tested much at all (!). Such large changes usually don't belong in a point release. But since it should make the GHC Windows experience much better, maybe we should make an exception. I just have no idea if there are any serious programs being compiled with GHC on Windows that might break because of this patch, and neither do bgamari or thoughtpolice I think, so maybe that would explain their hesitance to include it (correct me if I'm wrong). Maybe you or snoyberg could send out an email to the various mailinglists, asking if any Windows user is against including this patch. Note: last I heard, it's not even clear there will be a 7.10.3 (I'm not sure why not). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:16 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: merge Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Comment (by simonpj): It is not that we have decided ''not'' to produce 7.10.3. It's just that we'll only produce it if it's actually needed! More specifically, we will produce 7.10.3 if (but only if) * there is a significant body of users * for whom 7.10.2 simply doesn't work * and there is no decent workaround they can use * and for which we can be reasonably sure that the fix isn't going to break anything else (necessitating 7.10.4 to mitigate). I don't know whether or not this ticket is in this category. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:17 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: merge Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Comment (by snoyberg): I can report that at least three separate users have reported to me the complete inability to build their projects on Windows with 7.10.2 or 7.8.4 without this patch (and the related response file fix). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:18 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: merge Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Comment (by hanjoosten): I would also VERY much see this fix released early. My project is bumping on this issue too. (see this ticket: https://github.com/fpco/minghc/issues/91) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:19 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: merge Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Comment (by hanjoosten): Thinking even more about this: Sandboxing is done more and more, resulting in longer paths, thus triggering this bug sooner. Hopefully there will be a 7.10.3 soon. If there is anything I could do to test, please let me know. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:20 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: merge Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Comment (by tejon): Just found this via @hanjoosten in a MinGHC issue thread. Haven't tested yet, but there's a very good chance this will fix building the GTK+ bindings on Windows: current failures mostly revolve around attempts to use -pthreads, which is not available in GCC 4.6.3 but is as of 4.9.x. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:21 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: merge Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Comment (by simonpj): Can someone be specific about what you'd like to see in 7.10.3. I assume the patch in comment:7. Anything else? There is some muttering above about "and the related response file fix" but what is that fix? Anything else? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:22 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: merge Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Revisions: Phab:D1123 #10435 | -------------------------------------+------------------------------------- Comment (by thomie): It concerns #10777 ( 296bc70b5ff6c853f2782e9ec5aa47a52110345e, already merged to the ghc-7.10 branch) and the patch from comment:7 (7b211b4e5a38efca437d76ea442495370da7cc9a). I updated https://ghc.haskell.org/trac/ghc/wiki/Status/GHC-7.10.3. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:23 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: merge Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | -------------------------------------+------------------------------------- Comment (by Phyx-): If this is merged back, it's important to merge e415369e91347d23f149a1a750b267da2ee5d74c as well, as that switches the URL to a Haskell.org location from the msys2.org site in this patch. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:24 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: closed Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed Comment: Is there any reason why we *need* the toolchain upgrade for 7.10.3? Austin has pointed out to me that this sort of change carries with it substantial risk. Given that we want to ensure that 7.10.3 is stable, I think it is reasonable to be a bit conservative here. I'm going to close this for now as 296bc70b5ff6c853f2782e9ec5aa47a52110345e has been merged. If someone has a compelling reason why we need to update the toolchain then feel free to reopen. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:25 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: closed Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | -------------------------------------+------------------------------------- Comment (by bgamari): I've spoken to Phyx- about this issue. It seems there may be compelling reasons to merge (and thomie agrees), * The current GCC contains a bug where it can’t call itself recursively with response files: this means that Michael Snoyman’s response file patch (#8596) is essentially useless without a newer toolchain * The upgrade enables programs to run on Windows Server. As Phyx- said in `#ghc`, > since starting with Server 2008 SEHOP is enabled by default and the 32bit version of GHC (which was using a very old mingw GCC) did not correctly handle the exceptions. So windows would block the executable * Phyx- also said, > under the misc category we get a lot of different bug fixes for binutils. But I am not aware of any specific reported issues reported. Perhaps we could try merging and rope some Windows users into thorough testing pre-release? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:26 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: task | Status: closed Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | -------------------------------------+------------------------------------- Comment (by hanjoosten): There are several reports of problems with using windows and ghc 7.10.*. (see https://github.com/commercialhaskell/stack/issues/466 ). When using sandboxes on not too small program, these problems arise. Currently, our project too cannot use ghc 7.10 because of this. I am prefectly willing to do some testing. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:27 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | -------------------------------------+------------------------------------- Changes (by hanjoosten): * owner: Phyx- => * status: closed => new * resolution: fixed => -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:28 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: closed Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:29 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: closed Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Merged to 7.10. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:30 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Changes (by lukexi): * status: closed => new * cc: bgamari, thomie (added) * resolution: fixed => Comment: I seem to be hitting a regression with 7.10.3 RC1: I get this when trying to link my bindings to Bullet Physics https://github.com/lukexi/bullet-mini {{{ Preprocessing test suite 'cubes' for bullet-mini-0.1.0.0... [2 of 3] Compiling Types ( test\shared\Types.hs, .stack- work\dist\d96ab9d9\build\cubes\cubes-tmp\Types.o ) ghc.exe: unable to load package `bullet-mini-0.1.0.0' ghc.exe: C:\msys64\home\lukex_000\Projects\bullet-mini\.stack- work\dist\d96ab9d9\build\HSbullet-mini-0.1.0.0-2FOziegOC2l7eL6oW7Ffnm.o: unknown symbol `__mingw_vsscanf' }}} The Types module is the first one that uses Template Haskell. I'd previously triumphantly gotten this package building with a modified version of 7.10.2 with the following patches applied: https://github.com/lukexi/ghc/commits/ghc-7.10.2-release-plus-rework- windows-pe-linker So something broke between here and there. So far I've tried updating my entire pacman database but that didn't seem to help. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:31 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by lukexi): I've pushed a commit to https://github.com/lukexi/bullet-mini that should make this easy to repro: {{{stack test :linking --stack-yaml stack-minimal.yaml}}} or {{{cabal test linking}}} should do the trick. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:32 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by awson): `__mingw_vsscanf` resides in `libmingwex.a` which is never mentioned in project's cabal file. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:33 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by lukexi): Thanks awson — I noticed that too and tried to add libmingwex but ran into https://ghc.haskell.org/trac/ghc/ticket/3242 (odd that it worked fine in 7.10.2 + patches, though...) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:34 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by awson): I think the problem is in that `libmingwex.a` is unavailable during project's prelinked object file (`HSbullet- mini-0.1.0.0-2FOziegOC2l7eL6oW7Ffnm.o` in your case) creation. Thus instead of adding `mingwex` to `extra-libraries` try to all something like `-lmingwex` to `ghc-options`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:35 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by lukexi): Progress, sort of? {{{ $ stack test :linking bullet-mini-0.1.0.0: configure (lib + test) Configuring bullet-mini-0.1.0.0... Warning: Instead of 'ghc-options: -lmingwex' use 'extra-libraries: mingwex' Warning: Instead of 'ghc-options: -LC:\msys64\usr\local\ghc\mingw\x86_64-w64-mingw32\lib' use 'extra-lib- dirs: C:\msys64\usr\local\ghc\mingw\x86_64-w64-mingw32\lib' bullet-mini-0.1.0.0: build (lib + test) Preprocessing library bullet-mini-0.1.0.0... [1 of 1] Compiling Physics.Bullet ( src\Physics\Bullet.hs, .stack- work\dist\d96ab9d9\build\Physics\Bullet.o ) GHC runtime linker: fatal error: I found a duplicate definition for symbol coshf whilst processing object file C:\msys64\usr\local\ghc\mingw\x86_64-w64-mingw32\lib\libmingwex.a This could be caused by: * Loading two different object files which export the same symbol * Specifying the same object file twice on the GHCi command line * An incorrect `package.conf' entry, causing some object to be loaded twice. ghc.exe: panic! (the 'impossible' happened) (GHC version 7.10.2.20151030 for x86_64-unknown-mingw32): loadArchive "C:\\msys64\\usr\\local\\ghc\\mingw\\x86_64-w64-mingw32\\lib\\libmingwex.a": failed Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} I used {{{ ghc-options: -LC:\msys64\usr\local\ghc\mingw\x86_64-w64-mingw32\lib -lmingwex }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:36 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): I don't really know how `stack` works, and I am sort of confused why `--interactive` is involved here. Never the less, I don't think anything broke here, interactive was just never fixed. Previously when it built `cabal run` was used as a test. This wouldn't use the runtime linker and should still be working. I think the duplicate symbols error is coming from the fact that the Rts re-exports some symbols from `mingw` but not all. it includes `SymI_HasProto(coshf)` under the comment: {{{ /* These are statically linked from the mingw libraries into the ghc executable, so we have to employ this hack. */ }}} Does `run` still produce a working binary? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:37 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by lukexi): It's the use of Template Haskell that's triggering the runtime linker, but perhaps I'm confused in assuming it's the same as `--interactive`? (I assume you're asking about `run` because you thought I was using `--interactive` — the error happens during compilation so I never get a working binary) OK! I'm able to compile again if I add `SymI_HasProto(__mingw_vsscanf)` to `Linker.c` — is that the right way to go? (The issue you fixed in #10672 happened with both `cabal` and `stack` — since `stack` uses Cabal-as-a-library internally I'm pretty certain `cabal` will do the same thing but I can give it a try! And to restate: the `ghc-7.10.2` tag with #10672's patches applied doesn't manifest the unknown symbol issue mentioned in comment 31 — only 7.10.3 does which is why I'm looking for what broke) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:38 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): Yes, sorry, I was confused as to why the runtime linker was involved during a normal compilation. But `TH` makes sense. I guess a temporary solution to get `7.10.3` out the door is to just re- export everything from `mingwex` since you can't actually specify `-lmingwex` current. But I have wondered and still do why the RTS is re-exporting symbols like this instead of us just linking against `-lmingwex`. Do you have an idea why @awson? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:39 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by lukexi): Looks like `bindings-GLFW` is also affected, with `__ms_vsnprintf` being the missing symbol this time. (No idea why we're re-exporting symbols but that sounds like a fine solution for getting a release out!) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:40 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by Elieux): Wouldn't this help? I'm sorry if it's not relevant, but it's one of the changes I did when I was testing GHC with MSYS2 mingw-w64 toolchains. {{{ diff --git a/rts/package.conf.in b/rts/package.conf.in index 5c6d240..db1d281 100644 --- a/rts/package.conf.in +++ b/rts/package.conf.in @@ -57,9 +57,7 @@ unresolved symbols. */ ,"bfd", "iberty" /* for debugging */ #endif #ifdef HAVE_LIBMINGWEX -# ifndef INSTALLING /* Bundled Mingw is behind */ ,"mingwex" -# endif #endif #ifdef USE_LIBDW , "elf" }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:41 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Changes (by Elieux): * cc: Elieux (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:42 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): Thanks Elieux! I didn't know I was there, I'll give it a try, would be an easy fix. @lukexi your bullet-mini example doesn't compile: {{{ Preprocessing library bullet-mini-0.1.0.0... [1 of 1] Compiling Physics.Bullet ( src\Physics\Bullet.hs, dist\build\Physics\Bullet.o ) src\Physics\Bullet.cpp:2:36: fatal error: btBulletDynamicsCommon.h: No such file or directory compilation terminated. }}} Did you miss a file? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:43 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by lukexi): Oh I think you need to do `git submodule init && git submodule update`! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:44 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by lukexi): (oops, and I forgot to push a fix to the linking test I made a few days ago, so be sure to pull again now!) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:45 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

I guess a temporary solution to get `7.10.3` out the door is to just re- export everything from `mingwex` since you can't actually specify `-lmingwex` current.
But I have wondered and still do why the RTS is re-exporting symbols
#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by Matt): Replying to [comment:39 Phyx-]: like this instead of us just linking against `-lmingwex`. I think the main issue here is that not all symbols from `libmingwex.a` get linked into final ghc executable so some they can't be resolved when running GHC in interactive. Therefore i believe proper solution should be linking `libmingwex.a`as a whole archive when building ghc.exe, instead of just letting GCC to link only used symbols as it does by default. Reexporting those symbols seems like a bad idea, because, if I'm not mistaken, RTS gets linked into ever executable produced by GHC, so this way we are actually forcing possibly unnecessary symbols into every executable? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:46 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): @lukexi thanks, can reproduce it now :) @Elieux unfortunately it seems it's not that easy. The `rts` seems to be a special case again. The linker seems to ignore the `extra-libraries` from the `package.conf`, which explains why you can put anything you want in there and it'll still compile. {{{ 128 emptyPLS :: DynFlags -> PersistentLinkerState 129 emptyPLS _ = PersistentLinkerState { 130 closure_env = emptyNameEnv, 131 itbl_env = emptyNameEnv, 132 pkgs_loaded = init_pkgs, 133 bcos_loaded = [], 134 objs_loaded = [], 135 temp_sos = [] } 136 137 -- Packages that don't need loading, because the compiler 138 -- shares them with the interpreted program. 139 -- 140 -- The linker's symbol table is populated with RTS symbols using an 141 -- explicit list. See rts/Linker.c for details. 142 where init_pkgs = [rtsUnitId] }}}
Therefore i believe proper solution should be linking `libmingwex.a`as a whole archive when building ghc.exe, instead of just letting GCC to link only used symbols as it does by default.
Hence the temporary solution. The package.conf for the `rts` ignores the `extra-libraries` section in the linker. Windows isn't alone here, Mac also re-exports some symbols. And before ripping this out I want to know why. Also I think it's riskier then just adding some extra symbols. **As** it is right now, there is no way to use `libmingwex.a` on Windows.
Reexporting those symbols seems like a bad idea, because, if I'm not mistaken, RTS gets linked into ever executable produced by GHC, so this way we are actually forcing possibly unnecessary symbols into every executable?
Yes, I don't know why it was done this way. However we are already re- exporting some of the symbols. Quite a few in fact. Yes the proper solution is to rip the symbols out and just link against `libmingwex.a` which may get in to `8.0`, but for `7.10.3` I doubt it. It's already at `RC3`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:47 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: normal | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Changes (by lukexi): * Attachment "add_missing_symbols.patch" added. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: patch Priority: high | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Changes (by lukexi): * priority: normal => high * status: new => patch Comment: OK, with these 5 symbols added all of my libraries are working perfectly again. {{{ diff --git a/rts/Linker.c b/rts/Linker.c index 68f1f59..a939e35 100644 --- a/rts/Linker.c +++ b/rts/Linker.c @@ -525,6 +525,11 @@ typedef struct _RtsSymbolVal { SymI_HasProto(isalnum) \ SymI_HasProto(isascii) \ RTS___MINGW_VFPRINTF_SYM \ + SymI_HasProto(__mingw_vsscanf) \ + SymI_HasProto(__mingw_vprintf) \ + SymI_HasProto(__mingw_vsprintf) \ + SymI_HasProto(__ms_vsnprintf) \ + SymI_HasProto(strdup) \ SymI_HasProto(strcmp) \ SymI_HasProto(memmove) \ SymI_HasProto(realloc) \ }}} After fully upgrading my MSYS2 installation I was also able to remove the brittle `extra-lib-dirs` hacks in my libraries that needed `libstdc++-6.dll`, which is great! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:48 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: patch Priority: high | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by lukexi): I've uploaded a build with the patch here (along with bumping Cabal to 1.22.5): https://github.com/lukexi/ghc/releases/download/ghc-7.10.3-rc2-plus- export-symbols/ghc-7.10.2.20151117-x86_64-unknown-mingw32.tar.bz2 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:49 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: patch Priority: high | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): I'm joining the conversation pretty late here, but how exactly did you know which symbols to export in `Linker.c`? I ask since I'm getting some pretty similar errors to what you've been reporting with different packages. For example, when loading `logfloat` in GHCi HEAD: {{{ $ ghc-stage2 --interactive GHCi, version 7.11.20151123: http://www.haskell.org/ghc/ :? for help
import Data.Number.LogFloat log1p 1.0 <interactive>: C:\Users\ryanscot\AppData\Roaming\cabal\x86_64-windows- ghc-7.11.20151123\logfloat-0.13.3.3-4JZYNCXKwghOD60rvMUAcn\HSlogfloat-0.13.3.3-4JZYNCXKwghOD60rvMUAcn.o: unknown symbol `log1p' ghc-stage2.exe: unable to load package `logfloat-0.13.3.3' }}}
And when loading `sdl2` in GHCi HEAD: {{{ $ ghc-stage2 --interactive GHCi, version 7.11.20151123: http://www.haskell.org/ghc/ :? for help
import SDL ticks GHC runtime linker: fatal error: I found a duplicate definition for symbol wmain whilst processing object file C:/Users/ryanscot/Documents/Software/ghc/inplace/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a This could be caused by: * Loading two different object files which export the same symbol * Specifying the same object file twice on the GHCi command line * An incorrect `package.conf' entry, causing some object to be loaded twice. ghc-stage2.exe: panic! (the 'impossible' happened) (GHC version 7.11.20151123 for x86_64-unknown-mingw32): loadArchive "C:/Users/ryanscot/Documents/Software/ghc/inplace/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a": failed
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} Is this because `libmingw32`/`libmingwex` aren't being linked against when building GHC? Also, how can I figure out which symbols to reexport as a temporary fix? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:50 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: patch Priority: high | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): @Lukexi thanks, I'll put the patch up soon. @RyanGIScott hmm can you add -v to the first one and paste the output again? For the second one, I think `libmingw32` has a main function of its own. Try adding `-no-hs-main` but that might be broken based on #2459 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:51 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: patch Priority: high | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * Attachment "logfloat_output.txt" added. runghc -v LogFloat.hs -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: patch Priority: high | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * Attachment "audioexample_output.txt" added. runghc -v -no-hs-main AudioExample.hs -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: patch Priority: high | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): I've attached the results of invoking `runghc -v` on two different files. `LogFloat.hs` is this: {{{#!hs module Main (main) where import Data.Number.LogFloat (log1p) main :: IO () main = print $ log1p 1.0 }}} `AudioExample.hs` is [https://github.com/haskell- game/sdl2/blob/69156dd7b5aad421d70096a47defe02ec3c24688/examples/AudioExample.hs this file], just with the module name `Main` instead of `AudioExample`. Adding `-no-hs-main` didn't appear to change the error message. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:52 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: patch Priority: high | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): @RyanGIScott The first one is indeed because you can't like against `libmingwex` {{{ $ dlltool.exe --output-def libmingwex.def --export-all-symbols libmingwex.a $ grep "log1p" libmingwex.def log1p @ 494 log1pf @ 495 log1pl @ 496 }}} So re-exporting `log1p` should fix it. But this feels like a moving target. Try adding `SymI_HasProto(log1p)` to the list. If you're on `HEAD`, these symbols have been moved to `RtsSymbols.c`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:53 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: patch Priority: high | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): I'm currently trying to track down an issue in `HEAD` so I can't test this myself atm, but @RyanGIScott can you try something for me, since you're linking against `libm.a` try just adding `-lmsvcr120` and see if that links. You may have an older version of the library so check the output of `dir c:\Windows\System32\msvcr*.dll`. This should work since `libm.a` is a stub just to satisfy linking because the symbols are In the Microsoft runtime. @Lukexi instead of re-exporting the symbols, try using the stock `RC3`, can you rebuild your C parts with `-D__USE_MINGW_ANSI_STDIO=0`. This will make `MingW-w64` drop the `__mingw` prefixes and then the symbols should be found in the `msvcr*.dll` as well. So then you can just link against that as well. This could be a workaround if the patch doesn't make it in `7.10.3`. I haven't gotten any response to whether it would. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:54 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: patch Priority: high | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): Wow, I ran `runghc -lmsvcr120 LogFloat.hs` and it works perfectly. It turns out there's another quirk: if I go to the `logfloat` source and run `ghc-stage2 --interactive -isrc src/Data/Number/LogFloat.hs`, I can then invoke `log1p 1.0` without any linker issues. If I run `cabal repl` instead and then call `log1p 1.0`, it can't find the `log1p` symbol. Hm. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:55 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: patch Priority: high | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): LogFloat seems to have a fallback method to a less accurate version depending on if FFI is used: {{{ #ifdef __USE_FFI__ foreign import ccall unsafe "math.h log1p" log1p :: Double -> Double #else -- See statistics:Statistics.Math for a more accurate Haskell -- implementation. log1p :: Double -> Double {-# INLINE [0] log1p #-} log1p x = log (1 + x) #endif }}} `__USE_FFI__` is set in the cabal file but of course won't be set using `--interactive`. Adding `-D__USE_FFI__` to the command should trigger the same error. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:56 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: patch Priority: high | Milestone: 7.10.3 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Alright, I've applied Luke's patch from comment:48 to `ghc-7.10` as bbbf79b91747dbb5ab284f075927d1e1e27aba95./ This will hopefully serve as a sufficient workaround for 7.10.3, although I do hope we can do better for 8.0. Thanks for the testing, everyone! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:57 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: patch Priority: high | Milestone: 8.0.1 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * milestone: 7.10.3 => 8.0.1 Comment: Bumping to 8.0.1. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:58 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: patch Priority: high | Milestone: 8.0.1 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): D'oh, you're right, I forgot about `-D__USE_FFI__`. Running `ghc-stage2 --interactive -D__USE_FFI__ -isrc src/Data/Number/LogFloat.hs` does indeed trigger the same error. Another curiosity: I rebuilt GHC with the following change: {{{#!patch diff --git a/rts/RtsSymbols.c b/rts/RtsSymbols.c index 8413d31..31b190e 100644 --- a/rts/RtsSymbols.c +++ b/rts/RtsSymbols.c @@ -123,6 +123,8 @@ SymI_HasProto(isalnum) \ SymI_HasProto(isascii) \ RTS___MINGW_VFPRINTF_SYM \ + SymI_HasProto(log1p) \ + SymI_HasProto(expm1) \ SymI_HasProto(strcmp) \ SymI_HasProto(memmove) \ SymI_HasProto(realloc) \ }}} And still experienced the same `unknown symbol log1p` error as before. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:59 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: patch Priority: high | Milestone: 8.0.1 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): Sorry, haven't had much time lately to look at GHC the past weeks. I should have free time again next week and I'll try to get as much as my tickets done!. I think I have a proper solution for this for `8.0.1` that doesn't require me to change the code for all platforms. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:60 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: patch Priority: high | Milestone: 8.0.1 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Any progress on this Phyx-? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:61 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: patch Priority: high | Milestone: 8.0.1 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): @bgamari I've tried 2 approaches which haven't worked completely: 1) I tried removing the symbols from the export list and adding `libmingwex` to the rts's `package.conf`and have it just link against it. But turns out the `rts`'s `package.conf` is ignored on all platforms. I didn't want to have to make an exception for Windows here and I don't know why the other platforms also ignore it so I abandoned this approach. 2) I tried marking the symbols we're re-exporting as weak symbols, so there wouldn't be a change to existing code and would allow you to link against `libmingwex`. But unfortunately because of when the other libraries specified by `-l` are linked in, some of the symbols have already been used and thus aren't weak anymore. So I still get duplicate link errors. What I want to try now is leaving them as weak symbols, but loading `libmingwex.a` at `rts` initialization time. Much like how `kernel32` is loaded. This is hopefully early enough that the symbols haven't been used yet. I'll give that a try tonight. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:62 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: new Priority: high | Milestone: 8.0.1 Component: Build System | Version: 7.11 Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 | Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => new Comment: Phyx-, could you perhaps open a new ticket just to track this issue so we can close this ticket? I think most of the information needed has already been written down here in one place or another; it's just a matter of copying it to a new ticket, distilling a clear statement of the problem, and collecting the approaches that you have already tried. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:63 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10726: Upgrade MingW-w64 distributions for windows -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: task | Status: closed Priority: high | Milestone: 8.0.1 Component: Build System | Version: 7.11 Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #9218 #9014 | Differential Rev(s): Phab:D1123 #10435 #11223 | Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * status: new => closed * resolution: => fixed * related: #9218 #9014 #10435 => #9218 #9014 #10435 #11223 Comment: Closing this issue as the error isn't directly related to the upgrade of `GCC` as it predated the upgrade. New issue is now #11223 . -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10726#comment:64 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC