Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 695738 - dev-lang/ghc-8.6.5 with dev-libs/libffi-3.3 fails to find libffi because it searches for dev-libs/libffi-3.2.1
Summary: dev-lang/ghc-8.6.5 with dev-libs/libffi-3.3 fails to find libffi because it s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-27 15:43 UTC by sp.gentoo
Modified: 2019-09-28 17:14 UTC (History)
0 users

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


Attachments
build.log (build.log,171.61 KB, text/x-log)
2019-09-28 13:41 UTC, Sergei Trofimovich (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sp.gentoo 2019-09-27 15:43:52 UTC
Hi,

dev-libs/libffi-3.3_rc0 was just stabilized. 

Everything updated well except ghc-8.6.5 which still look for libffi-3.2.1 even if there is not an hard dep on this version.
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2019-09-27 19:10:31 UTC
Was ghc rebuilt after libffi upgrade? To check you can run:
$ qlop -muv ghc libffi
Comment 2 sp.gentoo 2019-09-28 06:51:21 UTC
(In reply to Sergei Trofimovich from comment #1)
> Was ghc rebuilt after libffi upgrade? To check you can run:
> $ qlop -muv ghc libffi

It was the rebuilding after libffi upgrade which failed.
For now my bad and quick solution was:
`ln -s /usr/lib64/libffi-3.2.1 /usr/lib64/libffi-3.3_rc0`
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2019-09-28 10:56:29 UTC
(In reply to sp.gentoo from comment #2)
> (In reply to Sergei Trofimovich from comment #1)
> > Was ghc rebuilt after libffi upgrade? To check you can run:
> > $ qlop -muv ghc libffi
> 
> It was the rebuilding after libffi upgrade which failed.
> For now my bad and quick solution was:
> `ln -s /usr/lib64/libffi-3.2.1 /usr/lib64/libffi-3.3_rc0`

Sounds like a ghc bug. Do you have a failed build log?
Comment 4 sp.gentoo 2019-09-28 13:18:54 UTC
> Sounds like a ghc bug. Do you have a failed build log?

Here it is: https://pastebin.com/BidF617L

We can see it searches ffi.h in libffi-3.2.1 instead of libffi-3.3_rc0 which causes "ffi.h: No such file or directory"
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2019-09-28 13:39:55 UTC
The problem here is that you use USE=ghcbootstrap. That uses broken installed ghc version to boot ghc instead of working binary version of ghc.

USE=ghcmakebinary was supposed to build a binary that does not depends on libffi. But that should be a separate issue.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2019-09-28 13:41:19 UTC
Created attachment 591208 [details]
build.log

Attaching your build.log to ensure it is still available longer term.
Comment 7 sp.gentoo 2019-09-28 15:40:31 UTC
> The problem here is that you use USE=ghcbootstrap. That uses broken
> installed ghc version to boot ghc instead of working binary version of ghc.

I did not put enough attention to my USE flags, thanks.
I'll try this and will report the results.
Comment 8 sp.gentoo 2019-09-28 17:14:35 UTC
Thanks, that was it.
It is solved