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

GHC ghc-devs at haskell.org
Tue Nov 24 22:59:42 UTC 2015


#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


More information about the ghc-tickets mailing list