
On 22 March 2005 10:10, Andrei A. Voropaev wrote:
Well, looking at the makefile it becomes clear, that it must do so. ------------------------------------- # Make DerivedConstants.h for the compiler
all :: DerivedConstants.h
mkDerivedConstants.c : $(H_CONFIG)
mkDerivedConstantsHdr : mkDerivedConstants.o $(CC) -o $@ $(CC_OPTS) $(LD_OPTS) mkDerivedConstants.o
DerivedConstants.h : mkDerivedConstantsHdr ./mkDerivedConstantsHdr >$@
CLEAN_FILES += mkDerivedConstantsHdr$(exeext) DerivedConstants.h ------------------------------------
Since ghcautoconf.h is new this triggers update for mkDerivedConstants.c which in turn updates mkDerivedConstantsHdr which in turn updates DerivedConstants.h. I guess I should also touch the mkDerivedConstants.c to avoid the updates. Am I correct?
Duh, sorry about that. The full list of things you need to touch are: $ touch ghcautoconf.h DerivedConstants.h GHCConstants.h mkDerivedConstants.c mkDerivedConstantsHdr mkDerivedConstants.o mkGHCConstants mkGHCConstants.o I must have avoided making in ghc/includes when I did the bootstrap myself. Thanks for highlighting the problem. Cheers, Simon

On Tue, Mar 22, 2005 at 08:56:25PM -0000, Simon Marlow wrote:
On 22 March 2005 10:10, Andrei A. Voropaev wrote:
Well, looking at the makefile it becomes clear, that it must do so. ------------------------------------- # Make DerivedConstants.h for the compiler
all :: DerivedConstants.h
mkDerivedConstants.c : $(H_CONFIG)
mkDerivedConstantsHdr : mkDerivedConstants.o $(CC) -o $@ $(CC_OPTS) $(LD_OPTS) mkDerivedConstants.o
DerivedConstants.h : mkDerivedConstantsHdr ./mkDerivedConstantsHdr >$@
CLEAN_FILES += mkDerivedConstantsHdr$(exeext) DerivedConstants.h ------------------------------------
Since ghcautoconf.h is new this triggers update for mkDerivedConstants.c which in turn updates mkDerivedConstantsHdr which in turn updates DerivedConstants.h. I guess I should also touch the mkDerivedConstants.c to avoid the updates. Am I correct?
Duh, sorry about that. The full list of things you need to touch are:
$ touch ghcautoconf.h DerivedConstants.h GHCConstants.h mkDerivedConstants.c mkDerivedConstantsHdr mkDerivedConstants.o mkGHCConstants mkGHCConstants.o
Hm. I'll try it, though currently I've opted for disabling that section of the Makefile completely. Then things worked ok. Except for the very last step of creating tar.gz. There I got errors tar: ghc-6.4/ghc/rts/AutoApply_thr.hc: Cannot stat: No such file or directory tar: ghc-6.4/ghc/rts/AutoApply_thr_p.hc: Cannot stat: No such file or directory tar: ghc-6.4/ghc/rts/AutoApply_debug.hc: Cannot stat: No such file or directory Which appears to be harmless, since I still was able to build the unregistered compiler on x86_64.
Thanks for highlighting the problem.
You are always welcome. In turn thanks for help, I wouldn't get it done otherwise :) -- Minds, like parachutes, function best when open

Sorry. Forgot to ask the next question on this process. Now that I have
unregistered compiler, how do I build the registered one?
I've tried to start with new tree and then run
./configure --with-ghc=T/ghc/compiler/ghc-inplace
make
But this resulted in an error
==fptools== make boot - --no-print-directory -r;
in /home/andrei/ghc-6.4/ghc/lib/compat
------------------------------------------------------------------------
../../../glafp-utils/mkdependC/mkdependC -f .depend -I../../includes -- -O -- cbits/directory.c cbits/rawSystem.c
/usr/local/src/ghc-6.4/ghc/compiler/ghc-inplace -M -optdep-f -optdep.depend -osuf o -H16m -O -I. -Rghc-timing -I../../../libraries -fglasgow-exts -no-recomp Compat/Directory.hs Compat/RawSystem.hs
<
participants (2)
-
Andrei A. Voropaev
-
Simon Marlow