Summary: | ghci 6.4.1 (-r1) has problems with symbols from libgcc_s (unknown) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Georg Sauthoff <g_sauthoff> |
Component: | Current packages | Assignee: | Gentoo's Haskell Language team <haskell> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Georg Sauthoff
2006-02-18 02:58:29 UTC
Hi Georg, I don't think ghci is expected to be able to load up arbitrary .o files produces by gcc. What you should do is to create a ghc or Cabal package which tells ghc which extra libraries need to be loaded. The reason it happens to work with ghc in batch mode is that ghc gets gcc to do the linking ang gcc knows about libgcc_s. GHC packages: http://www.haskell.org/ghc/docs/latest/html/users_guide/packages.html Cabal packages (which are basically the same thing but more convenient and more portable between Haskell compilers): http://www.haskell.org/ghc/docs/latest/html/Cabal/index.html You may also want to read a guide on the Haskell FFI and how to link to C code. |