Hello!

Distribution changed to glasgow-haskell-users, because that's no
additional bug.

On Wed, Jul 29, 1998 at 07:05:59PM -0700, Shin-Cheng Mu wrote:
> Thanks to all of you replied. The compilation worked, with
> -monly-2-regs.

> BTW, my Linux distribution is RedHat 5.1 and gcc version is 2.7.2.3.

Yep. I tried on some Debian unstable somewhere between 1.3 and 2.0,
also gcc 2.7.2.something. As said, on my OpenBSD box with 2.8.1,
it worked w/o -monly-2-regs.

> Now I've got ghc3.02 installed. What tests can I run? (neither 
> gmake check nor gmake runtests produce any result). I suppose 
> re-compiling the compiler itself would be a good test?

First a hello world:

felix@c3po:/tmp $ echo 'main = putStrLn "hello, world"' >tst.hs
felix@c3po:/tmp $ ghc -o tst tst.hs
ghc: module version changed to 1; reason: no old .hi file
felix@c3po:/tmp $ ./tst 
hello, world

Then, you could really try compiling the compiler using itself.
Just change
  WithGhcHc = ghc-2.10
to
  WithGhcHc = ghc
in fptools/mk/config.mk.in, then rerun configure, make clean and
start over (after having installed the compiler somewhere in the
path, of course).

(By the way, why is the version number of the ghc used for bootstrapping
fixed to 2.10 in the official config.mk.in? There should always be a
symlink ghc pointing to a working version of ghc in the path, shouldn't
it?)

> I noticed that during some stages of compiling GHC by GHC,
> ghc/driver/ghc is used for the compilation rather than the 
> installed ghc compiler in PATH. Is it a copy of the installed 
> compiler?

No. That is the new driver and will use the just compiled compiler
proper for compiling the standard libraries. So after the first
run in bootstrapping, you have the compiler proper generated by
the old compiler, but the libraries are already made by the new
one.

> sincerely,
> shin-cheng mu
> Academia Sinica, Taiwan

Regards, Felix.

Reply via email to