Skip to content

"Prologue junk?" error when building GHC

As far as I can tell this is a bug in the Evil Mangler.

This is on Windows, using MSYS to build. The relevant make output, compiling the HEAD:

make -C rts
make[1]: Entering directory `/D/Programming/src/ghc-HEAD/rts'
d:/Programming/src/ghc-HEAD/ghc/stage1-inplace/ghc  -fvia-C -static  -I../gmp/gmpbuild
-I../libffi/build/include -I. -dcmm-lint     -c Apply.cmm -o Apply.o
Prologue junk?: .globl _stg_ap_0_fast
_stg_ap_0_fast:
/APP
 # 9 "C:\Temp\/ghc3572_0/ghc3572_0.hc" 1

make[1]: *** [Apply.o] Error 9
make[1]: Leaving directory `/D/Programming/src/ghc-HEAD/rts'
make: *** [stage1] Error 2

This happens also when building 6.10.1, so it's not a HEAD problem. I didn't try other GHC versions.

gcc --version:

gcc.exe (GCC) 4.3.0 20080305 (alpha-testing) mingw-20080502

Attached is a .raw_s obtained by running the ghc command with -keep-raw-s-file.

Trac metadata
Trac field Value
Version 6.10.1
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