Skip to content

'Cannot continue after interface file error' during compilation

I'm trying to compile `test-framework-hunit-0.3.0` library using HEAD. Running these commands:

ghc Setup.lhs && \
./Setup configure --user --enable-shared && \
./Setup build && ./Setup install

gives me this error:

Installing package test-framework-hunit-0.3.0
[1 of 1] Compiling Main             ( Setup.lhs, Setup.o )
Linking Setup ...
Configuring test-framework-hunit-0.3.0...
Building test-framework-hunit-0.3.0...
Preprocessing library test-framework-hunit-0.3.0...
[1 of 1] Compiling Test.Framework.Providers.HUnit ( Test/Framework/Providers/HUnit.hs, dist/build/Test/Framework/Providers/HUnit.o )
/home/killy/.cabal/lib/x86_64-linux-ghc-7.7.20130602/test-framework-0.8/Test/Framework/Core.hi
Declaration for Test
Constructor Test.Framework.Core.Test:
  Iface type variable out of scope:  i
Cannot continue after interface file error

This error refers to test-framework-0.8, which is a previously installed library (also compiled with HEAD) that test-framework-hunit depends on. This didn't happen on HEAD 12 days ago, so I think it must be some recent change that broke this.

Trac metadata
Trac field Value
Version 7.7
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