[GHC] #13259: cross-endian GHC generates invalid .hi files

#13259: cross-endian GHC generates invalid .hi files -------------------------------------+------------------------------------- Reporter: slyfox | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- I've reproduced the bug in the following setup: {{{ ./configure \ --enable-unregisterised \ --host=x86_64-pc-linux-gnu \ --target=m68k-unknown-linux-gnu }}} m68k is a 32-bit big-endian machine. {{{ $ LD_BIND_NOW=1 inplace/bin/ghc-stage2 --show-iface libraries/base/dist- install/build/System/IO.hi Magic: Wanted 129742, got 3472490752 magic number mismatch: old/corrupt interface file? (wanted 129742, got 3472490752) $ printf "%08X - %08X\n" 129742 3472490752 0001FACE - CEFA0100 }}} Reverting changeset:fbcef83a3aa130d976a201f2a21c5afc5a43d000 restores .hi loading and ghc-stage2. I'm still not sure what exactly breaks. WORDS_BIGENDIAN looks suspicious. I guess it breaks ghc-stage1 endianness understanding. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13259 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13259: cross-endian GHC generates invalid .hi files -------------------------------------+------------------------------------- Reporter: slyfox | Owner: Type: bug | Status: new Priority: highest | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by rwbarton): * priority: normal => highest * cc: alexbiehl (added) * milestone: => 8.2.1 Comment: I'm marking this as a release blocker as in the worst case we can just revert fbcef83a3aa130d976a201f2a21c5afc5a43d000. I'm not sure exactly what is wrong either, but possibly we could use the new code in the non-crosscompiling case only. Do we know that it's actually faster? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13259#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13259: cross-endian GHC generates invalid .hi files -------------------------------------+------------------------------------- Reporter: slyfox | Owner: Type: bug | Status: patch Priority: highest | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): D3122 Wiki Page: | -------------------------------------+------------------------------------- Changes (by alexbiehl): * status: new => patch * differential: => D3122 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13259#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13259: cross-endian GHC generates invalid .hi files -------------------------------------+------------------------------------- Reporter: slyfox | Owner: Type: bug | Status: patch Priority: highest | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3122 Wiki Page: | -------------------------------------+------------------------------------- Changes (by slyfox): * differential: D3122 => Phab:D3122 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13259#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13259: cross-endian GHC generates invalid .hi files -------------------------------------+------------------------------------- Reporter: slyfox | Owner: (none) Type: bug | Status: patch Priority: highest | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3122 Wiki Page: | -------------------------------------+------------------------------------- Comment (by slyfox): Was merged to -HEAD as changeset:d3ea38ef0299e9330a105fa59dda38f9ec0712c4 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13259#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13259: cross-endian GHC generates invalid .hi files -------------------------------------+------------------------------------- Reporter: slyfox | Owner: (none) Type: bug | Status: closed Priority: highest | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3122 Wiki Page: | -------------------------------------+------------------------------------- Changes (by slyfox): * status: patch => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13259#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC