#1644: Problem with interface file (.hi) for a particular function
-------------------------------------------+--------------------------------
    Reporter:  [EMAIL PROTECTED]  |        Owner:         
        Type:  bug                         |       Status:  new    
    Priority:  normal                      |    Milestone:         
   Component:  Compiler                    |      Version:  6.6.1  
    Severity:  normal                      |   Resolution:         
    Keywords:                              |   Difficulty:  Unknown
          Os:  Unknown                     |     Testcase:         
Architecture:  Unknown                     |  
-------------------------------------------+--------------------------------
Comment (by [EMAIL PROTECTED]):

 I'm running ghc 6.6.1 on Ubuntu gutsy, and here's what ghc-pkg reports:

 {{{
 $ ghc-pkg list
 /usr/lib/ghc-6.6.1/package.conf:
     Cabal-1.1.3, Cabal-1.1.6.2, HAppS-0.8.8, HTTP-3000.0.1,
     HUnit-1.1.1, HaXml-1.13.2, LDAP-0.6.1, QuickCheck-1.0.1, X11-1.2.1,
     X11-extras-0.2, arrows-0.2.1, base-2.1.1, binary-0.3, cdr-1.0.0,
     fgl-5.4.1, filepath-1.0, generic-xml-0.1, (ghc-6.6.1),
     haskell-src-exts-0.2, haskell98-1.0, hslogger-1.0.2, hsql-1.6,
     hsql-mysql-1.6, hsql-postgresql-1.6, hsql-sqlite3-1.0, html-1.0.1,
     hxt-7.2, mtl-1.0.1, network-2.0.1, parsec-2.0, readline-1.0,
     regex-base-0.72, regex-compat-0.71, regex-posix-0.71, rts-1.0,
     sfhs-1.0.0, stm-2.0, syb-with-class-0.3, template-haskell-2.1,
     time-1.1.1, unix-2.1, vty-3.0.0, xhtml-3000.0.2
 }}}

 I managed to cut down the problem to this:

 {{{
 import Control.Arrow

 -- Nonsense function
 foo = first [second]

 main = do
   putStrLn $ foo 10
 }}}

 Compiling this nonsense program fails with:

 {{{
 $ ghc Test.hs
 Test.o: In function `s11w_info':
 (.text+0xde): undefined reference to `Main_foo_closure'
 Test.o: In function `s11w_srt':
 (.rodata+0x4): undefined reference to `Main_foo_closure'
 collect2: ld returned 1 exit status
 }}}

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