Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434338 - dev-lang/ghc-7.4.1-r1 fails to compile because of missing ffi.h
Summary: dev-lang/ghc-7.4.1-r1 fails to compile because of missing ffi.h
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL: https://ghc.haskell.org/trac/ghc/tick...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-08 14:32 UTC by leonbaum2
Modified: 2014-06-27 10:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_info.txt,3.99 KB, text/plain)
2012-09-08 14:32 UTC, leonbaum2
Details
build.log (build.log.gz,53.13 KB, application/x-gzip)
2012-09-08 14:37 UTC, leonbaum2
Details
ghc-7.4.2 build.log (build.log.lzma,42.11 KB, text/plain)
2013-02-17 15:41 UTC, Emery Hemingway
Details

Note You need to log in before you can comment on or make changes to this bug.
Description leonbaum2 2012-09-08 14:32:10 UTC
On a fresh gentoo install, ghc is failing to compile because it can't find ffi.h.

# file /usr/lib64/libffi-3.0.11/include/ffi.h
/usr/lib64/libffi-3.0.11/include/ffi.h: ASCII English text

I've attached emerge --info ghc and the build.log.



Reproducible: Always
Comment 1 leonbaum2 2012-09-08 14:32:53 UTC
Created attachment 323212 [details]
emerge --info
Comment 2 leonbaum2 2012-09-08 14:37:36 UTC
Created attachment 323214 [details]
build.log
Comment 3 Emery Hemingway 2013-02-17 15:41:55 UTC
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
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2013-02-17 15:54:09 UTC
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.
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2014-02-15 10:48:24 UTC
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).
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2014-06-27 10:04:58 UTC
Fixed upstream. Will be fine for ghc-7.8+.

Available in overlay as:
dev-lang/ghc-7.8.2::gentoo-haskell