problem building pre-GHC-4.00/2 (PrimPacked.lhs)

1998-10-07 Thread Alex Verbitsky

I'm trying to build pre-GHC-4.00/2 on Cygwin B19 with GHC-3.03.
I get the following error:


==fptools== make all --unix --no-print-directory -r;
 in /install/ghc-pre-4.00.2/fptools/ghc/compiler

ghc-3.03 -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen -Iparser
 -iutils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:spe
cialise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:reader:profil
ing:parser:nativeGen -recomp   -fvia-C -monly-3-regs -optC-funfolding-interf
ace-threshold10 -v -c utils/PrimPacked.lhs -o utils/PrimPacked.o -osuf o
The Glorious Glasgow Haskell Compilation System, version 3.03, patchlevel 0

literate pre-processor:
 echo '#line 1 "utils/PrimPacked.lhs"'  /tmp/ghc1016.lpp 
/gw19/usr/lib/ghc-3.03/unlit  utils/PrimPacked.lhs -   /tmp/ghc1016.lpp
0.04user 0.03system 0:00.22elapsed 31%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps

Effective command
line: -cpp -fglasgow-exts -Rghc-timing -I. -IcodeGen -InativeGen -Iparser -i
utils:basicTypes:types:hsSyn:prelude:rename:typecheck:deSugar:coreSyn:specia
lise:simplCore:stranal:stgSyn:simplStg:codeGen:absCSyn:main:reader:profiling
:parser:nativeGen -recomp -fvia-C -monly-3-regs -optC-funfolding-interface-t
hreshold10 -v -c -o utils/PrimPacked.o -osuf o

Haskellised C pre-processor:
 echo '{-# LINE 1 "utils/PrimPacked.lhs" -}'  /tmp/ghc1016.cpp 
/gw19/usr/lib/ghc-3.03/hscpp -v  -D__HASKELL1__=4 -D__GLASGOW_HASKELL__=303 
-I. -I. -IcodeGen -InativeGen -Iparser -I/gw19/usr/lib/ghc-3.03/includes -I/
gw19/usr/lib/ghc-3.03/includes /tmp/ghc1016.lpp  /tmp/ghc1016.cpp
0.04user 0.06system 0:00.17elapsed 58%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps
hscpp:CPP invoked:
/gw19/H-i386-cygwin32/lib/gcc-lib/i386-cygwin32/2.7-B19/cpp.exe -traditional
 -D__HASKELL1__=4 -D__GLASGOW_HASKELL__=303 -I. -I. -IcodeGen -InativeGen -I
parser -I/gw19/usr/lib/ghc-3.03/includes -I/gw19/usr/lib/ghc-3.03/includes
/tmp/ghc1016.lpp
ghc-3.03:compile:Output file utils/PrimPacked.o doesn't exist
ghc-3.03:compile:Interface file utils/PrimPacked.hi doesn't exist
ghc-3.03:recompile:Input file utils/PrimPacked.lhs newer than
utils/PrimPacked.o

Haskell compiler:
 /gw19/usr/lib/ghc-3.03/hsc ,-N ,-W
,/tmp/ghc1016.cpp  -fglasgow-exts -funfolding-interface-threshold10 -fignore
-interface-pragmas -fomit-interface-pragmas -fsimplify
 -ffloat-lets-exposing-whnf -ffloat-primops-ok -fcase-of-case -fdo-case-elim
 -freuse-con -fpedantic-bottoms -fclone-binds -fmax-simplifier-iterations4  
]   -fwarn-overlapping-patterns -fwarn-missing-methods -fwarn-duplicate-expo
rts -fhi-version=303 -himap=utils%.hi:basicTypes%.hi:types%.hi:hsSyn%.hi:pre
lude%.hi:rename%.hi:typecheck%.hi:deSugar%.hi:coreSyn%.hi:specialise%.hi:sim
plCore%.hi:stranal%.hi:stgSyn%.hi:simplStg%.hi:codeGen%.hi:absCSyn%.hi:main%
.hi:reader%.hi:profiling%.hi:parser%.hi:nativeGen%.hi:.%.hi:/gw19/usr/lib/gh
c-3.03/imports/exts%.hi:/gw19/usr/lib/ghc-3.03/imports/exts%.hi:/gw19/usr/li
b/ghc-3.03/imports/std%.hi   -v -hifile=/tmp/ghc1016.hi -C=/tmp/ghc1016.hc -
F=/tmp/ghc1016_stb.c -FH=/tmp/ghc1016_stb.h
+RTS -H600 -K100 -s/tmp/ghc1016.stat
Glasgow Haskell Compiler, version3.03, for Haskell 1.4

PrimPacked.lhs:135: Data constructor not in scope: `ForeignObj'

PrimPacked.lhs:256: Data constructor not in scope: `ForeignObj'


Compilation had errors

Command exited with non-zero status 1
5.56user 0.82system 0:09.22elapsed 69%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+0minor)pagefaults 0swaps
deleting... /tmp/ghc1016.lpp /tmp/ghc1016.cpp /tmp/ghc1016.hi
/tmp/ghc1016.hc /tmp/ghc1016_stb.c /tmp/ghc1016_stb.h /tmp/ghc1016.stat

rm -f /tmp/ghc1016*
make[2]: *** [utils/PrimPacked.o] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1




I guess that PrimPached.lhs need Prelude from ghc-4.00 but get it from 3.03.
Am i right?
Any hints?


Thanks a lot,
 Alex





RE: problem building pre-GHC-4.00/2 (PrimPacked.lhs)

1998-10-07 Thread Sigbjorn Finne


Alex Verbitsky [EMAIL PROTECTED] writes:
 
 I'm trying to build pre-GHC-4.00/2 on Cygwin B19 with GHC-3.03.
 I get the following error:
 
  ...
 
 Glasgow Haskell Compiler, version3.03, for Haskell 1.4
 
 PrimPacked.lhs:135: Data constructor not in scope: `ForeignObj'
 
 PrimPacked.lhs:256: Data constructor not in scope: `ForeignObj'
 
 
 Compilation had errors
 

Yep, the pre-4.00 sources are not compatible with 3.03 in a couple
of minor (but crucial) ways, I'm afraid. The release of ghc-4.00,
which fixes this prob., is only days away though.

--Sigbjorn