Skip to content

-optc-O2 used by default in GhcRtsHcOpts while building 6.5, leading make to fail

GHC-6.4.2 initial compiler

gcc (GCC) 3.4.4 (Gentoo 3.4.4, ssp-3.4.4-1.0, pie-8.7.8)

making ghc-6.5-20060703 snapshot

download, unpack, configure with custom --prefix, and make eventually errors with:

../compiler/ghc-inplace -H16m -O -optc-O2 -static -I. -#include HCIncludes.h -dcmm-lint   -#include posix/Itimer.h  -c PrimOps.cmm -o PrimOps.o
Prologue junk?:         .globl retryzh_fast
        .type   retryzh_fast, @function
retryzh_fast:
        mfcr 12
make[1]: *** [PrimOps.o] Error 255
make: *** [stage1] Error 1

Adding GhcRtsHcOpts=-optc-O1 to mk/build.mk resolved this error upon running make again.

-- Isaac Dupree

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