[GHC] #7628: Improve error message when mixing 32bit and 64bit images

#7628: Improve error message when mixing 32bit and 64bit images ----------------------------+----------------------------------------------- Reporter: morabbin | Owner: Type: feature request | Status: new Priority: normal | Component: Compiler Version: 7.6.1 | Keywords: Os: MacOS X | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: ----------------------------+----------------------------------------------- Since we know when the user has mixed 32 and 64 bit images, let's say so in the error message. Before: {{{ Loading object (static) dist/build/HOC_cbits.o ... ghc: dist/build/HOC_cbits.o: Bad magic. Expected: feedfacf, got: feedface. ghc: panic! (the 'impossible' happened) (GHC version 7.6.1 for x86_64-apple-darwin): loadObj "dist/build/HOC_cbits.o": failed Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} After: {{{ Loading object (static) dist/build/HOC_cbits.o ... ghc-stage2: Could not load image dist/build/HOC_cbits.o: bad magic! Expected feedfacf (64bit), got feedface (32bit). ghc-stage2: panic! (the 'impossible' happened) (GHC version 7.7.20130124 for x86_64-apple-darwin): loadObj "dist/build/HOC_cbits.o": failed }}} Patch to come. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7628 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7628: Improve error message when mixing 32bit and 64bit images ----------------------------+----------------------------------------------- Reporter: morabbin | Owner: Type: feature request | Status: patch Priority: normal | Component: Compiler Version: 7.6.1 | Keywords: Os: MacOS X | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: ----------------------------+----------------------------------------------- Changes (by morabbin): * status: new => patch -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7628#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7628: Improve error message when mixing 32bit and 64bit images ---------------------------------+------------------------------------------ Reporter: morabbin | Owner: igloo Type: feature request | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 7.6.1 Keywords: | Os: MacOS X Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Changes (by simonpj): * owner: => igloo * difficulty: => Unknown Comment: Assigning to Ian for patch review -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7628#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7628: Improve error message when mixing 32bit and 64bit images
---------------------------------+------------------------------------------
Reporter: morabbin | Owner: igloo
Type: feature request | Status: patch
Priority: normal | Milestone:
Component: Compiler | Version: 7.6.1
Keywords: | Os: MacOS X
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by andy.adamsmoran@…):
commit 12e3d3f4690d76b57ca70cdfdbad049fabd79bde
{{{
Author: Andy Adams-Moran

#7628: Improve error message when mixing 32bit and 64bit images ------------------------------+--------------------------------------------- Reporter: morabbin | Owner: igloo Type: feature request | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.1 Resolution: fixed | Keywords: Os: MacOS X | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: ------------------------------+--------------------------------------------- Changes (by igloo): * status: patch => closed * resolution: => fixed Comment: Applied, thanks -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7628#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC