[GHC] #8166: Undefined references in HEAD object files

GHC ghc-devs at haskell.org
Tue Aug 27 02:18:31 UTC 2013


#8166: Undefined references in HEAD object files
---------------------------------+----------------------------------
        Reporter:  joelteon      |            Owner:  jstolarek
            Type:  bug           |           Status:  new
        Priority:  high          |        Milestone:  7.8.1
       Component:  Compiler      |          Version:  7.7
      Resolution:                |         Keywords:
Operating System:  Linux         |     Architecture:  x86_64 (amd64)
 Type of failure:  None/Unknown  |       Difficulty:  Unknown
       Test Case:                |       Blocked By:
        Blocking:                |  Related Tickets:
---------------------------------+----------------------------------

Comment (by Austin Seipp <aseipp@…>):

 In [changeset:776cfe28cf089c24a56a288f2f0c49494f7d9e47/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="776cfe28cf089c24a56a288f2f0c49494f7d9e47"
 Properly externalise codegen identifiers (#8166)

 388e14e2 unfortunately broke a subtle invariant in the code generator:
 when generating code for an application, names may need to be
 externalised, in case you're building against something external with
 was built with -split-objs.

 We were never externalising the ids of the applied functions. This means
 if the libraries are split and we call into them, then the compiler
 won't may not generate correct ids when making references to functions
 in the library (causing linker failure).

 I'm not entirely sure how this didn't break everything, but it certainly
 caused several failures for a bunch of people. I had to fiddle with my
 tree a little to make this occur.

 This should fix #8166.

 Signed-off-by: Austin Seipp <aseipp at pobox.com>
 }}}

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




More information about the ghc-tickets mailing list