If I build opencv enabling the openexr use flag, version 4.5.4 fails reporting a list of Ifm_3_1::* undefined references... starting with ' media-libs/opencv-4.5.4 fails to build due to undefined reference to Imf_3_1 class methods ' I have both openexr 2.x and 3.x installed, but it seems they cannot be found by my GOLD linker. In the attachments my build.log and the emerge --info output. Reproducible: Always Steps to Reproduce: 1. Enable openexr use flag 2. emerge media-libs/opencv 3. Actual Results: Build fails... Expected Results: Build successfully as previous versions...
Created attachment 760596 [details] build.log and the emerge --info output
Can you try not using gold first? It's rather dead for a start. This is possibly more likely to be trying to pull in both and then it barfs. We've seen a lot of that.
Looks like there's some upstream commits in the latest release which may help.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c264ee93aea110ec70f18fe825de90b8d4783118 commit c264ee93aea110ec70f18fe825de90b8d4783118 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-12-28 06:44:29 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-12-28 06:58:15 +0000 media-libs/opencv: add 4.5.5 Includes some upstream fixes re OpenEXR detection. Also forces OpenEXR 2, hopefully (OpenEXR_ROOT CMake parameter). Closes: https://bugs.gentoo.org/830124 Signed-off-by: Sam James <sam@gentoo.org> media-libs/opencv/Manifest | 2 + media-libs/opencv/opencv-4.5.5.ebuild | 580 ++++++++++++++++++++++++++++++++++ 2 files changed, 582 insertions(+)
I've forced OpenEXR 2 here but that may have been the wrong call, was continuing the status quo. We can try 3 here, maybe.
(In reply to Sam James from comment #2) > Can you try not using gold first? It's rather dead for a start. > > This is possibly more likely to be trying to pull in both and then it barfs. > We've seen a lot of that. Either GOLD or BFD linker result in the same error. Now I will try with 4.5.5 unstable release. Iade
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36ed0f3919ac0fbe012d2ad328919c41d26d83cf commit 36ed0f3919ac0fbe012d2ad328919c41d26d83cf Author: Sam James <sam@gentoo.org> AuthorDate: 2022-02-12 21:23:02 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-02-15 19:50:13 +0000 media-libs/opencv: support OpenEXR 3 / imath We drop multilib for OpenEXR bits for now. Not clear that anything actually needs this and we don't have multilib support in imath right now (nor did it succeed when I tried to add it there). Bug: https://bugs.gentoo.org/833158 Bug: https://bugs.gentoo.org/830124 Signed-off-by: Sam James <sam@gentoo.org> media-libs/opencv/opencv-4.5.5-r1.ebuild | 578 +++++++++++++++++++++++++++++++ 1 file changed, 578 insertions(+)