Gentle Haskellers,
I tried to install ghc-2.10 on SGI running Irix 6.4,
using EGCS-1.1.1 as the C compiler. Here are the problems.
(1) Toplevel make(1) dies on line 163, because sh(1) does not
support empty lists in its for command. I corrected this
by assigning PACKAGE_SH_SCRIPTS = "" on line 4.
(2) lib/mips-sgi-irix/ghc-2.10/ghc-asm.prl dies on line 679.
As the comment says "#ToDo: remove test", I removed the test.
I cannot verify that this is Ok because of the following.
(3) Now the difficult part. On Irix 6.4, position-independent code
(PIC) is the default. PIC and non-PIC cannot be mixed.
(3.1) PIC code cannot have random data in its text segments,
and the system's assembler complains about
such data that GHC inserts into executable code.
(3.2) The GNU assembler, GAS, does not work well under Irix 6.4,
and EGCS does not work well with GAS.
(3.3) GCC 2.7.2.3 does not build out-of-the-box.
(3.4) If I tell EGCS to generate non-PIC code, I lose ability
to link against shared libraries (and I have to install
system's non-shared libraries which are not installed by default).
Is there any exit out of this mousetrap? I believe it should be,
because all GHC executables that come with the package are dynamic,
so they must have been built somehow. Is there some specific
version of GCC that can be used with GHC, or some compiler flags
that I don't know?
Best regards
--
Anatoli Tubman <[EMAIL PROTECTED]>