> Simon Marlow wrote:
> 
> > > If I do the following ...
> >
> > I think these bugs (the illegal -x option to ld, and the messed up
> > installation directories) were fixed in 5.02.2.  Could you 
> try building
> > that version instead?
> >
> > Cheers,
> >         Simon
> 
> Well, the -x options are still there

You're right, that patch didn't get merged into the 5.02 branch.  Sorry
- for now, just remove the -x's by hand.

> and now I dump core while compiling with
> the new ghc-inplace opbject.  Below is the trace ...

I've just finished building 5.02.3 on sparc-solaris, and didn't get any
core dumps, so there must be something different about your setup.  What
version of 
gcc are you using?  What version of GHC are you bootstrapping with?

> $ tar xvfi ghc-5.02.2-src-1.tar
> $ cd ghc-5.02.2
> $ cp -r ../happy-1.11/happy .
> $ echo "prefix = /home/dorr/func/haskell/installs/ghc-5.02.2" 
> >mk/build.mk

Better to set prefix at configure time (i.e. ./configure --prefix=...).

> $ find . -name configure
> ./ghc/rts/gmp/configure
> ./ghc/configure
> ./configure
> $ ./configure
> $ cd ghc
> $ ./configure

not necessary - the top-level configure script invokes the lower ones.

> $ cd rts/gmp
> $ ./configure

not necessary - this is invoked by the Makefile in ghc/rts if necessary.

> $ cd ../../..
> $ make
>    :
> /usr/ccs/bin/ld: illegal option -- x
> -> remove ld -x options in mk/target.mk per posting on buglist
> -> remove ld -x options in ghc/lib/std/Makefile per posting on buglist
> 
> $ make
>    :
> rm -f Monad.p_o; if [ ! -d Monad ]; then mkdir Monad; else 
> /usr/bin/find Monad -name '*.p_o' | xargs rm -f __rm_food; fi;
> ../../../ghc/compiler/ghc-inplace -ldl -fvia-C -cpp 
> -fglasgow-exts -O -Rghc-timing -package-name std  -split-objs 
> -hisuf p_hi -h
> csuf p_hc -osuf p_o -prof   -c Monad.lhs -o Monad.p_o
> Bus Error - core dumped
> <<ghc: 65936848 bytes, 21 GCs, 966856/1743392 avg/max bytes 
> residency (3 samples), 7M in use, 0.02 INIT (0.02 elapsed), 1.81 MUT
>  (5.98 elapsed), 0.63 GC (0.66 elapsed) :ghc>>
> make[4]: *** [Monad.p_o] Error 1
> make[3]: *** [all] Error 1
> make[2]: *** [all] Error 1
> make[1]: *** [all] Error 1
> make[1]: Leaving directory 
> `/home/dorr/func/haskell/sources/ghc-5.02.2/ghc'
> make: *** [all] Error 1

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

Reply via email to