[Pkg-haskell-maintainers] Bug#616635: [GHC] #4999: build fails on powerpc: error: 'ObjectCode' has no member named 'misalignment'

GHC cvs-ghc at haskell.org
Wed Mar 9 11:42:26 UTC 2011


#4999: build fails on powerpc:   error: 'ObjectCode' has no member named
'misalignment'
-------------------------------+--------------------------------------------
    Reporter:  nomeata         |        Owner:                     
        Type:  bug             |       Status:  new                
    Priority:  normal          |    Milestone:                     
   Component:  Runtime System  |      Version:  7.0.2              
    Keywords:                  |     Testcase:                     
   Blockedby:                  |   Difficulty:                     
          Os:  Linux           |     Blocking:                     
Architecture:  powerpc         |      Failure:  Building GHC failed
-------------------------------+--------------------------------------------

Comment(by erikd):

 Ok, with that bad patch chunk removed, it compiles, with these warnings:

 {{{
 rts/Linker.c:1891:16:
      error: 'misalignment' may be used uninitialized in this function
 rts/Linker.c: In function 'loadObj':

 rts/Linker.c:2066:7:
      error: 'misalignment' may be used uninitialized in this function
 }}}

 The stage one compile completes, but it errors out in stage 2 when
 compling the vector library.

 Looking at the code in rts/Linker.c, misalignment is caclucaled by a
 function machoGetMisalignment() which seems to be darwin_HOST_OS specific.
 We need the powerpc-linux version of that function.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4999#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler





More information about the Pkg-haskell-maintainers mailing list