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

GHC cvs-ghc at haskell.org
Sun Mar 6 08:36:00 UTC 2011


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

Comment(by erikd):

 It seems like the logic which sets USE_MMAP:

 {{{
 #if defined(linux_HOST_OS    ) || defined(freebsd_HOST_OS) || \
     defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS ) || \
     defined(openbsd_HOST_OS  ) || \
     ( defined(darwin_HOST_OS ) && !defined(powerpc_HOST_ARCH) ) || \
     defined(kfreebsdgnu_HOST_OS) \
 }}}

 should be changed to:

 {{{
 #if !defined(powerpc_HOST_ARCH) && \
     (   defined(linux_HOST_OS    ) || defined(freebsd_HOST_OS) || \
         defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS ) || \
         defined(openbsd_HOST_OS  ) || defined(darwin_HOST_OS ) || \
         defined(kfreebsdgnu_HOST_OS) ) \
 }}}

 so that powerpc_HOST_ARCH is tested regardless of the OS.

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





More information about the Pkg-haskell-maintainers mailing list