#3333: GHCi doesn't load weak symbols
--------------------------------------+-------------------------------------
    Reporter:  heatsink               |        Owner:              
        Type:  bug                    |       Status:  new         
    Priority:  normal                 |    Milestone:  6.14.1      
   Component:  GHCi                   |      Version:  6.10.4      
    Keywords:  weak, dynamic loading  |   Difficulty:  Unknown     
          Os:  Linux                  |     Testcase:              
Architecture:  x86                    |      Failure:  None/Unknown
--------------------------------------+-------------------------------------
Description changed by heatsink:

Old description:

> GHCi fails to load modules with weak symbols.  The compiler, in contrast,
> has no trouble with them.  The attached Cabal package demonstrates the
> problem.  After building and installing:
>
> {{{
> :Prelude> :m +WeakTest
> Prelude WeakTest> weak_test 0
> Loading package WeakTest-0 ... linking ... <interactive>:
> /home/cirodrig/.cabal/lib/WeakTest-0/ghc-6.10.3/HSWeakTest-0.o: unknown
> symbol `weak_test'
> }}}
>
> I encountered this problem while trying to build a package that contains
> C++ code.  Because GCC generates weak symbols when compiling C++,
> libraries that contain C++ code will not work in GHCi.  (Granted, this is
> not the only problem with mixing C++ and Haskell.)

New description:

 GHCi fails to load modules with weak symbols.  The compiler, in contrast,
 has no trouble with them.  The attached Cabal package demonstrates the
 problem.  After building and installing:

 {{{
 :Prelude> :m +WeakTest
 Prelude WeakTest> weak_test 0
 Loading package WeakTest-0 ... linking ... <interactive>:
 /home/heatsink/.cabal/lib/WeakTest-0/ghc-6.10.3/HSWeakTest-0.o: unknown
 symbol `weak_test'
 }}}

 I encountered this problem while trying to build a package that contains
 C++ code.  Because GCC generates weak symbols when compiling C++,
 libraries that contain C++ code will not work in GHCi.  (Granted, this is
 not the only problem with mixing C++ and Haskell.)

--

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3333#comment:5>
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