There's two instances of "error: use of undeclared identifier" when building; one in "Utilities/Thread.cpp:3135:17" and another in "Utilities/JITASM.cpp:23:52" that prevent the package from emerging. Reproducible: Always Steps to Reproduce: 1. emerge rpcs3 Actual Results: Emerge fails. Expected Results: Successful emerge.
Created attachment 882447 [details] Compressed Build Log
Created attachment 882448 [details] Environment file
I thought some headers were missing, but I cannot reproduce this failure. Not sure if this is related, but your build log has "/usr/lib/llvm/17/bin/clang++ ... -I/usr/lib/llvm/16/include ..." . Are you sure your environment is properly updated?
I didn't even realize I have both 16 and 17 installed. Invoking "clang --version" reports 16.0.6, so I'm not sure how that didn't change. I'm somewhat new to Gentoo, so is there something I missed?
`env-update` and re-login just to be sure. Does this "/usr/lib/llvm/17/bin/clang++ ... -I/usr/lib/llvm/16/include ..." thing happen with the other ebuilds too? If it only happens with this ebuild, use gcc for now.
I haven't seen this with any other ebuilds that have failed for any reason recently, so I'm not sure what the exact reasoning is. I ran `env-update` and rebooted but this still happens with building rpcs3. If I'm supposed to be updating from LLVM 16 to LLVM 17 though, isn't there something I should do?
Created attachment 882586 [details, diff] add-missing-headers.patch Can you check if this patch fixes your problem (put it in /etc/portage/patches/games-emulation/rpcs3/). As for the LLVM update, not much help I can give you. Ask someone on IRC.
Created attachment 882660 [details] Compressed Build Log (Patched) No, the build still fails with the patch too; the LLVM 16 include is still there but the errors a bit different
Created attachment 882717 [details, diff] add-missing-headers-v2.patch v2 patch, please replace the previous one. There may be other headers missing but if you are free, give it a try.
The LLVM 16 includes are still there but, yeah, this new patch produces a build. I get a weird crash error after I changed RPCS3's emulated filesystem directory location to one I already have on another drive though: ``` No AppImage path found, checking for executable Found exec path: /usr/bin/rpcs3 Debugger: 0 /usr/include/c++/v1/string:1320: assertion !empty() failed: string::back(): string is empty fish: Job 1, 'rpcs3' terminated by signal SIGABRT (Abort) ``` I take it this is some kind of issue with libc++?
I sent the patch upstream and hopefully it will be merged. https://github.com/RPCS3/rpcs3/pull/15075 > I take it this is some kind of issue with libc++? All right, I missed the fact you use libc++. So I guess your LLVM 16/17 situation is irrelevant, but libc++ is. Anyway, you should report the runtime error upstream. Probably it needs a proper debugging.