Opened 9 years ago

Closed 9 years ago

#2871 closed bug (fixed)

"Prologue junk?" error when building GHC

Reported by: Deewiant Owned by: igloo
Priority: high Milestone: 6.10.2
Component: Compiler Version: 6.10.1
Keywords: Cc:
Operating System: Windows Architecture: x86
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


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
 # 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.

Attachments (1)

Apply.raw_s (5.7 KB) - added by Deewiant 9 years ago.

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by Deewiant

Attachment: Apply.raw_s added

comment:1 Changed 9 years ago by igloo

difficulty: Unknown
Milestone: 6.10.2
Priority: normalhigh

Thanks for the report, we'll take a look

comment:2 Changed 9 years ago by igloo

Owner: set to igloo

comment:3 Changed 9 years ago by igloo

Resolution: fixed
Status: newclosed

Fixed in HEAD and 6.10:

Wed Feb 11 07:03:40 PST 2009  Ian Lynagh <>
  * Tweak the mangler; fixes trac #2871
  It was getting confused by lines like:
   # 9 "C:\Temp\/ghc620_0/ghc620_0.hc" 1
Note: See TracTickets for help on using tickets.