media-libs/opencv-4.5.5 fails to compile opencv_java.cpp. In addition, if the "java" use flag is disabled, it fails on stitching_detailed.cpp instead. Reproducible: Always Steps to Reproduce: 1.emerge opencv (or do a world update, which is how I discovered this bug) Actual Results: * ERROR: media-libs/opencv-4.5.5::gentoo failed (compile phase) Expected Results: OpenCV emerges successfully
Please include the full build.log and emerge --info. Could you file a new separate bug for the failure with -java? Thanks.
Created attachment 763510 [details] OpenCV build log without Java use flag disabled
Created attachment 763511 [details] Emerge --info and emerge -pqv
(In reply to Sam James from comment #1) > Please include the full build.log and emerge --info. Was still getting to that. Now they are uploaded as planned. > Could you file a new separate bug for the failure with -java? Thanks. Yes, thank you.
Upon searching the logs further up, it appears that the actual cause of this issue is: /var/tmp/portage/media-libs/opencv-4.5.5/work/opencv-4.5.5/samples/cpp/tutorial_code/gapi/doc_snippets/kernel_api_snippets.cpp:2:10: fatal err or: opencv2/gapi.hpp: No such file or directory And that when emerging without the Java use flag, my error is identical to that of this issue: https://bugs.gentoo.org/show_bug.cgi?id=831113 Therefore, I think that these issues may be related or have the same underlying cause.
Although this ends with a different error message, the workaround of disabling the examples use flag from this issue: https://bugs.gentoo.org/830163. Is successful in allowing this package to be emerged. Therefore, I will edit the severity to minor.