-
Notifications
You must be signed in to change notification settings - Fork 183
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
Doesn't build on Windows MSYS2 MinGW/Clang #189
Comments
Hi, I guess I need more information than that, like versions used, maybe CMake output. I just tried myself with a MinGW-w64 install with GCC14.2.0 and had two issues:
When I erased the build directory content and tried it again, but enabling big-obj and disabling the tests against std::filesystem by using (not using Ninja on that system, so make it is):
I got for CMake:
and for make:
And the examples simply work and the tests succeed. |
I've added the results for running |
Nevermind, it seems it's still a problem from MSYS2 CLANG64.
Along with what seems to be the same errors as earlier, as if the tests haven't been disabled. |
Well, that is quite a difference, you reported it doesn't build with MinGW (which is a GCC), but you actually want to build with MSYS2-CLANG? So my test was actually a waste of time, please next time try to report the compiler you are actually using. :-( Sadly I can't do any tests today, as I'm not at home, so it might need a few days for the next try. |
Oh, btw, the CMake output you added above is showing a MinGW GCC being selected, and the CMake part in the dump from the last message a Clang, so you mix them? You can't try to build MinGW and Clang in the same folder without deleting the build results, that will for sure be a mess, so please, which of the CMake outputs shows what you actually try to do? I can say that I never tried building it on MSYS2-Clang, so I would expect issues to happen, on Windows it's tested only on Visual Studios cl.exe and MinGW's GCC yet, so supporting MSYS2 Clang might be more work, as each of the Windows compiler variants needs quite some fiddling to work, far more work than adding any additional "unixoid" platform was. |
I am trying to build in UCRT64 and CLANG64, both of which previously produced errors. Your steps helped fix it for UCRT64 (based on GCC), but it remains broken for CLANG64 (based on LLVM).
Apologies, I am trying to build with both GCC (Cygwin/MSYS/UCRT64) and Clang (CLANG64). Your steps fixed it for GCC, but it is still broken for Clang.
I do clean out the build folder when switching environments/compilers. Actually, when testing any changes, I clean out the build folder.
In between all these 4 runs, I clean out the build directory.
Ah, that's unfortunate. Thankfully, my primary interest is MSYS2-UCRT64, based on GCC, for which your steps have fixed. Though it would be nice if Clang was supported. |
I agree, it would be nice to support both. So while I can't say what's going on with clang yet, I still look in into that. I just need to setup some msys2 for that, not using that myself anywhere yet, so supporting that takes a little more work. |
Describe the bug
This project doesn't build on Windows/MinGW
To Reproduce
Build as normal:
git clone
mkdir build && cd build
cmake ..
/cmake -G 'MinGW Makefiles' ..
ninja
/make -j$(nproc)
In between all these 4 runs, I clean out the build directory.
Expected behavior
Build on Windows/MinGW, as it does on Linux and Windows/Cygwin
Additional context
Tested using MSYS2 UCRT64, CLANG64, and MSYS environments, using their respective
mingw-*
and Cygwin GCC/Clang, CMake, Make, and Ninja packagesThe text was updated successfully, but these errors were encountered: