ghc-5.02 build on SunOS 5.6 fails with segmentation fault
Julian Seward (Intl Vendor)
v-julsew@microsoft.com
Fri, 12 Oct 2001 09:56:01 -0700
Sigbjorn,
Interesting. We've had no such problem on Solaris 2.7
on sparc. Our gcc version is 2.95.2, btw. Pls keep me
informed as we would obviously like to ship a fix for
this prob in 5.02.1 if poss.
J
| -----Original Message-----
| From: Sigbjorn Finne [mailto:sof@galconn.com]=20
| Sent: Friday, October 12, 2001 5:53 PM
| To: Akop Pogosian
| Cc: glasgow-haskell-users@haskell.org
| Subject: Re: ghc-5.02 build on SunOS 5.6 fails with segmentation fault
|=20
|=20
| Yes, we've seen behaviour like this here on that platform.
| If you try feeding the failing compiler invocation the extra=20
| command-line option "-dshow-passes" and it shows up as=20
| failing pretty early on in the game (parsing, renaming),=20
| here's something you may want to try out:
|=20
| - in mk/build.mk (in the toplevel directory), define the
| following
|=20
| GHC_HAPPY_OPTS=3D-g
|=20
| - in ghc/compiler/ remove the following files
|=20
| parser/Parser.o parser/Parser.hs
| parser/ParseIface.o parser/ParseIface.hs
| main/ParsePkgConf.o main/ParsePkgConf.hs
|=20
| and do a 'make all'
|=20
| - with the freshly built contents of ghc/compiler in hand,
| proceed to ghc/lib and continue.
|=20
| This may or may not address your problem -- I've yet to
| isolate the bug we were running into, but poking around
| with 'gdb' suggested that the string-encoded tables that
| Happy generates when using the options "-agc" was causing
| the problem.
|=20
| --sigbjorn
|=20
| ----- Original Message -----
| From: "Akop Pogosian" <akopps@CSUA.Berkeley.EDU>
| To: <glasgow-haskell-users@haskell.org>
| Sent: Thursday, October 11, 2001 17:12
| Subject: ghc-5.02 build on SunOS 5.6 fails with segmentation fault
|=20
|=20
| > I am trying to build ghc-5.02 on Solaris 2.6. I already have a=20
| > ghc-4.08 distribution that works. ghc build fails after nearly two=20
| > hours of compiling with this error:
| >
| > /opt/local/bin/ld -r -x -o PrelDynamic.p_o PrelDynamic/*.p_o; rm -f=20
| > PrelIOBase.p_o; if [ ! -d PrelIOBase ]; then mkdir PrelIOBase; else
| /usr/b
| > in/find PrelIOBase -name '*.p_o' | xargs rm -f __rm_food; fi;
| >
| ../../../ghc/compiler/ghc-inplace -ldl -fvia-C -cpp=20
| -fglasgow-exts -O -Rghc- timing -package-name std =20
| -split-objs -hisuf p_hi -hcsuf p_hc -osuf p_o -prof=20
| -funbox-strict-fields -fno-ignore-asserts -c PrelIOBase.lhs=20
| -o PrelIOBase.p_o
| > Segmentation Fault
| > gmake[4]: *** [PrelIOBase.p_o] Error 1
| > gmake[3]: *** [all] Error 1
| > gmake[2]: *** [all] Error 1
| > gmake[1]: *** [all] Error 1
| > gmake[1]: Leaving directory `/home/src/akopps/ghc-5.02/ghc'
| > gmake: *** [all] Error 1
| >
| >
| > Has anyone seen this happen before?
| >
| >
| > -akop
| >
| >
| >
| > _______________________________________________
| > Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org
| > http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
|=20
|=20
| _______________________________________________
| Glasgow-haskell-users mailing list=20
| Glasgow-haskell-users@haskell.org=20
| http://www.haskell.org/mailman/listinfo/glasgo| w-haskell-users
|=20