Skip to content

GHC > 6.10 fails to build on PowerPC / MacOS X Leopard

I'm trying to build GHC 6.12.2 on PowerPC / MacOS 10.5.8, but stage2 compiler causes an internal error:

"inplace/bin/ghc-stage2" -H32m -O -DNEW_GHC_LAYOUT
-hide-all-packages -i -iutils/haddock/src
-iutils/haddock/dist/build -iutils/haddock/dist/build/autogen
-Iutils/haddock/dist/build -Iutils/haddock/dist/build/autogen
-optP-DIN_GHC_TREE -optP-include
-optPutils/haddock/dist/build/autogen/cabal_macros.h -package
Cabal-1.8.0.4 -package array-0.3.0.0 -package base-4.2.0.1
-package containers-0.3.0.0 -package directory-1.0.1.1 -package
filepath-1.1.0.4 -package ghc-6.12.2 -package pretty-1.0.1.1
-funbox-strict-fields -O2 -Wall -XForeignFunctionInterface -XCPP
-XPatternGuards -XDeriveDataTypeable -XScopedTypeVariables
-XMagicHash -odir utils/haddock/dist/build -hidir
utils/haddock/dist/build -stubdir utils/haddock/dist/build -hisuf
hi -osuf o -hcsuf hc -c
utils/haddock/src/Haddock/InterfaceFile.hs -o
utils/haddock/dist/build/Haddock/InterfaceFile.o
ghc-stage2: internal error: evacuate: strange closure type 24576
    (GHC version 6.12.2 for powerpc_apple_darwin)
    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

The stage2 compiler is built with -thread by default, so I tried building it with -debug. As a result, the compiler caused Segmentation Fault on the same source file. The SegFault happened at some internal function like "s1ht_info" in "compiler/stage2/build/UniqFM.o".

Trac metadata
Trac field Value
Version 6.12.2
Type Bug
TypeOfFailure BuildingGhcFailed
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Edited by Christian Maeder
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information