#5864: Windows build fails: undefined reference to `_imp___imp__n_capabilities'
---------------------------------+------------------------------------------
    Reporter:  igloo             |       Owner:              
        Type:  bug               |      Status:  new         
    Priority:  highest           |   Milestone:  7.6.1       
   Component:  Compiler          |     Version:  7.5         
    Keywords:                    |          Os:  Windows     
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown
  Difficulty:  Unknown           |    Testcase:              
   Blockedby:                    |    Blocking:              
     Related:                    |  
---------------------------------+------------------------------------------

Comment(by pcapriotti):

 The problem here is that `getNumCapabilities` is inlined, and the mangled
 name `_imp__*` is used for the foreign call to `n_capabilities`, so when
 the file is linked, it gets incorrectly mangled again.

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to