Opened 7 years ago

Last modified 7 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.

Ouch/Structure/Bond.hs:69:85:
    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 7 years ago by odj

Attachment: ghc_output.txt added

Output of GHCI with -ddump-if-trace flag

comment:1 Changed 7 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.

Simon

Note: See TracTickets for help on using tickets.