|
Re: ghc-6.2.2: unknown package name: Main (again): msg#00001lang.haskell.glasgow.bugs
gwright: > > Hi, > > Using ghc-6.2.2 on Mac OS X 10.3.6, I've found another instance > of the "unknown package name: Main" problem mentioned last April. > When I build my program I see: > > crossroads-able> ghc --make -package hsshellscript -o asgraph asgraph.hs > Chasing modules from: asgraph.hs > Skipping Reformat ( ./Reformat.hs, ./Reformat.o ) > Skipping Main ( asgraph.hs, asgraph.o ) > Linking ... > ghc-6.2.2: unknown package name: Main > > > However, building the package (hsshellscript) with the additional > option > > -package-name hsshellscript > > doesn't fix the problem; the error message persists. > > Has anyone else noticed this probelm? Is it specific to OS X? I had this problem in yi at one point, when trying to link against a package, in the same directory as the package .o files. Check the resulting .hi files (--show-iface) to see if you linked against the -package hsshellscript, or the individual .o files. The .o files were getting picked up by -I., overriding the -package flag. The solution was to use either -I to explicitly rule out certain dirs from the search path. Another soln (that is backwards compatible with ghc-6.2.1) is to cd to another dir, so that the -I. doesn't mean anything. -- Don
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | ghc-6.2.2: unknown package name: Main (again), Gregory Wright |
|---|---|
| Next by Date: | RE: Bug in touchForeignPtr?, Simon Marlow |
| Previous by Thread: | ghc-6.2.2: unknown package name: Main (again), Gregory Wright |
| Next by Thread: | Re: ghc-6.2.2: unknown package name: Main (again), Gregory Wright |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |