Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921971 - media-libs/opencv-4.8.1-r1 fails to build due to ABI issues
Summary: media-libs/opencv-4.8.1-r1 fails to build due to ABI issues
Status: RESOLVED DUPLICATE of bug 921761
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-12 22:54 UTC by Michael Cook
Modified: 2024-01-13 06:02 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Cook 2024-01-12 22:54:01 UTC
CMake Error at cmake/OpenCVDetectFlatbuffers.cmake:2 (find_package):
  By not providing "Findflatbuffers.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "flatbuffers", but CMake did not find one.

  Could not find a package configuration file provided by "flatbuffers" with
  any of the following names:

    flatbuffersConfig.cmake
    flatbuffers-config.cmake


dev-libs/flatbuffers has no support for ABI_X86, but media-libs/opencv does, so this fails.

Reproducible: Always
Comment 1 Greg Kubaryk 2024-01-12 23:43:54 UTC
Could you please attach build.log and comment with emerge --info? And is the actual bug in media-libs/opencv or dev-libs/flatbuffer, or perhaps we leave that to the maintainer to decide.

Or maybe related to bug 909081?
Comment 2 Justin W 2024-01-13 02:00:26 UTC
I had the same issue Michael did, which turned out to be that my ABI_X86 was '32 64', and flatbuffers doesn't seem to support a 32 bit build, so flatbuffers' search would return nada when doing the system search.

By doing ABI_X86=64 emerge opencv, I got past that.

But then cmake complained about not being able to download a bunch of files from raw.githubusercontent.com claiming, 'could not resolve host name', but by this time, I'd lost patience with it. :)
Comment 3 Michael Cook 2024-01-13 04:32:57 UTC
(In reply to Greg Kubaryk from comment #1)
> Could you please attach build.log and comment with emerge --info? And is the
> actual bug in media-libs/opencv or dev-libs/flatbuffer, or perhaps we leave
> that to the maintainer to decide.
> 
> Or maybe related to bug 909081?

This is happening when building with ABI_X86="32 64" and it was in the 32 pass. flatbuffers is only 64, so it fails. Either need to remove ABI support in opencv or add it in flatbuffers.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-13 05:27:39 UTC
In the absence of rquested info, surely a dupe.

*** This bug has been marked as a duplicate of bug 909081 ***
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-13 06:02:19 UTC
Sorry, rather bug 921971.

*** This bug has been marked as a duplicate of bug 921761 ***