RE: build errors in ghc-current-src (ghc-4.00)

1998-10-12 Thread Sigbjorn Finne



 matt [mailto:[EMAIL PROTECTED]] writes: 
 
 Hiya Simon,
 
  I've just download the ghc-current-src.tar.gz file and tried
  to build a new ghc. The configure went alright, but when it 
  came time to do a gmake boot I get the attached error 
  messages. Is this a problem in the distribution, or something 
  that I have missed out about? I had a look on your webpages for
  a patch but didn't see anything.
 
  I'm compiling using a prebuilt ghc-2.10, on a Pentium/Linux machine
  with 32M ram and ~100M swap. I've even copied PrelArr.lhs into the
 

ghc-2.10 doesn't have PrelArr, which Outputable insists on getting at.
Safest bet would be to upgrade to ghc-3.02 and have another go. Meanwhile
I'll have a go at tweaking the compiler sources to make them ghc-2.10
friendly (it should be.)

--Sigbjorn



build errors in ghc-current-src (ghc-4.00)

1998-10-12 Thread matt

Hiya Simon,

 I've just download the ghc-current-src.tar.gz file and tried
 to build a new ghc. The configure went alright, but when it 
 came time to do a gmake boot I get the attached error 
 messages. Is this a problem in the distribution, or something 
 that I have missed out about? I had a look on your webpages for
 a patch but didn't see anything.

 I'm compiling using a prebuilt ghc-2.10, on a Pentium/Linux machine
 with 32M ram and ~100M swap. I've even copied PrelArr.lhs into the
 

thanks 
-- 
Matthew Love
Command  Control Information Systems
ADI Limited, Systems Group
Phone +61 8 9333 8936 (wk)
  +61 8 9272 5227 (hm)
Fax   +61 8 9333 8889
mailto:[EMAIL PROTECTED]

ghc -M -optdep-f -optdep.depend  -optdep-o -optdepo-cpp -fglasgow-exts 
-Rghc-timing -I. -IcodeGen -InativeGen -Iparser 
-iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:reader:profiling:parser:nativeGen
 -recomp  parser/U_binding.hs  parser/U_constr.hs  parser/U_either.hs  
parser/U_entidt.hs  parser/U_list.hs  parser/U_literal.hs  parser/U_maybe.hs  
parser/U_pbinding.hs  parser/U_qid.hs  parser/U_tree.hs  parser/U_ttype.hs 
utils/Argv.lhs utils/Bag.lhs utils/BitSet.lhs utils/Digraph.lhs utils/DirUtils.lhs 
utils/FastString.lhs utils/FiniteMap.lhs utils/ListSetOps.lhs utils/Maybes.lhs 
utils/OrdList.lhs utils/Outputable.l
 hs utils/Pretty.lhs utils/PrimPacked.lhs utils/SST.lhs utils/StringBuffer.lhs 
utils/UniqFM.lhs utils/UniqSet.lhs utils/Util.lhs basicTypes/BasicTypes.lhs 
basicTypes/Const.lhs basicTypes/DataCon.lhs basicTypes/Demand.lhs 
basicTypes/FieldLabel.lhs basicTypes/Id.lhs bas!
 icTypes/IdInfo.lhs basicTypes/MkId.lhs basicTypes/Name.lhs basicTypes/NameSet.lhs 
basicTypes/PprEnv.lhs basicTypes/SrcLoc.lhs basicTypes/UniqSupply.lhs 
basicTypes/Unique.lhs basicTypes/Var.lhs basicTypes/VarEnv.lhs basicTypes/VarSet.lhs 
types/Class.lhs types/PprType.lhs types/TyCon.lhs types/Type.lhs types/Unify.lhs 
hsSyn/HsBasic.lhs hsSyn/HsBinds.lhs hsSyn/HsCore.lhs hsSyn/HsDecls.lhs 
hsSyn/HsExpr.lhs hsSyn/HsImpExp.lhs hsSyn/HsMatches.lhs hsSyn/HsPat.lhs 
hsSyn/HsPragmas.lhs hsSyn/HsSyn.lhs hsSyn/HsTypes.lhs prelude/PrelInfo.lhs 
prelude/PrelMods.lhs prelude/PrelVals.lhs prelude/PrimOp.lhs prelude/PrimRep.lhs 
prelude/TysPrim.lhs prelude/TysWiredIn.lhs rename/Rename.lhs rename/RnBinds.lhs 
rename/RnEnv.lhs rename/RnExpr.lhs rename/RnHsSyn.lhs rena
me/RnIfaces.lhs rename/RnMonad.lhs rename/RnNames.lhs rename/RnSource.lhs 
typecheck/Inst.lhs typecheck/TcBinds.lhs typecheck/TcClassDcl.lhs 
typecheck/TcDefaults.lhs typecheck/TcD
.lhs simplCore/SAT.lhs simplCore/SATMonad.lhs simplCore/SetLevels.lhs 
simplCore/SimplCore.lhs simplCore/SimplMonad.lhs simplCore/SimplUtils.lhs 
simplCore/Simplify.lhs stranal/SaAbsInt.lhs stranal/SaLib.lhs stranal/StrictAnal.lhs 
stranal/WorkWrap.lhs stranal/WwLib.lhs stgSyn/CoreToStg.lhs stgSyn/StgLint.lhs 
stgSyn/StgSyn.lhs simplStg/LambdaLift.lhs simplStg/SRT.lhs simplStg/SimplStg.lhs 
simplStg/StgStats.lhs simplStg/StgVarInfo.lhs simplStg/UpdAnal.lhs 
codeGen/CgBindery.lhs codeGen/CgCase.lhs codeGen/CgClosure.lhs codeGen/CgCon.lhs 
codeGen/CgConTbls.lhs codeGen/CgExpr.lhs codeGen/CgHeapery.lhs 
codeGen/CgLetNoEscape.lhs codeGen/CgMonad.lhs codeGen/CgRetConv.lhs 
codeGen/CgStackery.lhs codeGen/CgTailCall.lhs codeGen/CgUpdate.lhs 
codeGen/CgUsages.lhs codeGen/ClosureInfo.lhs codeGen/CodeGen.lhs codeGen/SM!
 Rep.lhs absCSyn/AbsCSyn.lhs absCSyn/AbsCUtils.lhs absCSyn/CLabel.lhs 
absCSyn/CStrings.lhs absCSyn/CallConv.lhs absCSyn/Costs.lhs absCSyn/PprAbsC.lhs 
main/CmdLineOpts.lhs main/Constants.lhs main/ErrUtils.lhs main/M
ain.lhs main/MkIface.lhs reader/Lex.lhs reader/PrefixSyn.lhs reader/PrefixToHs.lhs 
reader/RdrHsSyn.lhs reader/ReadPrefix.lhs profiling/CostCentre.lhs 
profiling/SCCfinal.lhs parser/UgenAll.lhs parser/UgenUtil.lhs 
nativeGen/AbsCStixGen.lhs nativeGen/AsmCodeGen.lhs nativeGen/AsmRegAlloc.lhs 
nativeGen/MachCode.lhs nativeGen/MachMisc.lhs nativeGen/MachRegs.lhs 
nativeGen/PprMach.lhs nativeGen/RegAllocInfo.lhs nativeGen/Stix.lhs 
nativeGen/StixInfo.lhs nativeGen/StixInteger.lhs nativeGen/StixMacro.lhs 
nativeGen/StixPrim.lhs rename/ParseIface.hs
This is GHC 2.10 - [CONTROL VERSION]
No file `PrelArr.hi', `PrelArr.lhs', `PrelArr.hs' (reqd from file 
`utils/Outputable.lhs')
among import directories:

utils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:reader:profiling:parser:nativeGen:.
cpp: output pipe has been closed
gmake[2]: *** [depend] Error 1
gmake[1]: *** [boot] Error 1
gmake: *** [boot] Error 1

[1]  + exit 2 gmake boot
mattl 8








Another 4.00 bug

1998-10-12 Thread Ralf Hinze

High again,

make boot succeeded, make all stops with 

[..]

IdUtils.lhs:16: Module `PrimOp' does not export `primOpInfo'
 
IdUtils.lhs:16: Module `PrimOp' does not export `PrimOpInfo(..)'


Compilation had errors
make[2]: *** [basicTypes/IdUtils.o] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1

Again, let me know if you need more information.

Ralf



input file doesn't exist: parser/U_tree.hs

1998-10-12 Thread Ralf Hinze

High,

could not resist to install brand new 4.00. However, `make boot'
on my Solaris box was not successful:

[...]

parser/entidt.c  parser/list.c  parser/literal.c  parser/maybe.c  parser/pbinding.c  
parser/qid.c  parser/tree.c  parser/ttype.c 
ghc -M -optdep-f -optdep.depend  -optdep-o -optdepo-cpp -fglasgow-exts 
-Rghc-timing -I. -IcodeGen -InativeGen -Iparser 
-iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:reader:profiling:parser:nativeGen
 -recomp-H48M  parser/U_binding.hs  parser/U_constr.hs  parser/U_either.hs  
parser/U_entidt.hs  parser/U_list.hs  parser/U_literal.hs  parser/U_maybe.hs  
parser/U_pbinding.hs  parser/U_qid.hs  parser/U_tree.hs  parser/U_ttype.hs 
utils/Argv.lhs utils/Bag.lhs utils/BitSet.lhs utils/Digraph.lhs utils/DirUtils.lhs 
utils/FastString.lhs utils/FiniteMap.lhs utils/ListSetOps.lhs utils/Maybes.lhs 
utils/OrdList.lhs utils/Outputable.lhs utils/Pretty.lhs utils/PrimPacked.lhs 
utils/SST.lhs utils/StringBuffer.lhs utils/UniqFM.lhs utils/UniqSet.lhs utils/Util.lhs 
basicTypes/BasicTypes.lhs basicTypes/Const.lhs basicTypes/DataCon.lhs 
basicTypes/Demand.lhs basicTypes/FieldLabel.lhs basicTypes/Id.lhs !
 basicTypes/IdInfo.lhs basicTypes/IdUtils.lhs basicTypes/Literal.lhs 
basicTypes/MkId.lhs basicTypes/Name.lhs basicTypes/NameSet.lhs basicTypes/PprEnv.lhs 
basicTypes/SrcLoc.lhs basicTypes/UniqSupply.lhs basicTypes/Unique.lhs 
basicTypes/Var.lhs basicTypes/VarEnv.lhs basicTypes/VarSet.lhs types/Class.lhs 
types/Kind.lhs types/PprType.lhs types/TyCon.lhs types/TyVar.lhs types/Type.lhs 
types/Unify.lhs hsSyn/HsBasic.lhs hsSyn/HsBinds.lhs hsSyn/HsCore.lhs hsSyn/HsDecls.lhs 
hsSyn/HsExpr.lhs hsSyn/HsImpExp.lhs hsSyn/HsMatches.lhs hsSyn/HsPat.lhs 
hsSyn/HsPragmas.lhs hsSyn/HsSyn.lhs hsSyn/HsTypes.lhs prelude/PrelInfo.lhs 
prelude/PrelMods.lhs prelude/PrelVals.lhs prelude/PrimOp.lhs prelude/PrimRep.lhs 
prelude/TysPrim.lhs prelude/TysWiredIn.lhs rename/Rename.lhs rename/RnBinds.lhs 
rename/RnEnv.lhs rename/RnExpr.lhs rename/RnHsSyn.lhs rename/RnIfaces.lhs 
rename/RnMonad.lhs rename/RnNames.lhs rename/RnSource.lhs typecheck/Inst.lhs 
typecheck/TcBinds.lhs typecheck/TcClassDcl.lhs typecheck/TcD!
 efaults.lhs typecheck/TcDeriv.lhs typecheck/TcEnv.lhs typecheck/TcExpr
.lhs typecheck/TcForeign.lhs typecheck/TcGRHSs.lhs typecheck/TcGenDeriv.lhs 
typecheck/TcHsSyn.lhs typecheck/TcIfaceSig.lhs typecheck/TcInstDcls.lhs 
typecheck/TcInstUtil.lhs typecheck/TcKind.lhs typecheck/TcMatches.lhs 
typecheck/TcModule.lhs typecheck/TcMonad.lhs typecheck/TcMonoType.lhs 
typecheck/TcPat.lhs typecheck/TcSimplify.lhs typecheck/TcTyClsDecls.lhs 
typecheck/TcTyDecls.lhs typecheck/TcType.lhs typecheck/TcUnify.lhs typecheck/Unify.lhs 
deSugar/Check.lhs deSugar/Desugar.lhs deSugar/DsBinds.lhs deSugar/DsCCall.lhs 
deSugar/DsExpr.lhs deSugar/DsForeign.lhs deSugar/DsGRHSs.lhs deSugar/DsHsSyn.lhs 
deSugar/DsListComp.lhs deSugar/DsMonad.lhs deSugar/DsUtils.lhs deSugar/Match.lhs 
deSugar/MatchCon.lhs deSugar/MatchLit.lhs coreSyn/AnnCoreSyn.lhs coreSyn/CoreLift.lhs 
coreSyn/CoreLint.lhs coreSyn/CoreSyn.lhs coreSyn/CoreUnfold.lhs coreSyn/CoreUtils.lhs 
coreSyn/FreeVars.lhs coreSyn/PprCore.lhs specialise/SpecEnv.lhs 
specialise/SpecUtils.lhs specialise/Specialise.lhs simplCore/AnalF!
 BWW.lhs simplCore/BinderInfo.lhs simplCore/ConFold.lhs simplCore/FloatIn.lhs 
simplCore/FloatOut.lhs simplCore/FoldrBuildWW.lhs simplCore/LiberateCase.lhs 
simplCore/MagicUFs.lhs simplCore/OccurAnal.lhs simplCore/SAT.lhs 
simplCore/SATMonad.lhs simplCore/SetLevels.lhs simplCore/SimplCase.lhs 
simplCore/SimplCore.lhs simplCore/SimplEnv.lhs simplCore/SimplMonad.lhs 
simplCore/SimplPgm.lhs simplCore/SimplUtils.lhs simplCore/SimplVar.lhs 
simplCore/Simplify.lhs stranal/SaAbsInt.lhs stranal/SaLib.lhs stranal/StrictAnal.lhs 
stranal/WorkWrap.lhs stranal/WwLib.lhs stgSyn/CoreToStg.lhs stgSyn/StgLint.lhs 
stgSyn/StgSyn.lhs simplStg/LambdaLift.lhs simplStg/SRT.lhs simplStg/SimplStg.lhs 
simplStg/StgStats.lhs simplStg/StgVarInfo.lhs simplStg/UpdAnal.lhs 
codeGen/CgBindery.lhs codeGen/CgCase.lhs codeGen/CgClosure.lhs codeGen/CgCon.lhs 
codeGen/CgConTbls.lhs codeGen/CgExpr.lhs codeGen/CgHeapery.lhs 
codeGen/CgLetNoEscape.lhs codeGen/CgMonad.lhs codeGen/CgRetConv.lhs 
codeGen/CgStackery.lhs codeGen/!
 CgTailCall.lhs codeGen/CgUpdate.lhs codeGen/CgUsages.lhs codeGen/Closu
reInfo.lhs codeGen/CodeGen.lhs codeGen/SMRep.lhs absCSyn/AbsCSyn.lhs 
absCSyn/AbsCUtils.lhs absCSyn/CLabel.lhs absCSyn/CStrings.lhs absCSyn/CallConv.lhs 
absCSyn/Costs.lhs absCSyn/HeapOffs.lhs absCSyn/PprAbsC.lhs main/CmdLineOpts.lhs 
main/Constants.lhs main/ErrUtils.lhs main/Main.lhs main/MkIface.lhs reader/Lex.lhs 
reader/PrefixSyn.lhs reader/PrefixToHs.lhs reader/RdrHsSyn.lhs reader/ReadPrefix.lhs 
profiling/CostCentre.lhs profiling/SCCfinal.lhs parser/UgenAll.lhs parser/UgenUtil.lhs 
nativeGen/AbsCStixGen.lhs nativeGen/AsmCodeGen.lhs nativeGen/AsmRegAlloc.lhs 

RE: input file doesn't exist: parser/U_tree.hs

1998-10-12 Thread Sigbjorn Finne



 Ralf Hinze [mailto:[EMAIL PROTECTED]] writes: 
 
 High,
 
 could not resist to install brand new 4.00. However, `make boot'
 on my Solaris box was not successful:
 
 [...]
 
 parser/entidt.c  parser/list.c  parser/literal.c  
 parser/maybe.c  parser/pbinding.c  parser/qid.c  
 parser/tree.c  parser/ttype.c 
 ghc -M -optdep-f -optdep.depend ...
 ghc: input file doesn't exist: parser/U_tree.hs
 
 
 Any suggestions? Please, let me know if you need more information.
 

Looks as if a bunch of machine generated files managed to sneak
their way in - for every *.ugn file in compiler/parser, make
sure that you remove the corresponding *.c and *.h files first.

--Sigbjorn



RE: Another 4.00 bug

1998-10-12 Thread Sigbjorn Finne



 Ralf Hinze [mailto:[EMAIL PROTECTED]] writes: 
 
 High again,
 
 make boot succeeded, make all stops with 
 
 [..]
 
 IdUtils.lhs:16: Module `PrimOp' does not export `primOpInfo'
  
 IdUtils.lhs:16: Module `PrimOp' does not export `PrimOpInfo(..)'
 
 

Weird, this module (IdUtils) isn't part of ghc/compiler/ anymore
- just delete it, and have (yet another :-) go.

--Sigbjorn



RE: Yet another superfluous file ...

1998-10-12 Thread Sigbjorn Finne



 Ralf Hinze [mailto:[EMAIL PROTECTED]] writes: 
 
 TyVar.lhs:71: Value not in scope: `uniqueOf'
  
 TyVar.lhs:178: Value not in scope: `uniqueOf'
 
 
 What do you think: Is it safe to react uniformly to these errors by
 just deleting the offending file?
 

Yes, just nuke any module that causes similar complaints, and see
where that takes you :-) (I'll download and have a go with the
dist sometime later this evening.)

My guess is that the build tree from which the dist was made
contained the union of 4.00 source files (aka. new-rts) and
the mainline (ghc-3.xx) sources.

--Sigbjorn



Problem building 4.00 on Solaris

1998-10-12 Thread Antony Bowers


Hi,

My make on Solaris fell over as follows:

flex -t -8 -s   parser/hslexer.flex  parser/hslexer.c || ( rm -f parser/hslexer.c  
exit 1 )
yacc -d -v   parser/hsparser.y

conflicts: 24 shift/reduce
mv y.tab.c parser/hsparser.tab.c
mv y.tab.h parser/hsparser.tab.h
gcc -Iparser -I. -I../includes -O-c parser/hslexer.c -o parser/hslexer.o
gcc -Iparser -I. -I../includes -O-c parser/hsparser.tab.c -o parser/hsparser.tab.o
parser/hsparser.y: In function `yyparse':
parser/hsparser.y:785: parse error before `}'
parser/hsparser.y:1160: parse error before `}'
make[2]: *** [parser/hsparser.tab.o] Error 1

I presume the Solaris yacc is the root of this problem, so I
will try installing bison. In the meantime, if there are any other
suggestions, please pass them on.

   Tony

PS. To Ralf Hinze: is it possible that you have accidentally untarred your
4.00 distribution on top of an older distribution? I made this mistake
once, and had problems similar to those you are experiencing.

Antony Bowers, Department of Computer Science, University of Bristol, UK.
http://www.cs.bris.ac.uk/~bowers/





Re: Yet another superfluous file ...

1998-10-12 Thread Simon Marlow

Ralf Hinze [EMAIL PROTECTED] writes:

 
 TyVar.lhs:71: Value not in scope: `uniqueOf'
  
 TyVar.lhs:178: Value not in scope: `uniqueOf'
 
 
 What do you think: Is it safe to react uniformly to these errors by
 just deleting the offending file?

The distribution on the ftp site doesn't have these files.  Did you
perchance unpack it over an old build tree?

Cheers,
Simon

-- 
Simon Marlow [EMAIL PROTECTED]
University of Glasgow   http://www.dcs.gla.ac.uk/~simonm/
finger for PGP public key



Re: input file doesn't exist: parser/U_tree.hs

1998-10-12 Thread Simon Marlow

Sigbjorn Finne [EMAIL PROTECTED] writes:

 Looks as if a bunch of machine generated files managed to sneak
 their way in - for every *.ugn file in compiler/parser, make
 sure that you remove the corresponding *.c and *.h files first.

There aren't any of these files in the dist (I removed them after the
complaints last time).

Cheers,
Simon

-- 
Simon Marlow [EMAIL PROTECTED]
University of Glasgow   http://www.dcs.gla.ac.uk/~simonm/
finger for PGP public key



Re: Yet another superfluous file ...

1998-10-12 Thread Ralf Hinze

| Ralf Hinze [EMAIL PROTECTED] writes:
| 
|  
|  TyVar.lhs:71: Value not in scope: `uniqueOf'
|   
|  TyVar.lhs:178: Value not in scope: `uniqueOf'
|  
|  
|  What do you think: Is it safe to react uniformly to these errors by
|  just deleting the offending file?
| 
| The distribution on the ftp site doesn't have these files.  Did you
| perchance unpack it over an old build tree?

Ah, yes! BTW Is it always safe to remove the complete build tree?

Sorry for any trouble on your side, Ralf



RE: Yet another superfluous file ...

1998-10-12 Thread Sigbjorn Finne


 
 Ah, yes! BTW Is it always safe to remove the complete build tree?
 

No, it may leave you without a ghc to use, and you might then
be forced to use hugs, nhc or hbc instead, and you wouldn't want
to do that, would you? :-)

--Sigbjorn