So I know things are in a state of flux right now and I really
shouldn't expect to be able to build the current repository contents
without expert advice but I decided that I really, really needed the
latest changes to the foreign object support and just had to do it.


Attempt#1 
~~~~~~~~~

Tried bootstrapping with ghc-4.07(ish).

  # Used something like this sequence on this attempt
  cvs checkout fpconfig
  cd fptools
  cvs checkout happy ghc hslibs
  autoconf
  (cd ghc && autoconf)
  GHC=ghc-4.07 ./configure --prefix=$HOME/local
  make boot

Failed in make boot because ghc-4.07 doesn't support some new hslibs
library.  Various attempts to build the library failed so...

Attempt#2
~~~~~~~~~

Installed ghc-4.08.1 from the FreeBSD port.
[Description of how to do this if you don't have root access omitted
to preserve your stomach contents.]

Failed in make boot because the dependencies in ghc/lib/std are built 
with ghc/ghc-inplace.  But I don't have ghc/ghc-inplace yet because
I haven't built the compiler yet.


Attempt#3
~~~~~~~~~

Tried make GHC_INPLACE=ghc-4.08.1 boot in ghc/lib/std
Clearly a dodgy proposition but I figure the dependency info can't be
that different.

Failed because ghc-4.08.1 doesn't support the -fglasgow-exts-no-lang
flag.

Attempt#4
~~~~~~~~~

make boot -k
make all -k
make boot
make all

Hope is that the first make all won't die until after it's built hsc
and creating ghc/ghc-inplace and that a working hsc (but no libraries)
is enough to let me build the dependencies in the libraries so that
the second make all will succeed.

Well, my hope wasn't realised...
Here's one of the errors that occured during this process.

/z/reid/inst-ghc/bin/ghc-4.08.1 -DGHCI -optc-DGHCI -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:profiling:parser:usageSP:cprAnalysis:javaGen:compMan:nativeGen:ghci
  -package concurrent -package posix -package text -recomp -O    -c 
rename/RnHiFiles.lhs -o rename/RnHiFiles.o -osuf o
Segmentation fault

Looks like I'm not going to get myself a ghc-inplace this way.

Attempt#5
~~~~~~~~~

[Unlikely to work given the above segfault but it's too dark to ski so
I've nothing else to do.]

Randomly hack ghc/lib/std/Makefile until make boot will succeed.
make boot
make all

Well, I'll save that till tomorrow - decided I needed dinner and a
long soak in our hot tub.


Any suggestions as to how I might proceed?
(Remember, I don't care at all about having ghc-4.11, all I really
want is Sigbjorn's latest fixes.  Best I can think of is to wind back
the clock to 4.08, apply Siggy's fixes to the resulting code (a mere
cvs update -Dtoday seems unlikely to work) and pretend I'm building 4.08.)


-- 
Alastair Reid        [EMAIL PROTECTED]        http://www.cs.utah.edu/~reid/

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to