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

GHC ghc-devs at haskell.org
Fri Mar 14 14:20:39 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 think, I've a better patch. Always call "nm -P" (for POSIX.2 standard
 output). The output looks like

 {{{
 derivedConstantMAX_Vanilla_REG C 0000000b 0000000b
 }}}

 for gnm or like

 {{{
 derivedConstantMAX_Vanilla_REG D        1        b
 }}}

 for Solaris nm.

 So just take the first and last word (of 4 words) to extract the name and
 the size.

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


More information about the ghc-tickets mailing list