Skip to content

"Could not compile advapi32-sys on a network-mapped drive #28002

Closed
@horatius83

Description

@horatius83

I attempted to run the command:

cargo build --verbose

and got the following error:

PS Q:\projects\hello_world\src> cargo build --verbose
   Compiling advapi32-sys v0.1.2
     Running `rustc C:\Users\<name>\.cargo\registry\src\git.godevs.top-0a35038f75765ae4\advapi32-sys-0.1.2\build.rs --crat
e-name build_script_build --crate-type bin -C prefer-dynamic -g --out-dir Q:\projects\hello_world\target\debug\build\adv
api32-sys-cfef7a1f30f1e5f6 --emit=dep-info,link -L dependency=Q:\projects\hello_world\target\debug\deps -L dependency=Q:
\projects\hello_world\target\debug\deps --extern build=Q:\projects\hello_world\target\debug\deps\libbuild-304afb6bdff23d
72.rlib -Awarnings`
       Fresh winapi-build v0.1.1
       Fresh winapi v0.2.2
       Fresh libc v0.1.10
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: Error { repr: Os { code: 5, message: "Access is
 denied.\r\n" } }', ../src/libcore\result.rs:731


Could not compile `advapi32-sys`.

Caused by:
  Process didn't exit successfully: `rustc C:\Users\<name>\.cargo\registry\src\git.godevs.top-0a35038f75765ae4\advapi32-sy
s-0.1.2\build.rs --crate-name build_script_build --crate-type bin -C prefer-dynamic -g --out-dir Q:\projects\hello_world
\target\debug\build\advapi32-sys-cfef7a1f30f1e5f6 --emit=dep-info,link -L dependency=Q:\projects\hello_world\target\debu
g\deps -L dependency=Q:\projects\hello_world\target\debug\deps --extern build=Q:\projects\hello_world\target\debug\deps\
libbuild-304afb6bdff23d72.rlib -Awarnings` (exit code: 101)

This is my Cargo.toml file:

[package]
name = "hello_world"
version = "0.1.0"
authors = ["<name and e-mail address>"]

[dependencies]
rand="0.3.0"

Meta

rustc --version --verbose:

rustc 1.2.0 (082e47636 2015-08-03)
binary: rustc
commit-hash: 082e4763615bdbe7b4dd3dfd6fc2210b7773edf5
commit-date: 2015-08-03
host: x86_64-pc-windows-gnu
release: 1.2.0

Backtrace:

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions