building stage=2 on solaris

Simon Marlow simonmar@microsoft.com
Fri, 10 Jan 2003 10:56:58 -0000


> ghc-5.05: unknown package name: readline
> gmake[1]: *** [depend] Error 1
> gmake[1]: Leaving directory=20
> `/nfs/nlg/users/hdaume/ghc-cvs/ghc/compiler'
> gmake: *** [stage2] Error 2
> 106.14u 97.45s 5:15.85 64.4%
>=20
>=20
> (sorry for the long clig), but the basic problem is this=20
> missing package
> readline.  if i run ghc/compiler/stage1/ghc-inplace -v, I get the
> following packages:
>=20
>   data, hssource, net, text, util, posix, concurrent, lang,
>   unix, haskell-src, network, haskell98, base, rts
>=20
> but no readline.
>=20
> now, if i *remove* the '-package readline' from that commandline, it
> builds properly.
>=20
> is this needed?

I've fixed it so that -package readline should be omitted if stage 1
doesn't have a readline package.  GHCi falls back to using hGetLine if
there's no readline available, which is why the build goes through after
removing the option.

Cheers,
	Simon