[GHC] #12875: GHC fails to link all StaticPointers-defining modules of a library in an executable

GHC ghc-devs at haskell.org
Thu Nov 24 01:28:01 UTC 2016


#12875: GHC fails to link all StaticPointers-defining modules of a library in an
executable
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.2.1
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
                                     |  StaticPointers
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by mboes):

 > That failing, the simplest solution could be to document that the module
 defining static pointers needs to be imported transitively into the main
 module of an executable supposed to find them.

 That solution would be as anti-modular as non StaticPtr remote tables.
 Losing modularity would defeat much of the purpose of this language
 extension.

 Surely we can let the linker know that downstream modules *might* depend
 on `ALib.Things`?

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


More information about the ghc-tickets mailing list