Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830124 - media-libs/opencv-4.5.4 fails to build due to undefined reference to Imf_3_1 class methods
Summary: media-libs/opencv-4.5.4 fails to build due to undefined reference to Imf_3_1 ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amy Liffey
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 820674
  Show dependency tree
 
Reported: 2021-12-27 20:59 UTC by Iade Gesso
Modified: 2022-02-15 19:51 UTC (History)
3 users (show)

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


Attachments
build.log and the emerge --info output (build_info.tar.xz,69.91 KB, application/x-xz)
2021-12-27 20:59 UTC, Iade Gesso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Iade Gesso 2021-12-27 20:59:23 UTC
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...
Comment 1 Iade Gesso 2021-12-27 20:59:59 UTC
Created attachment 760596 [details]
build.log and the emerge --info output
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-28 06:17:36 UTC
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.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-28 06:19:00 UTC
Looks like there's some upstream commits in the latest release which may help.
Comment 4 Larry the Git Cow gentoo-dev 2021-12-28 06:58:30 UTC
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(+)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-28 06:59:10 UTC
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.
Comment 6 Iade Gesso 2021-12-28 12:50:35 UTC
(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
Comment 7 Larry the Git Cow gentoo-dev 2022-02-15 19:51:17 UTC
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(+)