-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error Building with gcc 13.1.0 #1100
Comments
Looks to be an issue with a third party library, libchdr; consider reporting upstream? |
I checked out the master made a build dir and ran: Everything came out clean. Also ran it using the bundled zlib, same results. |
Try ensure not having something like -Werror flag set during building. On my system it just raises warnings instead of errors, and it builds successfully. |
No flags are set, ran commands manually.
|
Suppose its worth mentioning, I cd thirdparty/libchdr |
The ares makefile defaults to Clang if it is present. That error message is not from GCC; it's from Clang. In other words, just as Luke said, this is an issue with libchdr. If you want to force ares to compile with GCC, you can add compiler=g++ to the invocation of make. |
Adding -DCMAKE_C_COMPILER=clang didn’t produce any errors still and built libchdr clean. Going back to building ares like normal, but with compiler=g++ however allows it to build libchdr fine. However I now get a new error: Compiling nall/nall.cpp ... |
That last one looks like a genuine compilation issue with GCC 13. Easy enough to fix: #1102 |
I just tried this myself, and it turns out you need a few more flags. ares builds C files with In my view this would still be most appropriate to address upstream, though this may explain why it wasn't already caught and fixed. |
I wanted to report it upstream. But I didn't want to until I could get the error in just their source. Else it's a works for me I worried. I'll mention this in a report later. Thanks! |
Bug reported upstream: rtissera/libchdr#92 |
Fixed in ares as of #1106 |
This is being built with:
make -j5 hiro=gtk3 build=release
Build log
20230501-132-1682953287.log
The text was updated successfully, but these errors were encountered: