Opened 8 years ago

Last modified 8 years ago

#4141 closed bug

Inconsistant .hi or .hi-boot compilation error — at Version 1

Reported by: odj Owned by:
Priority: normal Milestone:
Component: Compiler Version: 6.12.1
Keywords: Cc:
Operating System: MacOS X Architecture: x86
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description (last modified by simonpj)

I get the following message from GHC and GHCI when compiling. I am using -boot import for several modules in this project. Things work fine until I tried calling a record syntax generated function. All my own function declarations seem to work OK.

    Can't find interface-file declaration for variable markerSet
      Probable cause: bug in .hi-boot file, or inconsistent .hi file
      Use -ddump-if-trace to get an idea of which file caused the error
    In the second argument of `union', namely `(markerSet atom)'
    In the second argument of `($)', namely
        `union (singleton $ Label 0) (markerSet atom)'
    In the second argument of `($)', namely
        `findMax $ union (singleton $ Label 0) (markerSet atom)'

Change History (2)

Changed 8 years ago by odj

Attachment: ghc_output.txt added

Output of GHCI with -ddump-if-trace flag

comment:1 Changed 8 years ago by simonpj

Description: modified (diff)

Thanks for the report. Nothing springs to mind though. Can you provide us with a way to reproduce your problem? Then we can look at it.

Incidentally, the trace file says <loop> which is different from the error message you quote.


Note: See TracTickets for help on using tickets.