I am trying to build  ghc-2.04  on  linux, i486 ...

using  ghc-0.29  installed earlier.  The questions arise.



-------------------------------------------------------------------
I downloaded   ghc-2.04-src-pl2.tar.gz,   unzipped-untarred it.

Then no *patches* have to be applied?
-------------------------------------------------------------------
config.mk.in   contains   GhcProjectPatchLevel =0

is this right?
-------------------------------------------------------------------
config.mk.in   contains    mkdependHS_1_2 = mkdependHS-1.2 

But where is defined  mkdependHS-1.2  ?
-------------------------------------------------------------------
Many lines in  config.mk.in   contain   @..@  values.  Say,

FPTOOLS_TOP_ABS = @hardtop@        - where  @hardtop@  initiates ?

HOSTPLATFORM   = @HostPlatform@
TARGETPLATFORM = @TargetPlatform@

  With this, for what target platform it will build?
  For I had never set this manually - should I?

  Also:

# Installation directories ...

prefix      = @prefix@
exec_prefix = @exec_prefix@
...

  Where these things will really install?

------------------------------------------------------------------
# ToDo: check if these can be purged now. -- sof
#
@HostPlatform_CPP@_HOST        = 1
@HostPlatform_CPP@_TARGET      = 1
...

   What does this mean?


-----------------------------------------------------------------
I made a link copy tree    ..../myfptools-linux   (== $(TOP))
Then commanded
                cd $(TOP);  ./configure;  make boot

`make boot'     reports

  info.c:69: sgtty.h: No such file or directory
  In file included from /usr/include/pwd.h:30,
                   from makeinfo.c:79:

among its messages. Will this do?
----------------------------------------------------------------

Then I create  $(TOP)/mk/build.mk  with the contents:
-----------------------------------------------------------
GhcUseGccForOptAsm=NO
#                       to test fast whether `make' is workable
BuildingParallel=NO
BuildingConcurrent=NO
BuildingProfiling=NO
BuildingGranSim=NO
BuildingProfilingConcurrent=NO

GhcLibWays=
NoFibSubDirs = GHC_ONLY 

-----------------------------------------------------------
Then commanded   make all

It works for several hours, reports many good messages, and also
this one (for many modules):
  Warning: InitTime not found in stats file
  Warning: InitElapsed not found in stats file

Then it comes

ghc/PrelBase.lhs:10:9: parse error on input: Segmentation fault 
                                       caught, address = 75640072
make[2]: *** [ghc/PrelBase.o] Error 1
make[1]: *** [all] Error 2

Then come several messages of this sort and abort.



Please, advise.




Sergey Mechveliani

[EMAIL PROTECTED]



















Reply via email to