I’m redirecting this message to ghc
bugs.
Several people have experienced this
problem, and I don’t think we know what it is. Adjustor.c is simply the
first RTS C file to be compiled, so it looks as if somehow GHC crashes then.
To get more evidence, use EXTRA_HC_OPTS=-v
to get verbose output from GHC, so you can see which gcc it’s
running. Then you need to find out what is crashing.
Does anyone else know what is going on?
Or how to find more evidence?
It’d be great to really understand what’s
happening here, so we know for the next time.
Simon
-----Original Message-----
From: Garner,
Robin
[mailto:Robin.Garner@xxxxxxxxxxxxxxx]
Sent: 07
February 2003 02:08
To:
glasgow-haskell-users@xxxxxxxxxxx
Subject: Build error
I'm trying to build ghc 5.04.2 from the source distribution
(on Linux, RH 7.2), and get the following error
..==fptools==
make all -wr;
in /usr/local/src/ghc-5.04.2/ghc/rts
------------------------------------------------------------------------
.../utils/ghc-pkg/ghc-pkg-inplace --update-package <rts.conf.inplace
Reading package info from stdin... done.
Expanding embedded variables...done.
warning: can't find GHCi lib `HSrts.o'
Saving old package config file... done.
Writing new package config file... done.
.../utils/ghc-pkg/ghc-pkg-inplace -f ../driver/package.conf --update-package
<rts.conf.installed
Reading package info from stdin... done.
Expanding embedded variables...done.
warning: can't find GHCi lib `HSrts.o'
Saving old package config file... done.
Writing new package config file... done.
../../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-Wcast-align -optc-I../includes -optc-I.
-optc-Iparallel -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -ldl -O2
-static -package-name rts -O -Rghc-timing -c Adjustor.c -o Adjustor.o
ghc: 598636 bytes, 2 GCs, 32532/32532 avg/max bytes residency (1 samples), 5M
in use, 0.02 INIT (0.01 elapsed), 0.02 MUT (0.04 elapsed), 0.06 GC (0.16
elapsed) :ghc>>
make[2]: *** [Adjustor.o] Error 1
make[1]: *** [all] Error 1
make[1]: Leaving directory `/usr/local/src/ghc-5.04.2/ghc'
make: *** [all] Error 1
----------------------------------------
If
I use the analogous gcc command, everything works. How can I find out
what's going wrong ?
Thanks,
Robin