[GHC] #8781: check if GNU nm is really needed and if so let configure detect gnm

GHC ghc-devs at haskell.org
Tue Mar 25 08:39:10 UTC 2014


#8781: check if GNU nm is really needed and if so let configure detect gnm
----------------------------------------+-----------------------------
        Reporter:  maeder               |            Owner:  kgardas
            Type:  feature request      |           Status:  patch
        Priority:  normal               |        Milestone:
       Component:  Build System         |          Version:  7.8.1-rc1
      Resolution:                       |         Keywords:
Operating System:  Solaris              |     Architecture:  x86
 Type of failure:  Building GHC failed  |       Difficulty:  Unknown
       Test Case:                       |       Blocked By:
        Blocking:                       |  Related Tickets:
----------------------------------------+-----------------------------

Comment (by maeder):

 I propose the code as follows:

 {{{
           parseNmLine xs0 = case words xs0 of
                             x0 : x1 : x2 : r -> case stripPrefix prefix $
 dropWhile (== '_') x0 of
                               Just name -> case readHex $ case r of
                                   [x3] | x1 /= "C" -> x3
                                   _ -> x2 of
                                 [(size, "")] -> Just (name, size)
                                 _ -> Nothing
                               _ -> Nothing
                             _ -> Nothing
 }}}

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


More information about the ghc-tickets mailing list