Re: nhc98-1.00 bug report



About this list Date view Thread view Subject view Author view

Thomas Hallgren (hallgren@cs.chalmers.se)
Tue, 21 Nov 2000 18:03:25 +0100


Malcolm Wallace wrote: > Thomas, > > | > No default for Prelude.Functor at 4:1.(165,[(15,167)]) > > Here's another workaround for your 3rd bug, and it's a rather > obvious one. Try giving a default declaration for your class! Thanks! This workaround allowed me to continue compiling the program I wanted to heap profile. This gave me the questionable pleasure of discovering one more buglets in the compiler: Bug #4. Compiling the following modules module A where a = True module B where import qualified A(a) b = A.a gives, when compiling B.hs, ==================================== Error when renaming:: Identifier a used at 2:20 is not defined. (in overlap resolution) but this can be avoided by not mentioning "a" in the import: import qualified A -- (a) Anyway,I finally managed to compile and run the program, but when I then recompile it all with -p to obtain the heap profiling version, I get the following message when the program is linked: /usr/local/lib/nhc98/ix86-Linux/Preludep.a(StablePtr.o)(.data+0x1bc): undefined reference to `PM_StablePtr' /usr/local/lib/nhc98/ix86-Linux/Preludep.a(StablePtr.o)(.data+0x1c8): undefined reference to `PM_StablePtr' /usr/local/lib/nhc98/ix86-Linux/Preludep.a(StablePtr.o)(.data+0x1d4): undefined reference to `PM_StablePtr' /usr/local/lib/nhc98/ix86-Linux/Preludep.a(StablePtr.o)(.data+0x1e0): undefined reference to `PM_StablePtr' /usr/local/lib/nhc98/ix86-Linux/Preludep.a(StablePtr.o)(.data+0x1ec): undefined reference to `PM_StablePtr' This happens with two binary distribution of nhc98-1.00 [1,2] as well as with the source distribution [3] that I compiled and installed myself under RedHat 6.2. I have not tried to track down the cause of this, apart from noticing that the problem doesn't occur when compiling some smaller examples for heap profiling. Regards, Thomas H References [1] ftp://ftp.cs.york.ac.uk/pub/haskell/nhc98/nhc98-1.00-ix86-Linux.tar.gz [2] ftp://urano.iceb.ufop.br/pub/nhc98/nhc98-1.00-3.i386.rpm [3] ftp://ftp.cs.york.ac.uk/pub/haskell/nhc98/nhc98src-1.00.tar.gz


About this list Date view Thread view Subject view Author view