HugoDaniel / timerep

Reading and parsing time in Haskell
zlib License
9 stars 6 forks source link

timerep-2.0.0 test suite crashes GHC 7.10.1 #14

Open peti opened 9 years ago

peti commented 9 years ago

Citing from http://hydra.cryp.to/build/795204/nixlog/6/raw:

In-place registering Tests-2.0.0...
[1 of 1] Compiling Main             ( dist/build/TestsStub/TestsStub-tmp/TestsStub.hs, dist/build/TestsStub/TestsStub-tmp/Main.dyn_o )
Linking dist/build/TestsStub/TestsStub ...
ghc: panic! (the 'impossible' happened)
  (GHC version 7.10.1 for x86_64-unknown-linux):
        Don't understand library name Tests

This is a known bug in GHC. Maybe it's possible to work around it by simply renaming the test suite?

k0ral commented 9 years ago

I fail to reproduce the issue with GHC 7.10.1:

Running 1 test suites...
Test suite Tests: RUNNING...
Test suite Tests: PASS
Test suite logged to: dist/test/timerep-2.0.0-Tests.log
1 of 1 test suites (3 of 3 test cases) passed.

Can you clarify which GHC bug you're referring to, and what the test suite should be renamed into to avoid the panic ?

peti commented 9 years ago

See https://github.com/haskell/cabal/issues/2039 and https://ghc.haskell.org/trac/ghc/ticket/9625.

The flag --enable-executable-dynamic makes the difference.