haskell-logger icon indicating copy to clipboard operation
haskell-logger copied to clipboard

logger doesn't compile

Open bonds opened this issue 8 years ago • 2 comments

I created a new project via stack new stacktest, added logger as a extra-dep in stack.yml, added logger as a dependency in the cabal file, and tried to build. Didn't work, got this error:

~/s/stacktest ❯❯❯ stack build                       Sun Mar 27 12:54:21 PDT 2016
logger-0.1.0.2: configure
logger-0.1.0.2: build
Progress: 1/2
--  While building package logger-0.1.0.2 using:
      /home/scott/.stack/setup-exe-cache/x86_64-openbsd/setup-Simple-Cabal-1.22.5.0-ghc-7.10.3 --builddir=.stack-work/dist/x86_64-openbsd/Cabal-1.22.5.0 build --ghc-options " -ddump-hi -ddump-to-file"
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/scott/src/stacktest/.stack-work/logs/logger-0.1.0.2.log

    Configuring logger-0.1.0.2...
    Building logger-0.1.0.2...
    Preprocessing library logger-0.1.0.2...

    /tmp/stack1963/logger-0.1.0.2/src/System/Log/Filter.hs:3:14: Warning:
        -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS

    /tmp/stack1963/logger-0.1.0.2/src/System/Log/Format.hs:3:14: Warning:
        -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS

    /tmp/stack1963/logger-0.1.0.2/src/System/Log/Data.hs:8:14: Warning:
        -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS
    [ 1 of 15] Compiling System.Log.Log   ( src/System/Log/Log.hs, .stack-work/dist/x86_64-openbsd/Cabal-1.22.5.0/build/System/Log/Log.o )
    [ 2 of 15] Compiling System.Log.Data  ( src/System/Log/Data.hs, .stack-work/dist/x86_64-openbsd/Cabal-1.22.5.0/build/System/Log/Data.o )
    ghc: /home/scott/.stack/snapshots/x86_64-openbsd/lts-5.9/7.10.3/lib/x86_64-openbsd-ghc-7.10.3/atomic-primops-0.8.0.3-KJ263HDUG22HNNccH10Gth/HSatomic-primops-0.8.0.3-KJ263HDUG22HNNccH10Gth.o: unknown symbol `store_load_barrier'
    ghc: unable to load package `atomic-primops-0.8.0.3'
~/s/stacktest ❯❯❯              

bonds avatar Mar 27 '16 20:03 bonds

Hello @bonds! I'm sorry I was out of office for a month (a really long business trip). I'll check that out. Anyway the error seems really strange. Have you tried digging what has caused it? Anyway, there will be new version of haskell-logger soon, I'm working on it in a very limited timeframe right now.

wdanilo avatar Jul 23 '16 20:07 wdanilo

No worries, I know what its like to be busy. ;) I haven't tried digging around more, I'm just using a different logging lib for now.

bonds avatar Jul 25 '16 15:07 bonds