[GHC] #9549: deriveConstants fails on OpenBSD

GHC ghc-devs at haskell.org
Sun Sep 21 20:04:10 UTC 2014


#9549: deriveConstants fails on OpenBSD
-------------------------------------+-------------------------------------
              Reporter:  roland      |            Owner:
                  Type:  bug         |           Status:  new
              Priority:  normal      |        Milestone:
             Component:  Build       |          Version:  7.9
  System                             |         Keywords:
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:  OpenBSD     |       Difficulty:  Unknown
       Type of failure:  Building    |       Blocked By:
  GHC failed                         |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 Yes, someone (maybe you roland?) reported the same problem on #ghc a
 couple months ago. I agree there doesn't seem to be any way to get the
 relevant information out of OpenBSD's nm.

 GHC contains ''three'' different reimplementations of various parts of
 autoconf's functionality (DeriveConstants, mkGmpDerivedConstants, hsc2hs).
 I'm increasingly tempted to tear out all of them and replace them with a
 pile of autoconf. But, I'm not going to get around to it any time soon.

 In the short term, we could detect in GHC's configure whether `nm -P` has
 (one of) the expected output(s) on a test object file, and if not, try
 `objdump` instead; then put whichever one worked into a new autoconf
 variable and use that as the `--nm-program` argument to DeriveConstants,
 and teach it to parse the objdump format too.

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


More information about the ghc-tickets mailing list