HSghc-prim- unknown symbol 'memcpy'

Roman Cheplyaka roma at ro-che.info
Sat Apr 19 17:50:11 UTC 2014

* M Farkas-Dyck <strake888 at gmail.com> [2014-04-19 12:18:31-0500]
> I just built stock ghc 7.8.1 against musl on Linux x86_64. I get this:
> $ ghci
> GHCi, version 7.8.1: http://www.haskell.org/ghc/  :? for help
> Loading package ghc-prim ... linking ... ghc:
> /lib/ghc-7.8.1/ghc-prim- unknown symbol
> `memcpy'
> ghc: unable to load package `ghc-prim'
> $
> memcpy is defined in /lib/libc.a; how can I link it in? I tried -lc
> and -opt-lc options to ghci, in vain.

Don't know if it helps, but I think ghci loads the dynamic library, not
the static one.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20140419/82b39f85/attachment.sig>

More information about the Glasgow-haskell-users mailing list