bug during documentation generation?

Andres Loeh andres at cs.uu.nl
Thu Dec 18 12:05:21 EST 2003


Shouldn't the attached patch be applied to the file package.mk
in the GHC 6.2 build system?

Explanation:
I think that for the generation of the documentation the "new"
ghc should be used, not the old one. I got the following error
while compiling GHC 6.2 with OpenGL support, using the binary
distribution of 6.2 for Linux, which seems to not support OpenGL.

------------------------------------------------------------------------
==fptools== make html - --no-print-directory -r;
 in /var/tmp/portage/ghc-6.2/work/ghc-6.2/libraries/GLUT
------------------------------------------------------------------------
/opt/ghc/bin/ghc -H16m -O -Wall -fffi -Iinclude '-#include "HsGLUT.h"' -cpp -DCA
LLCONV=ccall -package-name GLUT -O -Rghc-timing  -package base  -package OpenGL
-split-objs    -D__HADDOCK__ -E -cpp Graphics/UI/GLUT.hs -o Graphics/UI/GLUT.hs.
tmp && sed -e 's/^#.*//' <Graphics/UI/GLUT.hs.tmp >Graphics/UI/GLUT.raw-hs
ghc-6.2: unknown package name: OpenGL
<<ghc: 2877832 bytes, 2 GCs, 51232/51232 avg/max bytes residency (1 samples), 5M
 in use, 0.00 INIT (0.00 elapsed), 0.00 MUT (0.02 elapsed), 0.01 GC (0.01 elapse
d) :ghc>>
make[2]: *** [Graphics/UI/GLUT.raw-hs] Error 1
make[1]: *** [html] Error 1
make: *** [html] Error 1

Best,
  Andres
-------------- next part --------------
diff -Naur ghc-6.2.orig/mk/package.mk ghc-6.2/mk/package.mk
--- ghc-6.2.orig/mk/package.mk	2003-12-17 16:26:11.000000000 +0100
+++ ghc-6.2/mk/package.mk	2003-12-17 16:27:21.000000000 +0100
@@ -237,10 +237,10 @@
 CLEAN_FILES += $(PACKAGE).haddock
 
 %.raw-hs : %.lhs
-	$(GHC) $(HC_OPTS) -D__HADDOCK__ -E -cpp $< -o $<.tmp && sed -e 's/^#.*//' <$<.tmp >$@
+	$(HC) $(HC_OPTS) -D__HADDOCK__ -E -cpp $< -o $<.tmp && sed -e 's/^#.*//' <$<.tmp >$@
 
 %.raw-hs : %.hs
-	$(GHC) $(HC_OPTS) -D__HADDOCK__ -E -cpp $< -o $<.tmp && sed -e 's/^#.*//' <$<.tmp >$@
+	$(HC) $(HC_OPTS) -D__HADDOCK__ -E -cpp $< -o $<.tmp && sed -e 's/^#.*//' <$<.tmp >$@
 
 install-docs :: $(HTML_DOC)
 	@$(INSTALL_DIR) $(datadir)/html/libraries/$(PACKAGE)


More information about the Glasgow-haskell-bugs mailing list