Building source distributions

I'm having trouble building source distributions: After the ./configure stage, "make hmakeDist" seems to work, but the "srcDist" target has problems. First of all, it seems to depend on "basic", but this is not recorded in the Makefile. After fixing that and a looong time, "make srcDist" fails with: ================================================= ... make[1]: Entering directory `/home/panne/nhc98/src/interpreter' rm -rf *.o /home/panne/nhc98/targets/x86_64-Linux/obj/interpreter rm -f *.hi rm -f *.hc *.c /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. Warning: -package readline library not found. /home/panne/nhc98/script/nhc98 -C -I../hmake -package base -package readline -DUSE_READLINE=1 -lreadline -c -cpp -o SimpleLineEditor.hc SimpleLineEditor.hs Warning: -package readline interfaces not found. nhc98comp: user error (Can't open any of: ./System/Console/Readline.hi ../hmake/System/Console/Readline.hi /home/panne/nhc98/include/packages/base/System/Console/Readline.hi /home/panne/nhc98/include/System/Console/Readline.hi when trying to read System.Console.Readline. ) make[1]: *** [cfiles] Fehler 1 make[1]: Leaving directory `/home/panne/nhc98/src/interpreter' make: *** [targets/hmakeC] Fehler 2 ================================================= Am I doing something wrong? Or is srcDist currently simply broken? Cheers, S.

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
participants (2)
-
Malcolm Wallace
-
Sven Panne