build error for ghc 6.4 on Solaris

Hello,
I get the following error when building ghc 6.4 on Solaris 9.
Any ideas how to solve this ?
Thanks in advance.
Martin
...
grep -v '^#pragma GCC' | \
sed -e 's/""//g' -e 's/:[ ]*,/: /g' >package.conf.installed
../utils/ghc-pkg/ghc-pkg-inplace --force --update-package

Martin Preen wrote:
Hello, I get the following error when building ghc 6.4 on Solaris 9. Any ideas how to solve this ?
...
grep -v '^#pragma GCC' | \ sed -e 's/""//g' -e 's/:[ ]*,/: /g' >package.conf.installed ../utils/ghc-pkg/ghc-pkg-inplace --force --update-package
Fail: already exists Action: createDirectory Reason: File exists
make[2]: *** [../driver/stamp-pkg-conf-rts] Error 1 make[1]: *** [boot] Error 1 make[1]: Leaving directory `/scratch/ghc-6.4/ghc' make: *** [build] Error 1
I found a workaround by simply pre-creating the directory and then the build finishes successfully. Now I tried to re-compile the source using the first build: ... /usr/local/fptools/bin/ghc -H16m -O -istage1/utils -istage1/basicTypes -istage1/types -istage1/hsSyn -istage1/prelude -istage1/rename -istage1/typecheck -istage1/deSugar -istage1/coreSyn -istage1/specialise -istage1/simplCore -istage1/stranal -istage1/stgSyn -istage1/simplStg -istage1/codeGen -istage1/main -istage1/profiling -istage1/parser -istage1/cprAnalysis -istage1/compMan -istage1/ndpFlatten -istage1/iface -istage1/cmm -istage1/ghci -Istage1 -DOMIT_NATIVE_CODEGEN -DGHCI -package template-haskell -package readline -DUSE_READLINE -cpp -fglasgow-exts -fno-generics -Rghc-timing -I. -IcodeGen -InativeGen -Iparser -package unix -package Cabal -recomp -Rghc-timing -H16M '-#include "hschooks.h"' -i../lib/compat -fno-cse -c main/CmdLineOpts.lhs -o stage1/main/CmdLineOpts.o -ohi stage1/main/CmdLineOpts.hi make[2]: *** [stage1/main/CmdLineOpts.o] Bus Error (core dumped) make[1]: *** [all] Error 1 make[1]: Leaving directory `/scratch/ghc-6.4/ghc' make: *** [build] Error 1 This seems to be a more serious problem, or is it just specific to the ghc build process ? Martin ----------------------------------------------------------------- Martin Preen, Universitaet Freiburg, Institut fuer Informatik Georges-Koehler-Allee, Geb.52, Zi.00-006, 79110 Freiburg, Germany phone: ++49 761 203-8250 preen@informatik.uni-freiburg.de fax: ++49 761 203-8242 www.informatik.uni-freiburg.de

Martin Preen wrote:
...
then the build finishes successfully. Now I tried to re-compile the source using the first build:
... /usr/local/fptools/bin/ghc -H16m -O -istage1/utils -istage1/basicTypes -istage1/types -istage1/hsSyn -istage1/prelude -istage1/rename -istage1/typecheck -istage1/deSugar -istage1/coreSyn -istage1/specialise -istage1/simplCore -istage1/stranal -istage1/stgSyn -istage1/simplStg -istage1/codeGen -istage1/main -istage1/profiling -istage1/parser -istage1/cprAnalysis -istage1/compMan -istage1/ndpFlatten -istage1/iface -istage1/cmm -istage1/ghci -Istage1 -DOMIT_NATIVE_CODEGEN -DGHCI -package template-haskell -package readline -DUSE_READLINE -cpp -fglasgow-exts -fno-generics -Rghc-timing -I. -IcodeGen -InativeGen -Iparser -package unix -package Cabal -recomp -Rghc-timing -H16M '-#include "hschooks.h"' -i../lib/compat -fno-cse -c main/CmdLineOpts.lhs -o stage1/main/CmdLineOpts.o -ohi stage1/main/CmdLineOpts.hi make[2]: *** [stage1/main/CmdLineOpts.o] Bus Error (core dumped) make[1]: *** [all] Error 1 make[1]: Leaving directory `/scratch/ghc-6.4/ghc' make: *** [build] Error 1
This seems to be a more serious problem, or is it just specific to the ghc build process ?
I found another situation where a Bus Error occurs. Trying to build lhs2TeX gives ... /usr/local/fptools/bin/ghc -c -O -package lang NewCode.lhs -o NewCode.o /usr/local/fptools/bin/ghc -c -O -package lang Math.lhs -o Math.o make: *** [Math.o] Bus Error (core dumped) Regards. Martin ----------------------------------------------------------------- Martin Preen, Universitaet Freiburg, Institut fuer Informatik Georges-Koehler-Allee, Geb.52, Zi.00-006, 79110 Freiburg, Germany phone: ++49 761 203-8250 preen@informatik.uni-freiburg.de fax: ++49 761 203-8242 www.informatik.uni-freiburg.de

These bus errors are the reason for a missing ghc-6.4 solaris distribution. Is someone able to investigate such bus errors? Cheers Christian
participants (2)
-
Christian Maeder
-
Martin Preen