Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 955403

Summary: media-video/obs-studio-31.0.3 fails to compile: multitrack-video.hpp:31:39: error: ‘adl_serializer’ is not a class template
Product: Gentoo Linux Reporter: Igor Kotrasiński <i.kotrasinsk>
Component: Current packagesAssignee: Chiitoo <chiitoo>
Status: RESOLVED INVALID    
Severity: normal CC: chiitoo, i.kotrasinsk
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info

Description Igor Kotrasiński 2025-05-04 10:03:36 UTC
Created attachment 927583 [details]
build.log

When I try to build obs-studio 31.0.3, I get a bunch of compilation errors. They all seem to be related to nlohmann_json. I tried building with both nlohmann_json 3.11.3 and 3.12.0-r1, they both give me the same error.
Comment 1 Igor Kotrasiński 2025-05-04 10:04:02 UTC
Created attachment 927584 [details]
emerge --info
Comment 2 Chiitoo gentoo-dev 2025-05-05 18:10:26 UTC
So far I've got no luck with re-producing this.

There is no version of 'nlohmann_json' installed outside Portage laying around by chance, or something like that is there?
Comment 3 Igor Kotrasiński 2025-05-05 20:59:47 UTC
None that I know of. Here's the result of `find / | grep nlohmann_json$`:

/usr/portage/dev-cpp/nlohmann_json
/usr/share/cmake/nlohmann_json
/usr/portage.old/dev-cpp/nlohmann_json
/usr/portage.old/.tmp-unverified-download-quarantine/dev-cpp/nlohmann_json
Comment 4 Igor Kotrasiński 2025-05-05 21:09:26 UTC
Actually, nevermind, when I call the same gcc command with -H, I get this:

. /usr/local/include/nlohmann/json.hpp

And `equery belongs` says it doesn't belong to any package. I have no idea what it's doing there. I removed it and obs builds fine.
Comment 5 Chiitoo gentoo-dev 2025-05-05 21:44:47 UTC
Excellent!

Was starting to get very mysterious.

I should have mentioned '/usr/local/' specifically as it does indeed sometime hide issues like this, but I wasn't entirely sure that it would be it this time.

Thank you for the reprt in any case!