Skip to content

Fix rust 1.87 windows linker error#687

Merged
michaelsutton merged 3 commits intokaspanet:masterfrom
michaelsutton:rust-1.87-win-linker-err
May 20, 2025
Merged

Fix rust 1.87 windows linker error#687
michaelsutton merged 3 commits intokaspanet:masterfrom
michaelsutton:rust-1.87-win-linker-err

Conversation

@michaelsutton
Copy link
Contributor

@michaelsutton michaelsutton commented May 20, 2025

Handle a new linker error on widows which is a result of the std lib no longer linking advapi32 by default

see https://releases.rs/docs/1.87.0/#compatibility-notes "Windows: The standard library no longer links advapi32" -> rust-lang/rust#138233

mimalloc was updated here to explicitly link advapi32: https://github.com/purpleprotocol/mimalloc_rust/blob/eff21096d5ee5337ec89e2b7174f1bbb11026c70/libmimalloc-sys/build.rs#L74
but not on latest release (0.1.46), so I had to ref a specific commit following release 0.1.46. I checked all commits since the release and nothing is risky (all changes are actually in build.rs), so ic no problem in referencing this commit.

Added a TODO to remove this workaround asap

@michaelsutton michaelsutton merged commit eaadfa6 into kaspanet:master May 20, 2025
6 checks passed
@michaelsutton michaelsutton deleted the rust-1.87-win-linker-err branch May 20, 2025 22:36
LiveLaughLove13 pushed a commit to LiveLaughLove13/rusty-kaspa that referenced this pull request Feb 10, 2026
* apply mimalloc fix to the new missing windows link

* new line at eof

* extend timeout for a test that freq fails on windows (timeout of a non-important part of the test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants