Re: Compiler bug pops up when compiling ghc-2.07 with 2.02

1997-10-09 Thread Simon L Peyton Jones

 
 I tried, but it seems to complete successfully. Nevertheless, later
 make all fails with the same message.
 Probably the dependencies generated by make boot (or make depend, for
 that matter) _are_ circular (citing from ghc/compiler/.depend):
 
 utils/FastString.o : basicTypes/Unique.hi
 
 basicTypes/Unique.o : utils/Pretty.hi
 
 utils/Pretty.o : utils/FastString.hi

My guess is that you have not got the line

Ghc2_0= YES

in your build.mk file.  GHC 2.x uses a different way of dealing with
mutual recursion (via M.hi-boot files) than GHC 0.29 (which used M.lhi files).

When you make that change to build.mk you'll need to do a make depend again.

Yes, this should be documented.

Remember, don't bother to use 2.06 or earlier for self-booting.  Only
2.07 is up to it.

Simon




Re: pattern match

1997-10-09 Thread Quintela Carreira Juan J.

Gary Ling [EMAIL PROTECTED] writes:

 
 Hi, There,
 
 I am using GHC 2.06 for Win32 and why does GHC complain about "possibly 
 incomplete patterns"? Source file and error message are as follows. 
 Thanks.
 
 -Gary

Hi,
  I am in Glasgow for three months and my work is try to improve this 
warning messages, Just now the important word in the warning message
is "Possibly", ghc is not sure if the pattern is incomplete.

I hope to improve the situation before I return to Spain in 
the beginning of December ;)


Cheers, Juan.
 



Re: Compiler bug pops up when compiling ghc-2.07 with 2.02

1997-10-09 Thread Marcin Benke

Sigbjorn Finne writes:
  
  my guess is that the Makefile dependencies aren't generated properly,
  try doing 'make depend' in ghc/compiler and see if that fails to
  complete properly for some reason.
  
I tried, but it seems to complete successfully. Nevertheless, later
make all fails with the same message.
Probably the dependencies generated by make boot (or make depend, for
that matter) _are_ circular (citing from ghc/compiler/.depend):

utils/FastString.o : basicTypes/Unique.hi

basicTypes/Unique.o : utils/Pretty.hi

utils/Pretty.o : utils/FastString.hi

...the circle closes :-( 

  BTW, mailing glasgow-haskell-bugs is probably a good idea with
  problems like these; I'm happy to help out, but I'm reading
  my e-mail infrequently at the moment.
  
  Marcin Benke writes:
   Thanks for this hint. I have downloaded binary version of 2.07 and
   tried again to recompile 2.07 with itself. However, after
   
   configure
   make boot
   
   make all fails like this:

   make[2]: Circular utils/Argv.o - utils/FastString.hi dependency dropped.
   ghc-2.07 -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen -Iparser 
 -iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:reader:profiling:parser:nativeGen
  -recomp -DOMIT_DEFORESTER   -fvia-C  -c utils/Argv.lhs -o utils/Argv.o -osuf o

   utils/Argv.lhs:15: Could not find valid interface file `FastString'

   Compilation had errors
   make[2]: *** [utils/Argv.o] Error 1
   make[1]: *** [all] Error 2
   make: *** [all] Error 2
   

Regards,
Marcin Benke

"Calm down, it's only ones and zeros!" -  DJ Delorie