GHC > 6.8.2 on IA64-Linux platform (Itanium)
Karel Gardas
karel.gardas at centrum.cz
Sun Jan 2 18:09:05 CET 2011
Hello,
[sorry for cross-post, I assume Itanium interest is quite rare these
days so to grab attention of Itanium/Haskell people I send to both
haskell-cafe and ghc list]
I'd like to compile more recent than 6.8.2 GHC on itanium-linux system I
do have access to, but I'm kind of unlucky with this. I'm trying
unregisterised build (of 6.12.3 and 6.10.4) and it always fails with:
"inplace/bin/ghc-stage2" -H32m -O -package-name dph-base-0.4.0
-hide-all-packages -i -ilibraries/dph/dph-base/.
-ilibraries/dph/dph-base/dist-install/build
-ilibraries/dph/dph-base/dist-install/build/autogen
-Ilibraries/dph/dph-base/dist-install/build
-Ilibraries/dph/dph-base/dist-install/build/autogen
-Ilibraries/dph/dph-base/include -optP-include
-optPlibraries/dph/dph-base/dist-install/build/autogen/cabal_macros.h
-package array-0.3.0.1 -package base-4.2.0.2 -package ghc-prim-0.2.0.0
-package random-1.0.0.2 -Odph -funbox-strict-fields -haddock -fcpr-off
-XTypeFamilies -XGADTs -XRankNTypes -XBangPatterns -XMagicHash
-XUnboxedTuples -XTypeOperators -O2 -XGenerics
-fno-warn-deprecated-flags -Wwarn -odir
libraries/dph/dph-base/dist-install/build -hidir
libraries/dph/dph-base/dist-install/build -stubdir
libraries/dph/dph-base/dist-install/build -hisuf hi -osuf o -hcsuf hc
-c libraries/dph/dph-base/./Data/Array/Parallel/Base/Hyperstrict.hs -o
libraries/dph/dph-base/dist-install/build/Data/Array/Parallel/Base/Hyperstrict.o
ghc-stage2: internal error: evacuate: strange closure type 15
(GHC version 6.12.3 for ia64_unknown_linux)
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
make[1]: ***
[libraries/dph/dph-base/dist-install/build/Data/Array/Parallel/Base/Hyperstrict.o]
Aborted
make: *** [all] Error 2
I even attempted unoptimized build with mk/build.mk containing this:
GhcUnregisterised=YES
GhcWithNativeCodeGen=NO
SplitObjs=NO
SRC_HC_OPTS = -H64m -O0
GhcStage1HcOpts = -O0
GhcStage2HcOpts = -O0
GhcLibHcOpts = -O0
but this time ghc segfaults while compiling:
"inplace/bin/ghc-stage2" -H64m -O0 -package-name dph-base-0.4.0
-hide-all-packages -i -ilibraries/dph/dph-base/.
-ilibraries/dph/dph-base/dist-install/build
-ilibraries/dph/dph-base/dist-install/build/autogen
-Ilibraries/dph/dph-base/dist-install/build
-Ilibraries/dph/dph-base/dist-install/build/autogen
-Ilibraries/dph/dph-base/include -optP-include
-optPlibraries/dph/dph-base/dist-install/build/autogen/cabal_macros.h
-package array-0.3.0.1 -package base-4.2.0.2 -package ghc-prim-0.2.0.0
-package random-1.0.0.2 -Odph -funbox-strict-fields -haddock -fcpr-off
-XTypeFamilies -XGADTs -XRankNTypes -XBangPatterns -XMagicHash
-XUnboxedTuples -XTypeOperators -O0 -fno-warn-deprecated-flags -Wwarn
-odir libraries/dph/dph-base/dist-install/build -hidir
libraries/dph/dph-base/dist-install/build -stubdir
libraries/dph/dph-base/dist-install/build -hisuf hi -osuf o -hcsuf hc
-c libraries/dph/dph-base/./Data/Array/Parallel/Base/Hyperstrict.hs -o
libraries/dph/dph-base/dist-install/build/Data/Array/Parallel/Base/Hyperstrict.o
make[1]: ***
[libraries/dph/dph-base/dist-install/build/Data/Array/Parallel/Base/Hyperstrict.o]
Segmentation fault
I've also seen, the last available GHC in Debian for IA64 platform is
6.8.2 -- which I'm using for bootstrap btw so debian will not help me
here with some clever patch which would change recent ghc to be buildable...
So, I'd like to ask here: is there anybody who was lucky enough to find
appropriate set of options or any other magic way how to compile more
recent GHC sources to the _stable_ compiler binary on IA64/Linux? If so,
please let me know.
Thanks a lot,
Karel
More information about the Glasgow-haskell-users
mailing list