Summary: | dev-lang/ghc-7.4.1-r1 fails to compile because of missing ffi.h | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | leonbaum2 |
Component: | Current packages | Assignee: | Gentoo's Haskell Language team <haskell> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://ghc.haskell.org/trac/ghc/ticket/8748 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info
build.log ghc-7.4.2 build.log |
Description
leonbaum2
2012-09-08 14:32:10 UTC
Created attachment 323212 [details]
emerge --info
Created attachment 323214 [details]
build.log
Created attachment 339146 [details]
ghc-7.4.2 build.log
I get a similar error on a fresh ~ppc64 install, this time it is:
/var/tmp/portage/dev-lang/ghc-7.4.2/temp/ghc29476_0/ghc29476_0.c:4:17:
fatal error: ffi.h: No such file or directory
compilation terminated.
make[1]: *** [libraries/ghc-prim/dist-install/build/GHC/Types.p_o] Error 1
Current workaroung is to use USE=ghcmakebinary. The trouble is our gentoo's libffi patch, which works only on registerised bings with native codegen. Sorry. I hope to get proper fix upstream around 7.8.1 as a part of https://ghc.haskell.org/trac/ghc/ticket/8748 We can even get ghci working on ppc64 (current state on ghc-7.8.1_rc1 in ::gentoo-haskell overlay). Fixed upstream. Will be fine for ghc-7.8+. Available in overlay as: dev-lang/ghc-7.8.2::gentoo-haskell |