[GHC] #3179: Linking unix package fails

GHC trac at galois.com
Tue May 12 13:18:55 EDT 2009


#3179: Linking unix package fails
----------------------------+-----------------------------------------------
 Reporter:  eelco           |          Owner:        
     Type:  bug             |         Status:  new   
 Priority:  normal          |      Milestone:        
Component:  libraries/unix  |        Version:  6.10.2
 Severity:  major           |     Resolution:        
 Keywords:                  |       Testcase:        
       Os:  Linux           |   Architecture:  x86   
----------------------------+-----------------------------------------------
Comment (by antonvs):

 I ran into this exact error with GHC 6.10.3 on Debian 4.0, when trying to
 configure happstack with "runhaskell Setup.hs configure".

 There's a thread here which sheds more light on the problem:

 http://www.mail-archive.com/cvs-ghc@haskell.org/msg13274.html

 I attempted to use the workaround described in that thread, symlinking
 /usr/lib/librt.so to /lib/tls/librt.so.1, but then ran into other
 problems, e.g. doing "cabal install time" gave the following error:
 {{{
 /usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/librt.so: undefined
 reference to `__pthread_unwind at GLIBC_PRIVATE
 }}}
 However, I didn't rebuild GHC after changing the symlink (don't currently
 have time to experiment like that), so that may have been part of the
 problem.  I've reverted to GHC 6.10.1, which doesn't have this problem.

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


More information about the Glasgow-haskell-bugs mailing list