Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955542 - media-libs/opencv-4.10.0 fails to build with clang
Summary: media-libs/opencv-4.10.0 fails to build with clang
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Paul Zander
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-06 21:09 UTC by JustCauseWhyNot
Modified: 2025-05-08 11:43 UTC (History)
1 user (show)

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


Attachments
build log (opencv-4.10.0:20250506-210006.log,10.23 KB, text/x-log)
2025-05-06 21:09 UTC, JustCauseWhyNot
Details
emerge -pqv '=media-libs/opencv::gentoo' (emerge_-p_media-libs_opencv-4.10.0,1.09 KB, text/plain)
2025-05-06 21:10 UTC, JustCauseWhyNot
Details
emerge --info '=media-libs/opencv-4.10.0::gentoo' (emerge_info_media-libs_opencv_4.10.0,33.32 KB, text/plain)
2025-05-06 21:10 UTC, JustCauseWhyNot
Details
bug-955542.log (bug-955542.log,6.79 KB, text/x-log)
2025-05-07 13:47 UTC, Paul Zander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description JustCauseWhyNot 2025-05-06 21:09:28 UTC
Created attachment 927954 [details]
build log

It seems to be this https://bugs.gentoo.org/945333 issue but when using clang. It also fails with gcc, but that's a different error.
Comment 1 JustCauseWhyNot 2025-05-06 21:10:08 UTC
Created attachment 927955 [details]
emerge -pqv '=media-libs/opencv::gentoo'
Comment 2 JustCauseWhyNot 2025-05-06 21:10:26 UTC
Created attachment 927956 [details]
emerge --info '=media-libs/opencv-4.10.0::gentoo'
Comment 3 Paul Zander 2025-05-07 12:59:38 UTC
Got broken by moving clang from sys-devel to llvm-core.
Set NVCC_CCBIN=clang++-20 to work around this for now.
Comment 4 Paul Zander 2025-05-07 13:47:46 UTC
Created attachment 927977 [details]
bug-955542.log

That being said. It doesn't compile with clang-19 or clang-20 (with -allow-unsupported-compiler) either. It might be more fallout from glibc-2.41. 

We don't really support clang for cuda all that much yet. Some underlying infrastructure is there. But it's pretty much expect breakage.
Comment 5 JustCauseWhyNot 2025-05-07 21:26:10 UTC
(In reply to Paul Zander from comment #4)
> We don't really support clang for cuda all that much yet. Some underlying
> infrastructure is there. But it's pretty much expect breakage.

Thanks for letting me know. I'll try to fix it failing to compile with gcc also then.
Comment 6 Paul Zander 2025-05-08 11:43:02 UTC
The long term goal is to allow that. So please keep testing and filing bugs. Or hit me up on irc (negril).