Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914922 - media-libs/opencv-4.8.0-r1: FAILED: modules/objdetect/CMakeFiles/opencv_test_objdetect.dir/test/test_qrcode.cpp.o
Summary: media-libs/opencv-4.8.0-r1: FAILED: modules/objdetect/CMakeFiles/opencv_test_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Paul Zander
URL:
Whiteboard:
Keywords: PATCH
: 915696 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-09-29 19:36 UTC by Petr Šourek
Modified: 2024-01-30 07:27 UTC (History)
3 users (show)

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


Attachments
build.log (build.log.bz2,77.60 KB, application/x-bzip)
2023-09-29 19:36 UTC, Petr Šourek
Details
emerge info (emerge.info.log,12.79 KB, text/x-log)
2023-09-29 19:36 UTC, Petr Šourek
Details
environment (environment.bz2,46.09 KB, application/x-bzip)
2023-09-29 19:37 UTC, Petr Šourek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Šourek 2023-09-29 19:36:16 UTC
Created attachment 871775 [details]
build.log

Hello,

trying to update opencv, but no luck at all. I guess I am getting this error:
FAILED: modules/objdetect/CMakeFiles/opencv_test_objdetect.dir/test/test_qrcode.cpp.o 

Tried to change use flags, tried previous versions, but everytime it fails. Maybee wrong useflags even though tried to reduce them.

Using LTO, getting a lot of warnings like this, but I guess it is not failing on it.
lto-wrapper: warning: using serial compilation of 11 LTRANS jobs
lto-wrapper: note: see the ‘-flto’ option documentation for more information

$GENTOO_VM=<not set/empty>
$CLASSPATH=<not set/empty>
$JAVA_HOME=/home/djmanas/.gentoo/java-config-2/current-user-vm
$JAVACFLAGS=<not set/empty>
$COMPILER=<not set/empty>
Comment 1 Petr Šourek 2023-09-29 19:36:58 UTC
Created attachment 871776 [details]
emerge info

Thanks,

Regards, Petr Sourek
Comment 2 Petr Šourek 2023-09-29 19:37:18 UTC
Created attachment 871777 [details]
environment
Comment 3 Petr Šourek 2023-10-01 08:53:44 UTC
USE="-testprograms" emerge -av opencv

Solved for me for now.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-01 09:00:49 UTC
FAILED: modules/objdetect/CMakeFiles/opencv_test_objdetect.dir/test/test_qrcode.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__OPENCV_TESTS=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0/modules/ts/include -I/var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0/modules/objdetect/include -I/var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0/modules/imgcodecs/include -I/var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0/modules/videoio/include -I/var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0/modules/core/include -I/var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0/modules/flann/include -I/var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0/modules/imgproc/include -I/var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0/modules/dnn/include -I/var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0/modules/features2d/include -I/var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0/modules/calib3d/include -I/var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0/modules/highgui/include -isystem /var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0_build-abi_x86_64.amd64 -isystem /usr/include/gdal -isystem /usr/include/eigen3  -O2 -pipe -march=broadwell -mtune=broadwell -fomit-frame-pointer   -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -flto  -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mf16c -mfma -mavx -mavx2 -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -std=c++14 -fPIE -MD -MT modules/objdetect/CMakeFiles/opencv_test_objdetect.dir/test/test_qrcode.cpp.o -MF modules/objdetect/CMakeFiles/opencv_test_objdetect.dir/test/test_qrcode.cpp.o.d -o modules/objdetect/CMakeFiles/opencv_test_objdetect.dir/test/test_qrcode.cpp.o -c /var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0/modules/objdetect/test/test_qrcode.cpp
In file included from /var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0/modules/objdetect/test/test_qrcode.cpp:6:
/var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0/modules/objdetect/test/test_qr_utils.hpp: In function ‘void opencv_test::check_qr(const std::string&, const std::string&, const std::string&, const std::vector<cv::Point_<int> >&, const std::vector<std::__cxx11::basic_string<char> >&, int, bool)’:
/var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0/modules/objdetect/test/test_qr_utils.hpp:11:44: warning: unused parameter ‘decoded_info’ [-Wunused-parameter]
   11 |                 const std::vector<string>& decoded_info, const int max_pixel_error,
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0/modules/objdetect/test/test_qrcode.cpp: In member function ‘virtual void opencv_test::{anonymous}::Objdetect_QRCode_Multi_regression_Test::Body()’:
/var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0/modules/objdetect/test/test_qrcode.cpp:389:68: error: ‘decoded_info’ was not declared in this scope
  389 |     check_qr(root, name_current_image, "multiple_images", corners, decoded_info, pixels_error, true);
      |                                                                    ^~~~~~~~~~~~
/var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0/modules/objdetect/test/test_qrcode.cpp: In member function ‘virtual void opencv_test::{anonymous}::Objdetect_QRCode_detect_flipped_regression_23249_Test::Body()’:
/var/tmp/portage/media-libs/opencv-4.8.0-r1/work/opencv-4.8.0/modules/objdetect/test/test_qrcode.cpp:541:28: warning: unused variable ‘expect_msg’ [-Wunused-variable]
  541 |         const std::string &expect_msg = flipped_image.second;
      |                            ^~~~~~~~~~
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-01 09:42:31 UTC
Could you try this patch?

https://github.com/opencv/opencv/commit/e9414169a3824d075ad4939c11a97402ffc5cef1.patch

put it in /etc/portage/patches/media-libs/opencv/bug914922.patch
Comment 6 Petr Šourek 2023-10-02 07:09:23 UTC
(In reply to Sam James from comment #5)
> Could you try this patch?
> 
> https://github.com/opencv/opencv/commit/
> e9414169a3824d075ad4939c11a97402ffc5cef1.patch
> 
> put it in /etc/portage/patches/media-libs/opencv/bug914922.patch

It worked. Should learn how to find theese...

Thanks,
Regards,
Petr Sourek
Comment 7 Larry the Git Cow gentoo-dev 2024-01-10 12:33:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e9205edb9922309ecd568b7085fd59726c7d2ca

commit 0e9205edb9922309ecd568b7085fd59726c7d2ca
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2023-12-08 14:58:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-10 12:32:37 +0000

    media-libs/opencv: add 4.8.1-r1
    
    Closes: https://bugs.gentoo.org/702258
    Closes: https://bugs.gentoo.org/830294
    Closes: https://bugs.gentoo.org/883375
    Closes: https://bugs.gentoo.org/913740
    Closes: https://bugs.gentoo.org/914922
    Closes: https://bugs.gentoo.org/917121
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/opencv/Manifest                         |   7 +
 .../files/opencv-4.8.1-ade-0.1.2a.tar.gz.patch     |  18 +
 .../opencv-4.8.1-drop-python2-detection.patch      |  23 +
 ...ncv-4.8.1-eliminate-lto-compiler-warnings.patch |  36 ++
 .../opencv/files/opencv-4.8.1-libpng16.patch       |  58 ++
 .../opencv/files/opencv-4.8.1-opencv_test.patch    |  18 +
 .../files/opencv-4.8.1-python3_12-support.patch    |  25 +
 .../opencv-4.8.1-use-system-flatbuffers.patch      |  36 ++
 .../files/opencv-4.8.1-use-system-opencl.patch     |  25 +
 ...rib-4.8.1-NVIDIAOpticalFlowSDK-2.0.tar.gz.patch |  20 +
 .../opencv/files/opencv_contrib-4.8.1-rgbd.patch   |  15 +
 media-libs/opencv/metadata.xml                     |  34 +-
 media-libs/opencv/opencv-4.8.1-r1.ebuild           | 644 +++++++++++++++++++++
 13 files changed, 945 insertions(+), 14 deletions(-)
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-30 07:27:23 UTC
*** Bug 915696 has been marked as a duplicate of this bug. ***