Opened 5 years ago

Closed 5 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: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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.

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by Deewiant

comment:1 Changed 5 years ago by igloo

  • Difficulty set to Unknown
  • Milestone set to 6.10.2
  • Priority changed from normal to high

Thanks for the report, we'll take a look

comment:2 Changed 5 years ago by igloo

  • Owner set to igloo

comment:3 Changed 5 years ago by igloo

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in HEAD and 6.10:

Wed Feb 11 07:03:40 PST 2009  Ian Lynagh <igloo@earth.li>
  * 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.