
#15094: unknown symbol `___divmoddi4' error with clock on 32-bit windows ---------------------------------+------------------------------ Reporter: simonmic | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.2 Resolution: | Keywords: Operating System: Windows | Architecture: x86 Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+------------------------------ Comment (by RyanGlScott): I see. In that case, how should `clock` be patched so as to ensure backwards compatibility with old versions of GHC? On 32-bit GHC 8.4.2, at least, this patch suffices: {{{#!diff diff --git a/clock.cabal b/clock.cabal index 67d232e..1b21682 100644 --- a/clock.cabal +++ b/clock.cabal @@ -74,6 +74,10 @@ library c-sources: cbits/hs_clock_darwin.c if os(windows) c-sources: cbits/hs_clock_win32.c + + -- See https://ghc.haskell.org/trac/ghc/ticket/15094 + if arch(i386) + extra-libraries: gcc_s_dw2-1 include-dirs: cbits ghc-options: -O3 -Wall }}} Should that work for other GHCs as well? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15094#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler