Skip to content

error[E0432]: unresolved imports nix::sys, nix::unistd #477

@shiwanghua

Description

@shiwanghua

https://users.rust-lang.org/t/how-to-create-a-fifo-in-windows/121702

I try to install locally, run in windows:

make all GHIDRA_PATH=G:\ghidra_11.2.1_PUBLIC_20241105

error:

Updating crates.io index
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Blocking waiting for file lock on package cache
Compiling libc v0.2.165
Compiling cfg_aliases v0.2.1
Compiling bitflags v2.4.2
Compiling nix v0.29.0
Compiling cwe_checker_lib v0.9.0

error[E0432]: unresolved imports nix::sys, nix::unistd
--> src\cwe_checker_lib\src\utils\ghidra.rs:13:11
|
13 | use nix::{sys::stat, unistd};
| ^^^ ^^^^^^ no unistd in the root
| |
| could not find sys in nix

For more information about this error, try rustc --explain E0432.
error: could not compile cwe_checker_lib (lib) due to 1 previous error
error: failed to compile `cwe_checker v0.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions