On Fri, Dec 05, 2008 at 11:06:49AM -0000, Claus Reinke wrote: > $ ghcii.sh -package ghc > GHCi, version 6.11.20081202: http://www.haskell.org/ghc/ :? for help > Loading package ghc-prim ... linking ... done. > Loading package integer ... linking ... done. > Loading package base ... linking ... done. > Loading package syb ... linking ... done. > Loading package array-0.2.0.0 ... linking ... done. > Loading package containers-0.2.0.0 ... linking ... done. > Loading package bytestring-0.9.1.4 ... linking ... done. > Loading package Win32-2.2.0.0 ... linking ... done. > Loading package filepath-1.1.0.1 ... linking ... done. > Loading package old-locale-1.0.0.1 ... linking ... done. > Loading package old-time-1.0.0.1 ... linking ... done. > Loading package directory-1.0.0.2 ... linking ... done. > Loading package pretty-1.0.1.0 ... linking ... done. > Loading package process-1.0.1.1 ... linking ... done. > ghc.exe: > C:\ghc\ghc-6.11.20081202\Cabal-1.5.5\HSCabal-1.5.5.o: unknown symbol > `_containerszm0zi2zi0zi0_Datazi > Map_foldrWithKey_info' > Loading package Cabal-1.5.5 ... linking ... ghc.exe: unable to load package > `Cabal-1.5.5'
It works for me: $ ghc/stage2-inplace/ghc.exe --interactive -package ghc GHCi, version 6.11.20081203: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer ... linking ... done. Loading package base ... linking ... done. Loading package array-0.2.0.0 ... linking ... done. Loading package containers-0.2.0.0 ... linking ... done. Loading package bytestring-0.9.1.4 ... linking ... done. Loading package Win32-2.2.0.0 ... linking ... done. Loading package filepath-1.1.0.1 ... linking ... done. Loading package old-locale-1.0.0.1 ... linking ... done. Loading package old-time-1.0.0.1 ... linking ... done. Loading package directory-1.0.0.2 ... linking ... done. Loading package pretty-1.0.1.0 ... linking ... done. Loading package process-1.0.1.1 ... linking ... done. Loading package Cabal-1.5.5 ... linking ... done. Loading package random-1.0.0.1 ... linking ... done. Loading package haskell98 ... linking ... done. Loading package hpc-0.5.0.2 ... linking ... done. Loading package packedstring-0.1.0.1 ... linking ... done. Loading package template-haskell ... linking ... done. Loading package ghc-6.11.20081203 ... linking ... done. Loading package ffi-1.0 ... linking ... done. Prelude> > I saw you had another cabal-version patch recently, but this > seems different. Right, if that was the problem then all that would have happened is that installation would have failed. > another package which depends on ghc which depends on Cabal-1.5.5 > which fails to load (isn't Cabal fun?-). Any ideas what is going on/how > to get this working? Could you have upgraded containers or Cabal since building GHC? e.g. by using cabal-install? Your ghc has decided to load syb, unlike mine, which could be a clue as to what's going on. Are all your library repos up-to-date? How does your nm output compare with mine?: $ nm libraries/containers/dist/build/libHScontainers-0.2.0.0.a | grep foldrWithKey 0000058c D _containerszm0zi2zi0zi0_DataziMap_foldrWithKey_closure 000068b4 T _containerszm0zi2zi0zi0_DataziMap_foldrWithKey_info And what is your "ghc-pkg list" output? Thanks Ian _______________________________________________ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc