Thank you all for your tips.
I've compiled first ghc-3.02 using the .hc files and then ghc-4.02 which
required an additional -dcore-lint on the following files:
compiler/rename/ParseIface.lhs
lib/exts/Int.lhs
lib/exts/Word.lhs
lib/posix/PosixTTY.lhs +
lib/std/PrelArr.lhs
lib/std/PrelHandle.lhs
lib/std/Random.lhs
In addition to this, I also had to switch optimization off (-Onot) for
lib/posix/PosixTTY.lhs.
Now I can say that ghc-4.02 seems to work on Linux 2.2.5 with glibc-2.1.1pre1
and egcs-1.1.2. I did a three-stage bootstrapping without any further problems.
Regards,
Kili