
#15094: unknown symbol `___divmoddi4' error with clock on 32-bit windows ---------------------------------+------------------------------ Reporter: simonmic | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.2 Resolution: invalid | 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 Phyx-): While that will work, it will break the compiler's ability to be able to decide between static and dynamic linking. So I recommended `extra- libraries: gcc` for this exact reason and that linking against dlls directly is just asking for trouble like the postgres ticket. But older gcc before 8.2 won't work with just `gcc`. Also depending on the license if libgcc (LGPL vs GPL) this change may make clock unusable for commercial development. In this specific case I would have just turned off the Optimization for that function. Instead of linking an entire library in just for an optimization that won't really give you any gain in this case. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15094#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler