-
Notifications
You must be signed in to change notification settings - Fork 77
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
MSVC CI doesn't compile with Rust 1.78.0 #958
Comments
This works around our CI issues on Windows, as they seem to have appeared with the 1.78 update See: KDAB#958
This works around our CI issues on Windows, as they seem to have appeared with the 1.78 update See: #958
Previously, we linked the entire staticlib generated by the Rust compiler into our CMake target. This was part of what caused the recent issues in CI (see KDAB#958). Cargo already only linked the plugin&resources library as whole-archive, which is where where it is needed. Now we simply export the initializers library into the CXXQT_EXPORT_DIR, so we can only link the initializers with whole-archive. This is a lot cleaner and should lead to fewer linker failures. Closes KDAB#958
Just want to mention that I also ran into this issue with rust 1.78 (now 1.79) + msvc. My understanding is that after #964 goes live, the main changes to be made are:
Did I miss anything? I guess in the meantime I can make do with using the mingw gnu toolchain, but would be nice to have msvc builds unblocked |
Hi, we're very actively working to solve this issue at the moment. We basically have 3 ways we tried solve this currently:
Currently it looks like #978 is the way to go. We will need to find the best way to fetch our custom CMake code, but then we are also able to simplify the CMake code we require from our uses. Basically you replace We hope to land this initial fix within the coming days. |
#978 looks promising. Having all the cmake heavylifting configuration managed by will be a significant improvement on the build config. I'll experiment with the changes over the weekends if it's stable enough for testing. |
This should be solved as of #978 |
With Rust 1.78.0, we seem to run into an issue with duplicate symbol definitions of
__NULL_IMPORT_DESCRIPTOR
.See:
https://github.com/KDAB/cxx-qt/actions/runs/9167401332/job/25204499375
This can be worked around by reverting to 1.77 for our CI (see #957 ), but we still need to fix this so that we remain compatible with upstream Rust.
The text was updated successfully, but these errors were encountered: