#7304 closed bug (fixed)

arm-linux: Missing field in record construction DynFlags.sPlatformConstants

Reported by: erikd Owned by: igloo
Priority: high Milestone: 7.8.1
Component: Compiler Version: 7.7
Keywords: Cc:
Operating System: Linux Architecture: arm
Type of failure: Building GHC failed Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Compiling git HEAD for arm-linux, the build fails in DPH with:

  HC [stage 2] libraries/dph/dph-prim-seq/dist-install/build
               /Data/Array/Parallel/Unlifted/Sequential/USel.o
  HC [stage 2] libraries/dph/dph-prim-seq/dist-install/build
               /Data/Array/Parallel/Unlifted/Sequential/USegd.o
  HC [stage 2] libraries/dph/dph-prim-par/dist-install/build        
               /Data/Array/Parallel/Unlifted/Distributed/Primitive/DPrim.o
  HC [stage 2] libraries/dph/dph-prim-par/dist-install/build
               /Data/Array/Parallel/Unlifted/Parallel/Subarrays.o
panic: Settings not defined in tracingDynFlags
ghc-stage2: panic! (the 'impossible' happened)
  (GHC version 7.7.20121007 for arm-unknown-linux):
        compiler/main/DynFlags.hs:1200:19-64: Missing field in 
        record construction DynFlags.sPlatformConstants

Change History (3)

comment:1 Changed 19 months ago by simonpj

  • Difficulty set to Unknown
  • Milestone set to 7.8.1
  • Owner set to igloo
  • Priority changed from normal to high

comment:2 Changed 19 months ago by ian@…

commit f7cd14fd30d40ae7e904a533804f43d43dd8f439

Author: Ian Lynagh <ian@well-typed.com>
Date:   Mon Oct 8 21:55:23 2012 +0100

    Put the DynFlags in a global variable for tracing; fixes #7304
    
    This is an ugly kludge to make a DynFlags value available for the
    'trace' functions. It may not be the value we really ought to use,
    but it'll be good enough for the pretty-printer to use.
    
    Ideally we'd pass the real DynFlags down to all the trace calls,
    but this will do for now at least.

 compiler/main/DynFlags.hs      |   30 +++++++-----------------------
 compiler/main/DynFlags.hs-boot |    2 --
 compiler/main/GHC.hs           |    2 +-
 compiler/main/StaticFlags.hs   |   21 +++++++++++++++++++++
 compiler/utils/Outputable.lhs  |    8 ++++----
 5 files changed, 33 insertions(+), 30 deletions(-)

comment:3 Changed 19 months ago by igloo

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

This should be fixed now; please re-open if you still have problems.

Note: See TracTickets for help on using tickets.