[GHC] #5551: GHCi and linker scripts, part II

GHC cvs-ghc at haskell.org
Wed Oct 12 15:00:11 CEST 2011


#5551: GHCi and linker scripts, part II
-------------------------------+--------------------------------------------
    Reporter:  toothbrush      |       Owner:                    
        Type:  bug             |      Status:  new               
    Priority:  normal          |   Component:  GHCi              
     Version:  7.0.4           |    Keywords:                    
    Testcase:                  |   Blockedby:                    
          Os:  Linux           |    Blocking:                    
Architecture:  x86_64 (amd64)  |     Failure:  Compile-time crash
-------------------------------+--------------------------------------------
 This bug seems exactly like #2615, but here goes. Ran into this trying to
 use Agda-mode for emacs, which didn't work. Turns out it's ghci failing to
 load libncursesw.so.

 My system is Debian x64 testing, with agda installed from cabal and
 ghc-7.0.4. Steps to reproduce for me:

 $ ghci
 > :set -package Agda-2.2.10
 [snip]
 Loading package terminfo-0.3.2.2 ... can't load .so/.DLL for: ncursesw
 (/usr/lib/x86_64-linux-gnu/libncursesw.so: file too short)

 The contents of that file is:

 INPUT(libncursesw.so.5 -ltinfo)

 In the referenced bug I saw that a trick to fix it might be to append many
 newlines to the linker script (which I did), which solicits an "invalid
 ELF header" error, but ghci still fails.

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



More information about the Glasgow-haskell-bugs mailing list