[GHC] #12595: Linker failure: multiple definition of

GHC ghc-devs at haskell.org
Thu Sep 15 20:59:08 UTC 2016


#12595: Linker failure: multiple definition of
-------------------------------------+-------------------------------------
        Reporter:  MikolajKonarski   |                Owner:
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:  8.0.2
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Linux             |         Architecture:  x86_64
 Type of failure:  GHC rejects       |  (amd64)
  valid program                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #10531            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by rwbarton):

 I managed to reproduce this. It has something to do with BangPatterns
 apparently. Here is a reproducer with just two modules:
 {{{
 -- U.hs
 module U where
 u :: Int
 u = 1

 -- Main.hs
 {-# LANGUAGE BangPatterns #-}
 import U
 main = print $ let !x = u in x
 }}}
 `ghc-8.0.1 -O Main` fails with the same sort of linker error.

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


More information about the ghc-tickets mailing list