
Sven Panne
I'm having trouble building source distributions: ... the "srcDist" target ... seems to depend on "basic", but this is not recorded in the Makefile.
Yeah. The srcDist target was never really intended to be stand-alone. It does require that the build tree should already contain a built-and-working compiler/hmake/cpphs in order to be able to create the bootstrapping .hc files. (And yes, it would probably be a good idea to record this explicitly in the Makefile.)
/home/panne/nhc98/script/hmake -hc=/home/panne/nhc98/script/nhc98 -I../hmake -C HInteractive.hs /home/panne/nhc98/script/nhc98 -C -I../hmake -package base -package readline -DUSE_READLINE=1 -lreadline -c -cpp -o LexModule.hc LexModule.hs Warning: -package readline interfaces not found.
Am I doing something wrong? Or is srcDist currently simply broken?
This part is broken at the moment, yes. If you built hmake/interpreter with ghc originally, then srcDist attempts to create bootstrapping .hc files using the ghc-based configuration (in particular, for readline), even though nhc98 does not know about the readline package. One solution would be to build readline with nhc98. Another might be to disable using/building the bootstrapping .hc files for src/interpreter. Regards, Malcolm