cargo build/test on Windows
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 57
- Forks
- 47
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 68
Description
cargo build fails
It needs Visual Studio Build Tools for C++ with C++ Tools for Linux and Mac Development.
error: linking with `link.exe` failed: exit code: 1
|
= note: "link.exe" "/NOLOGO" "C:\\Users\\windo\\AppData\\Local\\Temp\\rustcv1i3lv\\symbols.o" "<2 object files omitted>" "<sysroot>\\lib\\rustlib\\aarch64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libcfg_if-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "kernel32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\windo\\rari\\target\\debug\\build\\quote-1fd7b8016982e23c\\build_script_build-1fd7b8016982e23c.exe" "/OPT:REF,NOICF" "/DEBUG" "/PDBALTPATH:%_PDB%" "/NATVIS:<sysroot>\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:<sysroot>\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:<sysroot>\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:<sysroot>\\lib\\rustlib\\etc\\libstd.natvis"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: link: extra operand 'C:\\Users\\windo\\rari\\target\\debug\\build\\quote-1fd7b8016982e23c\\build_script_build-1fd7b8016982e23c.build_script_build.4f82b1af25c764d3-cgu.0.rcgu.o'
Try 'link --help' for more information.
error: linking with `link.exe` failed: exit code: 1
|
= note: "link.exe" "/NOLOGO" "C:\\Users\\windo\\AppData\\Local\\Temp\\rustcEi73mZ\\symbols.o" "<3 object files omitted>" "<sysroot>\\lib\\rustlib\\aarch64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libcfg_if-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "kernel32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\windo\\rari\\target\\debug\\build\\proc-macro2-f59fafbda86fad52\\build_script_build-f59fafbda86fad52.exe" "/OPT:REF,NOICF" "/DEBUG" "/PDBALTPATH:%_PDB%" "/NATVIS:<sysroot>\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:<sysroot>\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:<sysroot>\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:<sysroot>\\lib\\rustlib\\etc\\libstd.natvis"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: link: extra operand 'C:\\Users\\windo\\rari\\target\\debug\\build\\proc-macro2-f59fafbda86fad52\\build_script_build-f59fafbda86fad52.build_script_build.93c25409de576810-cgu.0.rcgu.o'
Try 'link --help' for more information.
note: `link.exe` returned an unexpected error
note: you may need to install Visual Studio build tools with the "C++ build tools" workload
error: could not compile `proc-macro2` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `quote` (build script) due to 1 previous error
cargo test cannot run successfully
It seems to require mv, see: https://github.com/mdn/rari/pull/518#issuecomment-3843921249
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing cargo build and cargo test on Windows, using the reported link.exe failure and the PR #518 discussion about the missing mv command as starting points. Done means both commands run successfully on Windows without these reported failures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100