Re: Buglist compiling 2.05 with 2.05 for Linux

1997-08-04 Thread Sigbjorn Finne


 
 after succesfully compiling ghc 2.05 with ghc 0.29 on Linux (with Sven
 Pannes Patch) I now do try to compile 2.05 with 2.05 and found some
 small bugs. After doing this corrections it compiled without any
 further problems.
 

Thanks, I've incorporated the fixes you had to make into the current
sources. 

--Sigbjorn



More questions on installing 2.05

1997-08-04 Thread Ian Collier

I apologise for jumping in with more questions, but I have at least joined
the list now.

So, ghc-2.05 finished compiling, apparently.  It didn't take much longer
than a week. :-)

I had to add GhcHcOpts=-H12m to my build file to get it to stop complaining
(12m was a guess, but the default of 6m was definitely too small).  I would
have thought this would have been added as necessary by the developers to
avoid me having to increase the size globally - it's also not the sort of
thing I would expect to know before starting the compilation.

Anyway...

Question 1: Why doesn't "make check" do any tests?

Question 2: Why doesn't "make install" install any docs?  

Question 3: How do I even make the docs?  Why do the docs directories
contain Makefiles that don't seem to do anything?  I've tried running
"lit2latex" on each *.lit file in the ghc/docs/users_guide directory,
which produces several *.tex files and lots of errors, but none of the
resulting .tex files contains a \document(style|class) command.  And I
don't seem to have a "literate" document style file either, though I can
see it is referenced in user.lit.

Ian Collier



Re: Problems with profiling when using -Ofile

1997-08-04 Thread Sigbjorn Finne



Olaf Chitil writes:
 I'm using the -Ofile option to be able to call a transformation I added
 to GHC. I think that
 

Great stuff - when compiling with -prof, one STG options that has to be
set is -fmassage-stg-for-profiling. This isn't done by the driver for
-Ofile (though it should be), so either you have to provide a separate
options file for -prof, or you have to patch the driver. I've appended
the patch (wrt. 2.05), if you should choose the latter.

HTH,

--Sigbjorn

*** fptools/ghc/driver/ghc.lprl.~1~ Wed Jul 30 14:40:12 1997
--- fptools/ghc/driver/ghc.lprl Mon Aug  4 15:41:56 1997
***
*** 952,957 
--- 952,959 
  } else { # -Ofile, then...
  
  add_Hsc_flags( @HsC_minusO3_flags );
+ push(@HsC_flags, $Oopt_FinalStgProfilingMassage) if 
+$Oopt_FinalStgProfilingMassage;
+ 
  push(@CcBoth_flags, ($MinusO2ForC) ? '-O2' : '-O');   # possibly to be 
elaborated...
  }




Buglist compiling 2.05 with 2.05 for Linux

1997-08-04 Thread Stefan Westmeier

Hi,

after succesfully compiling ghc 2.05 with ghc 0.29 on Linux (with Sven
Pannes Patch) I now do try to compile 2.05 with 2.05 and found some
small bugs. After doing this corrections it compiled without any
further problems.

I did not use the Readline-Lib. So I did not find any bugs relating to
this.

My build settings are included within 3) as diff for config.mk.

Ciao, Stefan.
--
Stefan Westmeier  [EMAIL PROTECTED]
Schaphuser Str. 24
D-28307 Bremen vox humana: +(49) 421 424001
Germany   fax machina: +(49) 421 424045




1) utils/FastString.lhs needs -monly-3-regs

*** fptools/ghc/compiler/Makefile   Thu Jul 31 10:37:30 1997
--- fptools/ghc/compiler/Makefile~  Sat Jul 26 10:10:14 1997
***
*** 212,216 
  utils/SST_HC_OPTS = -fvia-C
  utils/PrimPacked_HC_OPTS  = -fvia-C -monly-3-regs
! utils/FastString_HC_OPTS  = -fvia-C -monly-3-regs
  utils/StringBuffer_HC_OPTS= -fvia-C
  utils/Digraph_HC_OPTS = -fglasgow-exts -fvia-C
--- 212,216 
  utils/SST_HC_OPTS = -fvia-C
  utils/PrimPacked_HC_OPTS  = -fvia-C -monly-3-regs
! utils/FastString_HC_OPTS  = -fvia-C
  utils/StringBuffer_HC_OPTS= -fvia-C
  utils/Digraph_HC_OPTS = -fglasgow-exts -fvia-C




2) ImmAddr is imported qualified for compilers greater than 2.02:

*** fptools/ghc/compiler/nativeGen/MachCode.lhs Thu Jul 31 14:51:51 1997
--- fptools/ghc/compiler/nativeGen/MachCode.lhs~Thu Jul 24 09:21:31 1997
***
*** 1134,1138 
code = mkSeqInstrs []
  in
! returnUs (Amode (MachRegs.ImmAddr imm__2 (fromInteger i)) code)
where
  imm= maybeImm x
--- 1134,1138 
code = mkSeqInstrs []
  in
! returnUs (Amode (ImmAddr imm__2 (fromInteger i)) code)
where
  imm= maybeImm x
***
*** 1168,1172 
code = mkSeqInstrs []
  in
! returnUs (Amode (MachRegs.ImmAddr imm__2 0) code)
where
  imm= maybeImm leaf
--- 1168,1172 
code = mkSeqInstrs []
  in
! returnUs (Amode (ImmAddr imm__2 0) code)
where
  imm= maybeImm leaf




3) I did not use build.mk. I prefer to change config.mk directly. So
here are my settings as a diff to the distributed config.mk.

*** config.mk   Wed Jul 30 16:07:12 1997
--- config.mk~  Wed Jul 30 16:05:41 1997
***
*** 139,143 
  GhcProjectPatchLevel =0
  GhcBuildeeVersion=205
! GhcBuilderVersion=205
  
  #
--- 139,143 
  GhcProjectPatchLevel =0
  GhcBuildeeVersion=205
! GhcBuilderVersion=29
  
  #
***
*** 166,171 
  #  HC_ROJEMO_NHC
  #  HC_UNSPECIFIED
! WithGhcHc = ghc-2.05
! Ghc2_0=YES
  # Unused, we think
  # WithGhcHcType=HC_GLASGOW_GHC
--- 166,171 
  #  HC_ROJEMO_NHC
  #  HC_UNSPECIFIED
! WithGhcHc = ghc-0.29
! Ghc2_0=NO
  # Unused, we think
  # WithGhcHcType=HC_GLASGOW_GHC
***
*** 181,185 
  # -DDEBUG include consistency/assertion checks in the compiled compiler
  # -fshow-import-specs show import specialisations
! GhcHcOpts=-O -H30M
  
  # GhcWithHscBuiltViaC - build GHC compiler proper (\`hsc') from .hc files?
--- 181,185 
  # -DDEBUG include consistency/assertion checks in the compiled compiler
  # -fshow-import-specs show import specialisations
! GhcHcOpts=
  
  # GhcWithHscBuiltViaC - build GHC compiler proper (\`hsc') from .hc files?
***
*** 223,232 
  # In addition to the normal sequential way, the default is to also build
  # profiled prelude libraries.
! GhcLibWays=mc
  
  # Option flags to pass to GHC when it's compiling prelude modules
  # Typically these are things like -O or -dcore-lint
  # The ones that are *essential* are wired into ghc/lib/Makefile
! GhcLibHcOpts= -O -H30M -split-objs -odir $(basename $*)
  
  
--- 223,232 
  # In addition to the normal sequential way, the default is to also build
  # profiled prelude libraries.
! GhcLibWays=p
  
  # Option flags to pass to GHC when it's compiling prelude modules
  # Typically these are things like -O or -dcore-lint
  # The ones that are *essential* are wired into ghc/lib/Makefile
! GhcLibHcOpts= -split-objs -odir $(basename $*)