Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955403 - media-video/obs-studio-31.0.3 fails to compile: multitrack-video.hpp:31:39: error: ‘adl_serializer’ is not a class template
Summary: media-video/obs-studio-31.0.3 fails to compile: multitrack-video.hpp:31:39: e...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Chiitoo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-04 10:03 UTC by Igor Kotrasiński
Modified: 2025-05-05 21:44 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,571.28 KB, text/plain)
2025-05-04 10:03 UTC, Igor Kotrasiński
Details
emerge --info (emerge_info.txt,7.60 KB, text/plain)
2025-05-04 10:04 UTC, Igor Kotrasiński
Details

Note You need to log in before you can comment on or make changes to this bug.
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!