xargo
xargo copied to clipboard
cargo install xargo fails on windows
Just tried to install xargo but got the following issue.
$ cargo install xargo
Updating registry `https://github.com/rust-lang/crates.io-index`
Installing xargo v0.3.8
Compiling xargo v0.3.8
Compiling cfg-if v0.1.2
Compiling serde v0.8.23
Compiling libc v0.2.30
Compiling winapi-build v0.1.1
Compiling num-traits v0.1.40
Compiling itoa v0.1.1
Compiling semver v0.1.20
Compiling dtoa v0.2.2
Compiling rustc-serialize v0.3.24
Compiling winapi v0.2.8
error: linking with `link.exe` failed: exit code: 1
|
= note: "link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\\Users\\Tobias\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\Tobias\\AppData\\Local\\Temp\\cargo-install.u5VhgnD4Cy52\\release\\build\\xargo-c767b6064b50d80d\\build_script_build-c767b6064b50d80d.0.o" "/OUT:C:\\Users\\Tobias\\AppData\\Local\\Temp\\cargo-install.u5VhgnD4Cy52\\release\\build\\xargo-c767b6064b50d80d\\build_script_build-c767b6064b50d80d.exe" "/OPT:REF,ICF" "/DEBUG" "/LIBPATH:C:\\Users\\Tobias\\AppData\\Local\\Temp\\cargo-install.u5VhgnD4Cy52\\release\\deps" "/LIBPATH:C:\\Users\\Tobias\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\Tobias\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-26aaf8685d64fee9.rlib" "C:\\Users\\Tobias\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librand-ce86047000b56785.rlib" "C:\\Users\\Tobias\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcollections-b8b9a576d130e244.rlib" "C:\\Users\\Tobias\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_unicode-9fbe5d3bbc85c563.rlib" "C:\\Users\\Tobias\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-14e8bb7ca07ebf2c.rlib" "C:\\Users\\Tobias\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-a4bc20050f473f79.rlib" "C:\\Users\\Tobias\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-892bd58ec617c3bd.rlib" "C:\\Users\\Tobias\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-b9c9173c47c20c41.rlib" "C:\\Users\\Tobias\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc_system-141f235246f01712.rlib" "C:\\Users\\Tobias\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-3a6338503b91076c.rlib" "C:\\Users\\Tobias\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-e9e280acad4314a4.rlib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "shell32.lib" "msvcrt.lib"
= note: link: extra operand '/LIBPATH:C:\\Users\\Tobias\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib'
Try 'link --help' for more information.
error: aborting due to previous error(s)
error: Could not compile `xargo`.
Build failed, waiting for other jobs to finish...
error: failed to compile `xargo v0.3.8`, intermediate artifacts can be found at `C:\Users\Tobias\AppData\Local\Temp\cargo-install.u5VhgnD4Cy52`
Caused by:
build failed
link.exe
$ link --version
link (GNU coreutils) 8.25
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Michael Stone.
Any help is welcome.
I use the binary release for now.
We do not support building on Windows at the moment, due to the Linux subsystem lacking FUSE
Building xargo with the (nightly) windows-gnu
toolchain works fine for me.
@Niondir: Shouldn't link.exe
from Visual Studio be used instead of the one from GNU coreutils? You may have to modify your PATH to avoid this mixup.