Opened 19 years ago

Closed 19 years ago

#3218 closed defect (fixed)

hat incorrectly sets ghc's package.conf

Reported by: mvitocruz@… Owned by: gwright@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

Change History (4)

comment:1 Changed 19 years ago by mvitocruz@…

(oops, accidentally hit "Return" before I could type in the description...) The summary is my best guess for the source of the problem that I'm having while trying to compile a program with ghc and hmake with hat tracing enabled. The error I'm getting is (this is from invoking "hmake -hat myprogram"):

Hat/Utils.hs:15:0:

Failed to load interface for `Hat.PreludeBasic':

Could not find module `Hat.PreludeBasic':

locations searched:

Hat/PreludeBasic.hi Hat/PreludeBasic.hi-boot /opt/local/var/db/dports/build/file._Volumes_Scratch_software_darwinports_dports_devel_hat/

work/destroot/opt/local/lib/ghc-6.4/imports/hat/Hat/PreludeBasic.hi

If I edit package.conf so that things point to the right directory, the build is able to get past this point but then encounters more errors (this probably won't be helpful but they look like:

Hat/Language.hs:1491:45:

Can't find interface-file declaration for aisDigit

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 fourth argument of Hat.Hat.uapp1', namely aisDigit' In the third argument of `Hat.Hat.cguard', namely

`(Hat.Hat.uapp1 p285v17v285v25 p285v17v285v23 p aisDigit hisDigit fc)'

...)

comment:2 Changed 19 years ago by gwright@…

Status: newassigned

I'll take a look at it. The new packaging system for ghc is a real pain.

/gw

comment:3 Changed 19 years ago by gwright@…

I have rebuilt hat with the latest ghc-6.4.1 and I am able to successfully run hat on the examples in the online tutorial.

If no one complains in the next few days, I will close this bug.

-Greg

comment:4 Changed 19 years ago by gwright@…

Resolution: fixed
Status: assignedclosed

hat works for me under 6.4.1 and no one has complained, so I am closing this bug.

-Greg

Note: See TracTickets for help on using tickets.