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
[Issue Report]: MinGW build fails on gcc 13 due to error in mingw-std-threads #6901
Comments
Adding
|
The instructions are for Debian and Fedora, not Arch. Since the CI is successfully building it looks like a system specific issue: https://github.com/diasurgical/devilutionX/actions/runs/7495821381/job/20406635578
Probably the version installed on your system is incompatible. Regarding the other issues, try GCC 10 since that is what is currently being used on the test build. I don't have a working install of Arch and find the install process to much of a hazel for me to maintain support for it, so I'm going to close this issue, but you are welcome to contribute an improvements to the guide and build scripts that can help it work better for Arch setups. |
If you need help, I would suggest the Discord chat or Discussion section. |
I'm OK with switching to other distributions so can we re-open this? I installed Debian 12.4.0 to test the instructions since you say it works on Debian, but unfortunately it doesn't. The compilation fails with the following error:
|
This suggests there is an issue with mingw threading library that needs to be fixed eventually since distros won't maintain gcc 10 forever. The build you linked to is Ubuntu 22.04.3 LTS, which uses gcc 10 according to you. Current Arch has gcc 13.1, current release of Debian (and presumably Ubuntu) has gcc 12 in their mingw packages. |
If someone can figure out what's going on with the MinGW threading library, that would be great. I believe this issue is related. Sadly, there's been no update since Aug 2021. But it looks like a handful of projects have come up with workarounds. |
Operating System
Linux x64
DevilutionX version
1.5.1
Describe
Following the compilation instructions from here. Several issues:
Packaging/windows/mingw-prep64.sh
doesn't handle zlib as claimed, manually installed the packagemingw-w64-zlib
from AUR (I'm on Arch Linux).cmake -S. -Bbuild -DCMAKE_TOOLCHAIN_FILE=../CMake/platforms/mingwcc64.toolchain.cmake -DCMAKE_BUILD_TYPE=Release -DDEVILUTIONX_SYSTEM_BZIP2=OFF
fails withTo Reproduce
Follow the build instructions from here
Expected Behavior
Successful build
Additional context
No response
The text was updated successfully, but these errors were encountered: