logo       

[GHC] #706: GHC links _stub.o files regardless of whether any 'foreign impo: msg#00082

lang.haskell.glasgow.bugs

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

#706: GHC links _stub.o files regardless of whether any 'foreign import' decls
remain in a .hs file
---------------------------------+------------------------------------------
Reporter: ncalexan@xxxxxxx | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler (FFI) | Version: 6.4.1
Severity: minor | Keywords: ffi, link
Os: MacOS X | Difficulty: Unknown
Architecture: powerpc |
---------------------------------+------------------------------------------
It appears GHC links any _stub.o files it can find, which is not correct
(although usually it only leads to duplicate symbols.) To duplicate, have
two modules A and B, and a foreign import in A. A_stub.o will be built as
usual. Copy A_stub.o to B_stub.o, relink and have duplicate symbols.

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/706>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise