Skip to content

unknown symbol `___divmoddi4' error with clock on 32-bit windows

I got this error when building with 32-bit ghc 8.4.2 on appveyor:

--  While building custom Setup.hs for package hledger-lib-1.9.99 using:
      C:\sr\setup-exe-cache\i386-windows\Cabal-simple_Z6RU0evB_2.2.0.1_ghc-8.4.2.exe --builddir=.stack-work\dist\ba067387 build lib:hledger-lib --ghc-options " -ddump-hi -ddump-to-file"
    Process exited with code: ExitFailure 1
    Logs have been written to: C:\pr\.stack-work\logs\hledger-lib-1.9.99.log
    Configuring hledger-lib-1.9.99...
    Preprocessing library for hledger-lib-1.9.99..
    Building library for hledger-lib-1.9.99..
    [ 1 of 48] Compiling Hledger.Utils.Color ( Hledger\Utils\Color.hs, .stack-work\dist\ba067387\build\Hledger\Utils\Color.o )
    [ 2 of 48] Compiling Hledger.Utils.Test ( Hledger\Utils\Test.hs, .stack-work\dist\ba067387\build\Hledger\Utils\Test.o )
    [ 3 of 48] Compiling Hledger.Utils.UTF8IOCompat ( Hledger\Utils\UTF8IOCompat.hs, .stack-work\dist\ba067387\build\Hledger\Utils\UTF8IOCompat.o )
    [ 4 of 48] Compiling Hledger.Utils.Regex ( Hledger\Utils\Regex.hs, .stack-work\dist\ba067387\build\Hledger\Utils\Regex.o )
    [ 5 of 48] Compiling Hledger.Utils.Tree ( Hledger\Utils\Tree.hs, .stack-work\dist\ba067387\build\Hledger\Utils\Tree.o )
    [ 6 of 48] Compiling Hledger.Data.Types ( Hledger\Data\Types.hs, .stack-work\dist\ba067387\build\Hledger\Data\Types.o )
    ghc.EXE: unable to load package `clock-0.7.2'
    ghc.EXE:  | C:\sr\snapshots\673e3da0\lib\i386-windows-ghc-8.4.2\clock-0.7.2-Cf9UTsaN2AjEpBnoMpmgkU\HSclock-0.7.2-Cf9UTsaN2AjEpBnoMpmgkU.o: unknown symbol `___divmoddi4'
Command exited with code 1
APPVEYOR_SAVE_CACHE_ON_ERROR is set to 'true' - cache will be updated

https://ci.appveyor.com/project/simonmichael/hledger/build/master-404

We think this is related: https://github.com/zfsonlinux/zfs/issues/6417

Trac metadata
Trac field Value
Version 8.4.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information