[GHC] #706: GHC links _stub.o files regardless of whether any 'foreign import' decls remain in a .hs file

GHC trac at galois.com
Mon Feb 27 06:04:39 EST 2006


#706: GHC links _stub.o files regardless of whether any 'foreign import' decls
remain in a .hs file
-------------------------------+--------------------------------------------
  Reporter:  ncalexan at uci.edu  |          Owner:          
      Type:  bug               |         Status:  new     
  Priority:  normal            |      Milestone:          
 Component:  Compiler (FFI)    |        Version:  6.4.1   
  Severity:  minor             |     Resolution:          
  Keywords:  ffi, link         |             Os:  Multiple
Difficulty:  Unknown           |   Architecture:  Multiple
-------------------------------+--------------------------------------------
Changes (by simonmar):

  * architecture:  powerpc => Multiple
  * os:  MacOS X => Multiple

Comment:

 I believe this only happens if you are using --make or GHCi, and GHC
 decides the file does not need compiling.  In this case it picks up any
 {{{_stub.o}}} file it finds.  We should really check the source file for
 foreign export / foreign import wrapper before using the {{{_stub.o}}}
 file.

-- 
Ticket URL: <http://cvs.haskell.org/trac/ghc/ticket/706>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list