logo       

RE: Segmentation fault in ghc-6-2-branch-in-place: msg#00058

lang.haskell.glasgow.bugs

Subject: RE: Segmentation fault in ghc-6-2-branch-in-place

To compile the 6.2 branch with itself, you do not need to install it and
reconfigure.

Just say
make
in fptools/, and it'll build ghc/compiler/stage1/ghc-inplace, build the
libraries, and then go back to ghc/compiler and build
ghc/compiler/stage2/ghc-inplace.

Chaos will result I if you change which GHC you are using in a
particular tree, because the compilation manager will think that .hi and
.o files are up to date, whereas they aren't. I suspect, but I'm not
sure, that this is what's happening.

I urge you strongly to type
make
in fptools/! Since you are now messed up, it might be safer to start
with 'make clean'.

I hope that you have the following in fptools/:
fptools/ghc
fptools/libraries

Simon


| -----Original Message-----
| From: glasgow-haskell-bugs-bounces@xxxxxxxxxxx
[mailto:glasgow-haskell-bugs-
| bounces@xxxxxxxxxxx] On Behalf Of Serge D. Mechveliani
| Sent: 18 May 2004 11:22
| To: glasgow-haskell-bugs@xxxxxxxxxxx
| Subject: Segmentation fault in ghc-6-2-branch-in-place
|
| Dear GHC developers,
|
| I have built the cvs update -r 6-2-branch in my home dir.
|
| It was compiled by ghc-6.2.1 official and istalled in
| .../ghcCVS/inst
|
| It worked in some examples, but as I wrote you, some errors appear.
| Now I am trying to rebuild 6-2-branch from the same source by
| itself:
|
| > cd myfptools
| > ./configure --prefix=/home/mechvel/ghcCVS/inst2
| GHC=/home/mechvel/ghcCVS/inst/bin/ghc
| > make all
|
| And it reports
|
|
| ***************************************************
|
| make[1]: Entering directory
`/disk2/home/mechvel/ghcCVS/myfptools/glafp-utils'
|
------------------------------------------------------------------------
| ===fptools== Recursively making `boot' in mkdependC mkdirhier
runstdtest
| docbook lndir ...
| PWD = /disk2/home/mechvel/ghcCVS/myfptools/glafp-utils
| ...
| ...
| /home/mechvel/ghcCVS/inst/bin/ghc -M -optdep-f -optdep.depend -osuf o
| -H16m -O
HaskTags.hs
|
| -- the ghc-2-branch envoked, right?
| ...
| ...
| /home/mechvel/ghcCVS/inst/bin/ghc -H16m -O -cpp -c
| Config.hs -o Config.o -ohi
Config.hi
| ...
| ...
| /home/mechvel/ghcCVS/inst/bin/ghc -o stage1/ghc-6.2.1 -H16m -O
| -istage1/utils ...
| -H16M '-#include "hschooks.h"' -no-link-chk
| stage1/absCSyn/AbsCSyn.o stage1/absCSyn/AbsCUtils.o
| ....
| -----------------------------------------------------------------
| ==fptools== make all -wr;
| in /disk2/home/mechvel/ghcCVS/myfptools/ghc/rts
| -----------------------------------------------------------------
| ../../ghc/compiler/ghc-inplace -optc-O -optc-Wall -optc-W
-optc-Wstrict-prototypes -optc-Wmissing-
| prototypes -optc-Wmissing-declarations -optc-Winline
-optc-Waggregate-return -optc-Wbad-function-
| cast -optc-I../includes -optc-I. -optc-Iparallel -optc-DCOMPILING_RTS
-optc-fomit-frame-pointer -
| H16m -O -O2 -static -c Adjustor.c -o Adjustor.o
|
| -- the new ghc-inplace invoked, right?
|
| make[2]: *** [Adjustor.o] Segmentation fault
| make[1]: *** [all] Error 1
| make[1]: Leaving directory `/disk2/home/mechvel/ghcCVS/myfptools/ghc'
| make: *** [build] Error 1
|
| ****************************************************
|
|
|
| Please, advise,
|
| -----------------
| Serge Mechveliani
| mechvel@xxxxxxxx
|
|
| _______________________________________________
| Glasgow-haskell-bugs mailing list
| Glasgow-haskell-bugs@xxxxxxxxxxx
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise