You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] unigetgui suggest install cargo-update but get error #3898
Hello @ted423, it looks like your Rust installation is missing required components. Is Rustlang.Rust.GNU a reduced version of rust?
I install Rustlang.Rust.GNU in winget
Is Rustlang.Rust.GNU a reduced version of rust?
rustlang.rust.gnu is not a reduced or "lite" version of Rust. It is a full-featured Rust compiler and toolchain.
The .gnu suffix in the name refers to the C standard library it links against and the toolchain it uses.
.gnu: This suffix indicates that this version of the Rust toolchain is configured to use the GNU toolchain and that the programs it compiles will link against glibc by default.
by gemini
I'm new to rust, I thought rustlang.rust.gnu need use with mingw or something
I understand. I was thinking it would be better if the software could perform a simple check and provide a reminder, or perhaps prompt the user to help install MinGW? This is from a user interaction perspective. Because for a user, the program directly suggests installing cargo-update. So when that command fails with an error, the user gets confused and might suspect that the software itself has a bug. Based on my current situation, it seems I should be using the rust.msvc toolchain.(but It seems to be prompting me to install it. I'm not sure if I need to manually add it to my PATH to make the prompt/reminder go away.)
Did installing mingw work for you, I opened uniget it had an update, after it updated it wanted me to do cargo install cargo-update
and Set-ExecutionPolicy Unrestricted -Scope Process; iex (iwr "https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.ps1").Content
but the first one failed and uniget restarted and again it suggested me to do cargo install cargo-update!
Did installing mingw work for you, I opened uniget it had an update, after it updated it wanted me to do cargo install cargo-update and Set-ExecutionPolicy Unrestricted -Scope Process; iex (iwr "https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.ps1").Content but the first one failed and uniget restarted and again it suggested me to do cargo install cargo-update!
I actually don't know how to build the project in question yet. There's no documentation, but it looks like a Windows/MSVC build. (The action runs on Ubuntu, but apparently only for dependency checks, and I know others have built it on Windows. I've just been too busy lately). Therefore, this issue is purely about fixing the behavior of unigetui.
MinGW and MSVC are completely different toolchains. I don't have MinGW installed, and I need to compile this to run on Windows.
same series of error,
cargo version 1.88.0 (873a06493 2025-05-10), UniGetUI 3.3.3,
Compiling smallvec v1.15.1
error: linker `link.exe` not found
|
= note: program not found
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that Visual Studio 2017 or later, or Build Tools for Visual Studio were installed with the Visual C++ option.
note: VS Code is a different product, and is not sufficient.
Compiling windows-sys v0.61.0
Compiling windows-result v0.3.4
error: could not compile `windows_x86_64_msvc` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `icu_properties_data` (build script) due to 1 previous error
error: could not compile `windows_x86_64_msvc` (build script) due to 1 previous error
error: could not compile `icu_normalizer_data` (build script) due to 1 previous error
error: could not compile `windows_x86_64_msvc` (build script) due to 1 previous error
error: could not compile `serde` (build script) due to 1 previous error
error: could not compile `semver` (build script) due to 1 previous error
error: could not compile `proc-macro2` (build script) due to 1 previous error
error: could not compile `getrandom` (build script) due to 1 previous error
error: could not compile `libc` (build script) due to 1 previous error
error: failed to compile `cargo-update v18.0.0`, intermediate artifacts can be found at `C:\Users\leetz\AppData\Local\Temp\cargo-installcSWgTV`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
same series of error, cargo version 1.88.0 (873a06493 2025-05-10), UniGetUI 3.3.3,
Compiling smallvec v1.15.1
error: linker `link.exe` not found
|
= note: program not found
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that Visual Studio 2017 or later, or Build Tools for Visual Studio were installed with the Visual C++ option.
note: VS Code is a different product, and is not sufficient.
Compiling windows-sys v0.61.0
Compiling windows-result v0.3.4
error: could not compile `windows_x86_64_msvc` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `icu_properties_data` (build script) due to 1 previous error
error: could not compile `windows_x86_64_msvc` (build script) due to 1 previous error
error: could not compile `icu_normalizer_data` (build script) due to 1 previous error
error: could not compile `windows_x86_64_msvc` (build script) due to 1 previous error
error: could not compile `serde` (build script) due to 1 previous error
error: could not compile `semver` (build script) due to 1 previous error
error: could not compile `proc-macro2` (build script) due to 1 previous error
error: could not compile `getrandom` (build script) due to 1 previous error
error: could not compile `libc` (build script) due to 1 previous error
error: failed to compile `cargo-update v18.0.0`, intermediate artifacts can be found at `C:\Users\leetz\AppData\Local\Temp\cargo-installcSWgTV`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
there is Rustlang.Rust.GNU and Rustlang.Rust.MSVC, which you install. msys is a UNIX env working with mingw-w64
Which I do have installed as well.
I'm not sure about that; it depends on how you are using it. Judging from the error message, it looks like you have the GNU version installed and are using the GCC from MSYS to compile. However, I'm not certain if it's a version issue or something similar.
there is Rustlang.Rust.GNU and Rustlang.Rust.MSVC, which you install. msys is a UNIX env working with mingw-w64
Which I do have installed as well.
I suffered with this issue for a good while myself. I hope It is not unwelcomed here for me to link to a GIST I created with a work around, that fixed this error for me on multiple systems. If anyone is still experiencing this issue, here is a step by step way I have been able to fix this:
> cargo install rust-update
Updating crates.io index
Installing rust-update v0.1.0
Updating crates.io index
Compiling rust-update v0.1.0
error: linker `x86_64-w64-mingw32-clang` not found
|
= note: program not found
Environment variables pointing to compilers and linkers seem ignored. I could install and build, even with UniGetUI, setting:
Activity
marticliment commentedon Jul 21, 2025
Hello ted423 (@ted423), it looks like your Rust installation is missing required components. Is
Rustlang.Rust.GNUa reduced version of rust?ted423 commentedon Jul 22, 2025
I install Rustlang.Rust.GNU in winget
I'm new to rust, I thought rustlang.rust.gnu need use with mingw or something
marticliment commentedon Jul 22, 2025
It appears that you need to install MinGW components:
https://users.rust-lang.org/t/error-error-calling-dlltool-dlltool-exe-program-not-found/124236
ted423 commentedon Jul 23, 2025
I understand. I was thinking it would be better if the software could perform a simple check and provide a reminder, or perhaps prompt the user to help install MinGW? This is from a user interaction perspective. Because for a user, the program directly suggests installing cargo-update. So when that command fails with an error, the user gets confused and might suspect that the software itself has a bug. Based on my current situation, it seems I should be using the rust.msvc toolchain.(but It seems to be prompting me to install it. I'm not sure if I need to manually add it to my PATH to make the prompt/reminder go away.)
marticliment commentedon Jul 23, 2025
I will fix this
0-BlackSpectrum-0 commentedon Aug 26, 2025
Did installing mingw work for you, I opened uniget it had an update, after it updated it wanted me to do
cargo install cargo-updateand
Set-ExecutionPolicy Unrestricted -Scope Process; iex (iwr "https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.ps1").Contentbut the first one failed and uniget restarted and again it suggested me to do
cargo install cargo-update!ted423 commentedon Aug 26, 2025
I actually don't know how to build the project in question yet. There's no documentation, but it looks like a Windows/MSVC build. (The action runs on Ubuntu, but apparently only for dependency checks, and I know others have built it on Windows. I've just been too busy lately). Therefore, this issue is purely about fixing the behavior of unigetui.
MinGW and MSVC are completely different toolchains. I don't have MinGW installed, and I need to compile this to run on Windows.
LarnuUK commentedon Sep 7, 2025
I've started seeing this error as well after an update to UniGet; constantly get stuck in a restart loop:
Running "cargo install cargo-update` in PoSh 7 results in the following error being spammed (as in, pressing Ok generates the same error:

After hitting return maybe... 50+ times, PoSh generated a large number of errors:
monkey1wizard commentedon Sep 11, 2025
same series of error,
cargo version 1.88.0 (873a06493 2025-05-10), UniGetUI 3.3.3,
ted423 commentedon Sep 11, 2025
this mean you need install a visual studio
LarnuUK commentedon Sep 11, 2025
I have Visual Studio installed, so that isn't the issue on its own.
ted423 commentedon Sep 11, 2025
there is Rustlang.Rust.GNU and Rustlang.Rust.MSVC, which you install. msys is a UNIX env working with mingw-w64
LarnuUK commentedon Sep 11, 2025
Which I do have installed as well.
ted423 commentedon Sep 11, 2025
I'm not sure about that; it depends on how you are using it. Judging from the error message, it looks like you have the GNU version installed and are using the GCC from MSYS to compile. However, I'm not certain if it's a version issue or something similar.
AlexanderHerlan commentedon Jan 30, 2026
I suffered with this issue for a good while myself. I hope It is not unwelcomed here for me to link to a GIST I created with a work around, that fixed this error for me on multiple systems. If anyone is still experiencing this issue, here is a step by step way I have been able to fix this:
https://gist.github.com/AlexanderHerlan/134dfda74f3496d89ae046aa5e40a1de
If nothing else, hopefully this can help point someone in the right direction for a more perminatent fix.
tps800 commentedon Sep 7, 2026
Seems it just does not find a suitable linker:
Environment variables pointing to compilers and linkers seem ignored. I could install and build, even with UniGetUI, setting:
then starting UniGetUI and upgrading rust.