
Dear Ian, all, Even in the current release, I'm still having trouble building GHC on my linux machine. The error is still about DerivedConstants.h. I'm sorry for not following up on my last report, but I'll try and make things right with this one. curl http://www.haskell.org/ghc/dist/6.8.1/ghc-6.8.1-src.tar.bz2 | tar -xj curl http://www.haskell.org/ghc/dist/6.8.1/ghc-6.8.1-src.tar.bz2 | tar -xj cd ghc-6.8.1 sh boot ./configure &> configure.output make &> make.output The outputs are attached to this e-mail. I just wanted to note some of the highlights: The boot script still warns about underquoting (and I still don't know whether this is relevant at all): Booting . Booting libraries/base Booting libraries/directory /usr/share/aclocal/progsreiserfs.m4:13: warning: underquoted definition of AC_CHECK_LIBREISERFS run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending-aclocal Booting libraries/old-time Booting libraries/process Booting libraries/readline Booting libraries/unix The make still fails on the absence of (a rule for) DerivedConstants.h: /usr/local/bin/ghc -H16m -O -istage1/utils -istage1/basicTypes -istage1/types -istage1/hsSyn -istage1/prelude -istage1/rename -istage1/typecheck -istage1/deSugar -istage1/coreSyn -istage1/vectorise -istage1/specialise -istage1/simplCore -istage1/stranal -istage1/stgSyn -istage1/simplStg -istage1/codeGen -istage1/main -istage1/profiling -istage1/parser -istage1/cprAnalysis -istage1/ndpFlatten -istage1/iface -istage1/cmm -istage1/nativeGen -Wall -fno-warn-name-shadowing -fno-warn-orphans -Istage1 -cpp -fglasgow-exts -fno-generics -Rghc-timing -I. -Iparser -package unix -ignore-package lang -recomp -Rghc-timing -H16M '-#include "cutils.h"' -DUSING_COMPAT -i../compat -ignore-package Cabal -c codeGen/CgPrimOp.hs -o stage1/codeGen/CgPrimOp.o -ohi stage1/codeGen/CgPrimOp.hi make[1]: *** No rule to make target `../includes/DerivedConstants.h', needed by `stage1/codeGen/CgProf.o'. Stop. make[1]: Leaving directory `/local/holzensp/src/ghc-6.8.1/compiler' make: *** [stage1] Error 1 Somewhere near the beginning of make's output, where the output for "make boot" is logged, it does seem to have created DerivedConstants.h: ../utils/mkdependC/mkdependC -f .depend -- -O -DTABLES_NEXT_TO_CODE -I. -I../rts -- mkDerivedConstants.c rm -f mkDerivedConstants.o gcc -O -DTABLES_NEXT_TO_CODE -I. -I../rts -c mkDerivedConstants.c -o mkDerivedConstants.o gcc -o mkDerivedConstantsHdr -O -DTABLES_NEXT_TO_CODE -I. -I../rts mkDerivedConstants.o ./mkDerivedConstantsHdr >DerivedConstants.h gcc -o mkGHCConstants.o -O -DTABLES_NEXT_TO_CODE -I. -I../rts -c mkDerivedConstants.c -DGEN_HASKELL gcc -o mkGHCConstants -O -DTABLES_NEXT_TO_CODE -I. -I../rts mkGHCConstants.o ./mkGHCConstants >GHCConstants.h Later in the "make all" phase, there is another mention of DerivedConstants: rm -f mkDerivedConstants.o gcc -O -DTABLES_NEXT_TO_CODE -I. -I../rts -c mkDerivedConstants.c -o mkDerivedConstants.o gcc -o mkDerivedConstantsHdr -O -DTABLES_NEXT_TO_CODE -I. -I../rts mkDerivedConstants.o ./mkDerivedConstantsHdr >DerivedConstants.h gcc -o mkGHCConstants.o -O -DTABLES_NEXT_TO_CODE -I. -I../rts -c mkDerivedConstants.c -DGEN_HASKELL gcc -o mkGHCConstants -O -DTABLES_NEXT_TO_CODE -I. -I../rts mkGHCConstants.o ./mkGHCConstants >GHCConstants.h I don't see the header file being removed anywhere, but it does indeed not show up in the includes directory. When I cheat and, after this failed build, do the following: cd includes make cd .. make the build runs until [42 of 42] and fails, saying: Configuring base-3.0.0.0... Setup: Cannot find ghc at ../../compiler/stage1/ghc-inplace or on the path rm -f base/GNUmakefile cp Makefile.local base if ifBuildable/ifBuildable base; then \ cd base && setup/Setup makefile -f GNUmakefile; \ fi Setup: error reading dist/setup-config; run "setup configure" command? This is where I currently am with trying to build GHC. I hope this serves as a decent bug report. Regards, Philip