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.
Created attachment 927584 [details] emerge --info
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?
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
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.
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!