[GH-ISSUE #1499] Error calling dlltool 'dlltool.exe': program not found #676

Closed
opened 2026-02-27 19:31:54 +03:00 by kerem · 8 comments
Owner

Originally created by @quadrinex on GitHub (May 4, 2025).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1499

Description

When installing librespot from cargo I get the error "Error calling dlltool 'dlltool.exe': program not found"

Version

0.6.0

How to reproduce

cargo install librespot

Log

> cargo install librespot
    Updating crates.io index
  Installing librespot v0.6.0
    Updating crates.io index
     Locking 408 packages to latest compatible versions
      Adding sysinfo v0.31.4 (available: v0.35.0)
      Adding thiserror v1.0.69 (available: v2.0.12)
   Compiling proc-macro2 v1.0.95
   Compiling unicode-ident v1.0.18
   Compiling windows_x86_64_gnu v0.52.6
   Compiling cfg-if v1.0.0
   Compiling getrandom v0.3.2
   Compiling autocfg v1.4.0
   Compiling shlex v1.3.0
   Compiling memchr v2.7.4
   Compiling winapi-x86_64-pc-windows-gnu v0.4.0
   Compiling smallvec v1.15.0
   Compiling winapi v0.3.9
   Compiling bytes v1.10.1
   Compiling getrandom v0.2.16
   Compiling pin-project-lite v0.2.16
   Compiling libc v0.2.172
   Compiling equivalent v1.0.2
   Compiling object v0.36.7
   Compiling hashbrown v0.15.3
   Compiling adler2 v2.0.0
   Compiling windows-targets v0.52.6
   Compiling zerocopy v0.8.25
   Compiling gimli v0.31.1
   Compiling lock_api v0.4.12
   Compiling itoa v1.0.15
error: Error calling dlltool 'dlltool.exe': program not found

   Compiling jobserver v0.1.33
error: could not compile `getrandom` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `librespot v0.6.0`, intermediate artifacts can be found at `C:\Users\MyUsername\AppData\Local\Temp\cargo-installhnmLSe`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Host (what you are running librespot on):

  • OS: Windows 11
  • Platform: x64
Originally created by @quadrinex on GitHub (May 4, 2025). Original GitHub issue: https://github.com/librespot-org/librespot/issues/1499 ### Description When installing librespot from cargo I get the error "Error calling dlltool 'dlltool.exe': program not found" ### Version 0.6.0 ### How to reproduce cargo install librespot ### Log ```bash > cargo install librespot Updating crates.io index Installing librespot v0.6.0 Updating crates.io index Locking 408 packages to latest compatible versions Adding sysinfo v0.31.4 (available: v0.35.0) Adding thiserror v1.0.69 (available: v2.0.12) Compiling proc-macro2 v1.0.95 Compiling unicode-ident v1.0.18 Compiling windows_x86_64_gnu v0.52.6 Compiling cfg-if v1.0.0 Compiling getrandom v0.3.2 Compiling autocfg v1.4.0 Compiling shlex v1.3.0 Compiling memchr v2.7.4 Compiling winapi-x86_64-pc-windows-gnu v0.4.0 Compiling smallvec v1.15.0 Compiling winapi v0.3.9 Compiling bytes v1.10.1 Compiling getrandom v0.2.16 Compiling pin-project-lite v0.2.16 Compiling libc v0.2.172 Compiling equivalent v1.0.2 Compiling object v0.36.7 Compiling hashbrown v0.15.3 Compiling adler2 v2.0.0 Compiling windows-targets v0.52.6 Compiling zerocopy v0.8.25 Compiling gimli v0.31.1 Compiling lock_api v0.4.12 Compiling itoa v1.0.15 error: Error calling dlltool 'dlltool.exe': program not found Compiling jobserver v0.1.33 error: could not compile `getrandom` (lib) due to 1 previous error warning: build failed, waiting for other jobs to finish... error: failed to compile `librespot v0.6.0`, intermediate artifacts can be found at `C:\Users\MyUsername\AppData\Local\Temp\cargo-installhnmLSe`. To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path. ``` ### Host (what you are running `librespot` on): - OS: Windows 11 - Platform: x64
kerem 2026-02-27 19:31:54 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@photovoltex commented on GitHub (May 4, 2025):

Huh, that's a new one. From a quick search the question emerges, which toolchain do you have installed?

You can get that information by running

rustup toolchain list

But in general your issue sounds more like an improper installation of rust or missing tools to use the toolchain to it's full extend.

<!-- gh-comment-id:2849102267 --> @photovoltex commented on GitHub (May 4, 2025): Huh, that's a new one. [From a quick search](https://users.rust-lang.org/t/error-error-calling-dlltool-dlltool-exe-program-not-found/124236/4) the question emerges, which toolchain do you have installed? You can get that information by running ```shell rustup toolchain list ``` But in general your issue sounds more like an improper installation of rust or missing tools to use the toolchain to it's full extend.
Author
Owner

@quadrinex commented on GitHub (May 4, 2025):

@photovoltex

Huh, that's a new one. From a quick search the question emerges, which toolchain do you have installed?

You can get that information by running

rustup toolchain list

But in general your issue sounds more like an improper installation of rust or missing tools to use the toolchain to it's full extend.

stable-x86_64-pc-windows-gnu (active, default)
stable-x86_64-pc-windows-msvc

btw i tried stable-x86_64-pc-windows-msvc but it just gave me more errors

<!-- gh-comment-id:2849103313 --> @quadrinex commented on GitHub (May 4, 2025): @photovoltex > Huh, that's a new one. [From a quick search](https://users.rust-lang.org/t/error-error-calling-dlltool-dlltool-exe-program-not-found/124236/4) the question emerges, which toolchain do you have installed? > > You can get that information by running > > rustup toolchain list > > But in general your issue sounds more like an improper installation of rust or missing tools to use the toolchain to it's full extend. stable-x86_64-pc-windows-gnu (active, default) stable-x86_64-pc-windows-msvc btw i tried stable-x86_64-pc-windows-msvc but it just gave me more errors
Author
Owner

@photovoltex commented on GitHub (May 4, 2025):

Personally I always use the msvc version when I'm under windows. It requires to additionally install the "Visual Studio Build Tools" (maybe with some additional components, not sure). But in general that always just works out of the box. Currently you will also need to install cmake for one of our dependencies, but from what the log looks like, you didn't got that far, so that would be a later concern.

<!-- gh-comment-id:2849116921 --> @photovoltex commented on GitHub (May 4, 2025): Personally I always use the `msvc` version when I'm under windows. It requires to additionally install the "Visual Studio Build Tools" (maybe with some additional components, not sure). But in general that always just works out of the box. Currently you will also need to install `cmake` for one of our dependencies, but from what the log looks like, you didn't got that far, so that would be a later concern.
Author
Owner

@quadrinex commented on GitHub (May 4, 2025):

@photovoltex
Well, this is what i get with it :

cargo install librespot
    Updating crates.io index
  Installing librespot v0.6.0
    Updating crates.io index
     Locking 408 packages to latest compatible versions
      Adding sysinfo v0.31.4 (available: v0.35.0)
      Adding thiserror v1.0.69 (available: v2.0.12)
   Compiling proc-macro2 v1.0.95
   Compiling unicode-ident v1.0.18
   Compiling windows_x86_64_msvc v0.52.6
   Compiling cfg-if v1.0.0
   Compiling getrandom v0.3.2
   Compiling autocfg v1.4.0
   Compiling shlex v1.3.0
   Compiling smallvec v1.15.0
   Compiling bytes v1.10.1
   Compiling winapi v0.3.9
   Compiling pin-project-lite v0.2.16
   Compiling getrandom v0.2.16
   Compiling hashbrown v0.15.3
   Compiling equivalent v1.0.2
   Compiling log v0.4.27
   Compiling zerocopy v0.8.25
   Compiling itoa v1.0.15
error: linking with `link.exe` failed: exit code: 1
  |
  = note: "link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustc2rsoGt\\symbols.o" "<2 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\windows_x86_64_msvc-832d5308c4da5c90\\build_script_build-832d5308c4da5c90.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\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\windows_x86_64_msvc-832d5308c4da5c90\\build_script_build-832d5308c4da5c90.build_script_build.175d2be10eda7f2-cgu.0.rcgu.o'
          Try 'link --help' for more information.


   Compiling scopeguard v1.2.0
error: linking with `link.exe` failed: exit code: 1
  |
  = note: "link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustcr03SJt\\symbols.o" "<3 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\proc-macro2-c6b4ebccdbda7987\\build_script_build-c6b4ebccdbda7987.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\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\proc-macro2-c6b4ebccdbda7987\\build_script_build-c6b4ebccdbda7987.build_script_build.981310cb089e0bc1-cgu.0.rcgu.o'
          Try 'link --help' for more information.


   Compiling fixedbitset v0.4.2
error: linking with `link.exe` failed: exit code: 1
  |
  = note: "link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustc4JVrZn\\symbols.o" "<4 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\getrandom-2783c97ed6bf0fc8\\build_script_build-2783c97ed6bf0fc8.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\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\getrandom-2783c97ed6bf0fc8\\build_script_build-2783c97ed6bf0fc8.build_script_build.5d5df0a7af8918f8-cgu.0.rcgu.o'
          Try 'link --help' for more information.


   Compiling parking_lot_core v0.9.10
   Compiling once_cell v1.21.3
error: linking with `link.exe` failed: exit code: 1
  |
  = note: "link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustc4OzJqG\\symbols.o" "<6 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\winapi-320cba680ed0897d\\build_script_build-320cba680ed0897d.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\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\winapi-320cba680ed0897d\\build_script_build-320cba680ed0897d.build_script_build.334ff108b62c115a-cgu.0.rcgu.o'
          Try 'link --help' for more information.


   Compiling rustc-demangle v0.1.24
   Compiling lock_api v0.4.12
error: linking with `link.exe` failed: exit code: 1
  |
  = note: "link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustcfC7DTA\\symbols.o" "<2 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\parking_lot_core-1067ef9050a864a2\\build_script_build-1067ef9050a864a2.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\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\parking_lot_core-1067ef9050a864a2\\build_script_build-1067ef9050a864a2.build_script_build.f478e4e6ca096ce0-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\\Cyril\\AppData\\Local\\Temp\\rustcRmAzmf\\symbols.o" "<6 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\zerocopy-0875f18fff738204\\build_script_build-0875f18fff738204.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\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\zerocopy-0875f18fff738204\\build_script_build-0875f18fff738204.build_script_build.816b35e8d566b0ae-cgu.0.rcgu.o'
          Try 'link --help' for more information.


   Compiling version_check v0.9.5
note: `link.exe` returned an unexpected error

note: you may need to install Visual Studio build tools with the "C++ build tools" workload

error: linking with `link.exe` failed: exit code: 1
  |
  = note: "link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustcAjC67f\\symbols.o" "<2 object files omitted>" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\deps/{libautocfg-e783ea8bbbfb9bbe.rlib}.rlib" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\lock_api-a3197fc02168c069\\build_script_build-a3197fc02168c069.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\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\lock_api-a3197fc02168c069\\build_script_build-a3197fc02168c069.build_script_build.67f0bfb35be8ce16-cgu.0.rcgu.o'
          Try 'link --help' for more information.


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 `getrandom` (build script) due to 1 previous error
error: could not compile `proc-macro2` (build script) due to 1 previous error
error: could not compile `winapi` (build script) due to 1 previous error
error: could not compile `zerocopy` (build script) due to 1 previous error
error: could not compile `parking_lot_core` (build script) due to 1 previous error
error: could not compile `lock_api` (build script) due to 1 previous error
error: failed to compile `librespot v0.6.0`, intermediate artifacts can be found at `C:\Users\Cyril\AppData\Local\Temp\cargo-installjzp039`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
<!-- gh-comment-id:2849121470 --> @quadrinex commented on GitHub (May 4, 2025): @photovoltex Well, this is what i get with it : ```bash cargo install librespot Updating crates.io index Installing librespot v0.6.0 Updating crates.io index Locking 408 packages to latest compatible versions Adding sysinfo v0.31.4 (available: v0.35.0) Adding thiserror v1.0.69 (available: v2.0.12) Compiling proc-macro2 v1.0.95 Compiling unicode-ident v1.0.18 Compiling windows_x86_64_msvc v0.52.6 Compiling cfg-if v1.0.0 Compiling getrandom v0.3.2 Compiling autocfg v1.4.0 Compiling shlex v1.3.0 Compiling smallvec v1.15.0 Compiling bytes v1.10.1 Compiling winapi v0.3.9 Compiling pin-project-lite v0.2.16 Compiling getrandom v0.2.16 Compiling hashbrown v0.15.3 Compiling equivalent v1.0.2 Compiling log v0.4.27 Compiling zerocopy v0.8.25 Compiling itoa v1.0.15 error: linking with `link.exe` failed: exit code: 1 | = note: "link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustc2rsoGt\\symbols.o" "<2 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\windows_x86_64_msvc-832d5308c4da5c90\\build_script_build-832d5308c4da5c90.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\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\windows_x86_64_msvc-832d5308c4da5c90\\build_script_build-832d5308c4da5c90.build_script_build.175d2be10eda7f2-cgu.0.rcgu.o' Try 'link --help' for more information. Compiling scopeguard v1.2.0 error: linking with `link.exe` failed: exit code: 1 | = note: "link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustcr03SJt\\symbols.o" "<3 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\proc-macro2-c6b4ebccdbda7987\\build_script_build-c6b4ebccdbda7987.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\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\proc-macro2-c6b4ebccdbda7987\\build_script_build-c6b4ebccdbda7987.build_script_build.981310cb089e0bc1-cgu.0.rcgu.o' Try 'link --help' for more information. Compiling fixedbitset v0.4.2 error: linking with `link.exe` failed: exit code: 1 | = note: "link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustc4JVrZn\\symbols.o" "<4 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\getrandom-2783c97ed6bf0fc8\\build_script_build-2783c97ed6bf0fc8.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\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\getrandom-2783c97ed6bf0fc8\\build_script_build-2783c97ed6bf0fc8.build_script_build.5d5df0a7af8918f8-cgu.0.rcgu.o' Try 'link --help' for more information. Compiling parking_lot_core v0.9.10 Compiling once_cell v1.21.3 error: linking with `link.exe` failed: exit code: 1 | = note: "link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustc4OzJqG\\symbols.o" "<6 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\winapi-320cba680ed0897d\\build_script_build-320cba680ed0897d.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\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\winapi-320cba680ed0897d\\build_script_build-320cba680ed0897d.build_script_build.334ff108b62c115a-cgu.0.rcgu.o' Try 'link --help' for more information. Compiling rustc-demangle v0.1.24 Compiling lock_api v0.4.12 error: linking with `link.exe` failed: exit code: 1 | = note: "link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustcfC7DTA\\symbols.o" "<2 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\parking_lot_core-1067ef9050a864a2\\build_script_build-1067ef9050a864a2.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\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\parking_lot_core-1067ef9050a864a2\\build_script_build-1067ef9050a864a2.build_script_build.f478e4e6ca096ce0-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\\Cyril\\AppData\\Local\\Temp\\rustcRmAzmf\\symbols.o" "<6 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\zerocopy-0875f18fff738204\\build_script_build-0875f18fff738204.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\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\zerocopy-0875f18fff738204\\build_script_build-0875f18fff738204.build_script_build.816b35e8d566b0ae-cgu.0.rcgu.o' Try 'link --help' for more information. Compiling version_check v0.9.5 note: `link.exe` returned an unexpected error note: you may need to install Visual Studio build tools with the "C++ build tools" workload error: linking with `link.exe` failed: exit code: 1 | = note: "link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustcAjC67f\\symbols.o" "<2 object files omitted>" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\deps/{libautocfg-e783ea8bbbfb9bbe.rlib}.rlib" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\lock_api-a3197fc02168c069\\build_script_build-a3197fc02168c069.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\\Cyril\\AppData\\Local\\Temp\\cargo-installjzp039\\release\\build\\lock_api-a3197fc02168c069\\build_script_build-a3197fc02168c069.build_script_build.67f0bfb35be8ce16-cgu.0.rcgu.o' Try 'link --help' for more information. 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 `getrandom` (build script) due to 1 previous error error: could not compile `proc-macro2` (build script) due to 1 previous error error: could not compile `winapi` (build script) due to 1 previous error error: could not compile `zerocopy` (build script) due to 1 previous error error: could not compile `parking_lot_core` (build script) due to 1 previous error error: could not compile `lock_api` (build script) due to 1 previous error error: failed to compile `librespot v0.6.0`, intermediate artifacts can be found at `C:\Users\Cyril\AppData\Local\Temp\cargo-installjzp039`. To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path. ```
Author
Owner

@quadrinex commented on GitHub (May 4, 2025):

Seem like I don't have Visual Studio Build Tools. I'm installing it, I will tell if anything changed.

<!-- gh-comment-id:2849140734 --> @quadrinex commented on GitHub (May 4, 2025): Seem like I don't have Visual Studio Build Tools. I'm installing it, I will tell if anything changed.
Author
Owner

@quadrinex commented on GitHub (May 4, 2025):

Well, the exit code changed, I guess it had something to do with it.

╭  bash(1)  58% 0ms  Love Potions
╰ Cyril@QDNX-gaming  ~ cargo install librespot
    Updating crates.io index
  Installing librespot v0.6.0
    Updating crates.io index
     Locking 408 packages to latest compatible versions
      Adding sysinfo v0.31.4 (available: v0.35.0)
      Adding thiserror v1.0.69 (available: v2.0.12)
   Compiling proc-macro2 v1.0.95
   Compiling unicode-ident v1.0.18
   Compiling windows_x86_64_msvc v0.52.6
   Compiling cfg-if v1.0.0
   Compiling getrandom v0.3.2
   Compiling autocfg v1.4.0
   Compiling shlex v1.3.0
   Compiling smallvec v1.15.0
   Compiling winapi v0.3.9
   Compiling bytes v1.10.1
   Compiling pin-project-lite v0.2.16
   Compiling getrandom v0.2.16
   Compiling equivalent v1.0.2
   Compiling hashbrown v0.15.3
   Compiling zerocopy v0.8.25
   Compiling itoa v1.0.15
error: linking with `link.exe` failed: exit code: 1181
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustcnjkTFD\\symbols.o" "<2 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installLUpYJ8\\release\\build\\windows_x86_64_msvc-832d5308c4da5c90\\build_script_build-832d5308c4da5c90.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 : fatal error LNK1181: cannot open input file 'kernel32.lib'␍


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: linking with `link.exe` failed: exit code: 1181
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustcP9IMvp\\symbols.o" "<3 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installLUpYJ8\\release\\build\\proc-macro2-c6b4ebccdbda7987\\build_script_build-c6b4ebccdbda7987.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 : fatal error LNK1181: cannot open input file 'kernel32.lib'␍


error: linking with `link.exe` failed: exit code: 1181
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustc8Gkdmo\\symbols.o" "<4 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installLUpYJ8\\release\\build\\getrandom-2783c97ed6bf0fc8\\build_script_build-2783c97ed6bf0fc8.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 : fatal error LNK1181: cannot open input file 'kernel32.lib'␍


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: linking with `link.exe` failed: exit code: 1181
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustccvMdRS\\symbols.o" "<6 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installLUpYJ8\\release\\build\\winapi-320cba680ed0897d\\build_script_build-320cba680ed0897d.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 : fatal error LNK1181: cannot open input file 'kernel32.lib'␍


error: could not compile `winapi` (build script) due to 1 previous error
error: linking with `link.exe` failed: exit code: 1181
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustcXKEKbX\\symbols.o" "<6 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installLUpYJ8\\release\\build\\zerocopy-0875f18fff738204\\build_script_build-0875f18fff738204.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 : fatal error LNK1181: cannot open input file 'kernel32.lib'␍


error: could not compile `zerocopy` (build script) due to 1 previous error
error: failed to compile `librespot v0.6.0`, intermediate artifacts can be found at `C:\Users\Cyril\AppData\Local\Temp\cargo-installLUpYJ8`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
<!-- gh-comment-id:2849142387 --> @quadrinex commented on GitHub (May 4, 2025): Well, the exit code changed, I guess it had something to do with it. ```bash ╭  bash(1)  58% 0ms  Love Potions ╰ Cyril@QDNX-gaming  ~ cargo install librespot Updating crates.io index Installing librespot v0.6.0 Updating crates.io index Locking 408 packages to latest compatible versions Adding sysinfo v0.31.4 (available: v0.35.0) Adding thiserror v1.0.69 (available: v2.0.12) Compiling proc-macro2 v1.0.95 Compiling unicode-ident v1.0.18 Compiling windows_x86_64_msvc v0.52.6 Compiling cfg-if v1.0.0 Compiling getrandom v0.3.2 Compiling autocfg v1.4.0 Compiling shlex v1.3.0 Compiling smallvec v1.15.0 Compiling winapi v0.3.9 Compiling bytes v1.10.1 Compiling pin-project-lite v0.2.16 Compiling getrandom v0.2.16 Compiling equivalent v1.0.2 Compiling hashbrown v0.15.3 Compiling zerocopy v0.8.25 Compiling itoa v1.0.15 error: linking with `link.exe` failed: exit code: 1181 | = note: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustcnjkTFD\\symbols.o" "<2 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installLUpYJ8\\release\\build\\windows_x86_64_msvc-832d5308c4da5c90\\build_script_build-832d5308c4da5c90.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 : fatal error LNK1181: cannot open input file 'kernel32.lib'␍ 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: linking with `link.exe` failed: exit code: 1181 | = note: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustcP9IMvp\\symbols.o" "<3 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installLUpYJ8\\release\\build\\proc-macro2-c6b4ebccdbda7987\\build_script_build-c6b4ebccdbda7987.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 : fatal error LNK1181: cannot open input file 'kernel32.lib'␍ error: linking with `link.exe` failed: exit code: 1181 | = note: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustc8Gkdmo\\symbols.o" "<4 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installLUpYJ8\\release\\build\\getrandom-2783c97ed6bf0fc8\\build_script_build-2783c97ed6bf0fc8.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 : fatal error LNK1181: cannot open input file 'kernel32.lib'␍ 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: linking with `link.exe` failed: exit code: 1181 | = note: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustccvMdRS\\symbols.o" "<6 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installLUpYJ8\\release\\build\\winapi-320cba680ed0897d\\build_script_build-320cba680ed0897d.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 : fatal error LNK1181: cannot open input file 'kernel32.lib'␍ error: could not compile `winapi` (build script) due to 1 previous error error: linking with `link.exe` failed: exit code: 1181 | = note: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\link.exe" "/NOLOGO" "C:\\Users\\Cyril\\AppData\\Local\\Temp\\rustcXKEKbX\\symbols.o" "<6 object files omitted>" "<sysroot>\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib/{libstd-*,libpanic_unwind-*,libwindows_targets-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libunwind-*,libcfg_if-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/OUT:C:\\Users\\Cyril\\AppData\\Local\\Temp\\cargo-installLUpYJ8\\release\\build\\zerocopy-0875f18fff738204\\build_script_build-0875f18fff738204.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 : fatal error LNK1181: cannot open input file 'kernel32.lib'␍ error: could not compile `zerocopy` (build script) due to 1 previous error error: failed to compile `librespot v0.6.0`, intermediate artifacts can be found at `C:\Users\Cyril\AppData\Local\Temp\cargo-installLUpYJ8`. To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path. ```
Author
Owner

@quadrinex commented on GitHub (May 4, 2025):

I forgot to install Dependencies on Visual Studio Now it just work.

<!-- gh-comment-id:2849151448 --> @quadrinex commented on GitHub (May 4, 2025): I forgot to install Dependencies on Visual Studio Now it just work.
Author
Owner

@photovoltex commented on GitHub (May 4, 2025):

Good to hear that it was just a config issue :). Thanks for closing^^

<!-- gh-comment-id:2849173962 --> @photovoltex commented on GitHub (May 4, 2025): Good to hear that it was just a config issue :). Thanks for closing^^
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#676
No description provided.