RE: Error building GHC: can't locate import `Package'

I think it's just that you have an old file ParsePkgConfLite.hs in your directory. The make system finds it and tries to compile it. Easiest fix: remove the whole of ghc/utils/ghc-pkg, and do cvs update. S | -----Original Message----- | From: glasgow-haskell-users-bounces@haskell.org [mailto:glasgow-haskell-users- | bounces@haskell.org] On Behalf Of Peter Simons | Sent: 18 December 2004 16:10 | To: glasgow-haskell-users@haskell.org | Subject: Error building GHC: can't locate import `Package' | | When building the current CVS HEAD with ghc-6.2.2 on | Linux/x86, I get this error: | | [...] | ==fptools== make boot - --no-print-directory -r; | in /usr/local/src/ghc-current/ghc/utils/ghc-pkg | -------------------------------------------------------------------- | Creating Version.hs ... | ghc-6.2.2 -M -optdep-f -optdep.depend -osuf o | -optdep--exclude-module=Compat.RawSystem | -optdep--exclude-module=Compat.Directory | -optdep--exclude-module=Distribution.Compat.Error | -optdep--exclude-module=Distribution.Compat.ReadP | -optdep--exclude-module=Distribution.Extension | -optdep--exclude-module=Distribution.InstalledPackageInfo | -optdep--exclude-module=Distribution.License | -optdep--exclude-module=Distribution.Package | -optdep--exclude-module=Distribution.ParseUtils | -optdep--exclude-module=Distribution.Setup | -optdep--exclude-module=Distribution.Version | -optdep--exclude-module=System.FilePath -H16m -O | -optc-nopie -optc-fno-stack-protector-all | -optc-fno-stack-protector -cpp -Wall | -fno-warn-name-shadowing -fno-warn-unused-matches | -i../../lib/compat Main.hs ParsePkgConfLite.hs Version.hs | ParsePkgConfLite.hs: can't locate import `Package' | | It seems that ParsePkgConfLite.hs omits the "Distribution" | part when importing Distribution.Package. | | Peter | | _______________________________________________ | Glasgow-haskell-users mailing list | Glasgow-haskell-users@haskell.org | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
participants (1)
-
Simon Peyton-Jones