flamegraph-rs / flamegraph

Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3
Apache License 2.0
4.72k stars 143 forks source link

windows install error #41

Closed acnologia000 closed 5 years ago

acnologia000 commented 5 years ago
error[E0433]: failed to resolve: could not find `unix` in `os`
  --> C:\Users\Dell\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\iterator.rs:55:14
   |
55 | use std::os::unix::io::AsRawFd;
   |              ^^^^ could not find `unix` in `os`

error[E0433]: failed to resolve: could not find `unix` in `os`
  --> C:\Users\Dell\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\iterator.rs:56:14
   |
56 | use std::os::unix::net::UnixStream;
   |              ^^^^ could not find `unix` in `os`

error[E0433]: failed to resolve: could not find `unix` in `os`
  --> C:\Users\Dell\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\pipe.rs:78:14
   |
78 | use std::os::unix::io::{AsRawFd, RawFd};
   |              ^^^^ could not find `unix` in `os`

error[E0432]: unresolved imports `libc::SIGALRM`, `libc::SIGBUS`, `libc::SIGCHLD`, `libc::SIGCONT`, `libc::SIGHUP`, `libc::SIGIO`, `libc::SIGKILL`, `libc::SIGPIPE`, `libc::SIGPROF`, `libc::SIGQUIT`, `libc::SIGSTOP`, `libc::SIGSYS`, `libc::SIGTRAP`, `libc::SIGUSR1`, `libc::SIGUSR2`, `libc::SIGWINCH`
   --> C:\Users\Dell\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\lib.rs:137:14
    |
137 |     SIGABRT, SIGALRM, SIGBUS, SIGCHLD, SIGCONT, SIGFPE, SIGHUP, SIGILL, SIGINT, SIGIO, SIGKILL,
    |              ^^^^^^^  ^^^^^^  ^^^^^^^  ^^^^^^^          ^^^^^^                  ^^^^^  ^^^^^^^ no `SIGKILL` in the root
    |              |        |       |        |                |                       |
    |              |        |       |        |                |                       no `SIGIO` in the root
    |              |        |       |        |                no `SIGHUP` in the root
    |              |        |       |        no `SIGCONT` in the root
    |              |        |       no `SIGCHLD` in the root
    |              |        no `SIGBUS` in the root
    |              no `SIGALRM` in the root
138 |     SIGPIPE, SIGPROF, SIGQUIT, SIGSEGV, SIGSTOP, SIGSYS, SIGTERM, SIGTRAP, SIGUSR1, SIGUSR2,
    |     ^^^^^^^  ^^^^^^^  ^^^^^^^           ^^^^^^^  ^^^^^^           ^^^^^^^  ^^^^^^^  ^^^^^^^
    |     |        |        |
    |     |        |        no `SIGQUIT` in the root
    |     |        no `SIGPROF` in the root
    |     no `SIGPIPE` in the root
139 |     SIGWINCH,
    |     ^^^^^^^^
help: a similar name exists in the module
    |
137 |     SIGABRT, SIGTERM, SIGBUS, SIGCHLD, SIGCONT, SIGFPE, SIGHUP, SIGILL, SIGINT, SIGIO, SIGKILL,
    |              ^^^^^^^
help: a similar name exists in the module
    |
137 |     SIGABRT, SIGALRM, SIGBUS, SIGCHLD, SIGINT, SIGFPE, SIGHUP, SIGILL, SIGINT, SIGIO, SIGKILL,
    |                                        ^^^^^^
help: a similar name exists in the module
    |
137 |     SIGABRT, SIGALRM, SIGBUS, SIGCHLD, SIGCONT, SIGFPE, SIGHUP, SIGILL, SIGINT, SIGIO, SIGILL,
    |                                                                                        ^^^^^^
help: a similar name exists in the module
    |
138 |     SIGFPE, SIGPROF, SIGQUIT, SIGSEGV, SIGSTOP, SIGSYS, SIGTERM, SIGTRAP, SIGUSR1, SIGUSR2,
    |     ^^^^^^

error[E0433]: failed to resolve: use of undeclared type or module `UnixStream`
   --> C:\Users\Dell\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\iterator.rs:166:29
    |
166 |         let (read, write) = UnixStream::pair()?;
    |                             ^^^^^^^^^^ use of undeclared type or module `UnixStream`

error[E0412]: cannot find type `UnixStream` in this scope
  --> C:\Users\Dell\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\iterator.rs:73:11
   |
73 |     read: UnixStream,
   |           ^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type `UnixStream` in this scope
  --> C:\Users\Dell\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\iterator.rs:74:12
   |
74 |     write: UnixStream,
   |            ^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function `recv` in module `libc`
   --> C:\Users\Dell\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\iterator.rs:240:19
    |
240 |             libc::recv(
    |                   ^^^^ not found in `libc`

error[E0425]: cannot find value `MSG_DONTWAIT` in module `libc`
   --> C:\Users\Dell\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\iterator.rs:244:44
    |
244 |                 if wait { 0 } else { libc::MSG_DONTWAIT },
    |                                            ^^^^^^^^^^^^ not found in `libc`

error[E0412]: cannot find type `RawFd` in this scope
  --> C:\Users\Dell\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\pipe.rs:84:26
   |
84 | pub(crate) fn wake(pipe: RawFd) {
   |                          ^^^^^ not found in this scope

error[E0425]: cannot find function `send` in module `libc`
  --> C:\Users\Dell\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\pipe.rs:96:15
   |
96 |         libc::send(pipe, b"X" as *const _ as *const _, 1, libc::MSG_DONTWAIT);
   |               ^^^^ not found in `libc`

error[E0425]: cannot find value `MSG_DONTWAIT` in module `libc`
  --> C:\Users\Dell\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\pipe.rs:96:65
   |
96 |         libc::send(pipe, b"X" as *const _ as *const _, 1, libc::MSG_DONTWAIT);
   |                                                                 ^^^^^^^^^^^^ not found in `libc`

error[E0412]: cannot find type `RawFd` in this scope
   --> C:\Users\Dell\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\pipe.rs:104:42
    |
104 | pub fn register_raw(signal: c_int, pipe: RawFd) -> Result<SigId, Error> {
    |                                          ^^^^^ not found in this scope

error[E0405]: cannot find trait `AsRawFd` in this scope
   --> C:\Users\Dell\.cargo\registry\src\github.com-1ecc6299db9ec823\signal-hook-0.1.10\src\pipe.rs:116:8
    |
116 |     P: AsRawFd + Send + Sync + 'static,
    |        ^^^^^^^ not found in this scope

error: aborting due to 14 previous errors

Some errors have detailed explanations: E0405, E0412, E0425, E0432, E0433.
For more information about an error, try `rustc --explain E0405`.
error: Could not compile `signal-hook`.
bjorn3 commented 5 years ago

Quoting README

Relies on perf on linux and dtrace otherwise.

I think this only supports UNIX systems. With the recent dtrace support on windows I think it should be possible to port it to windows.

acnologia000 commented 5 years ago

issue should be left open until we have dtrace support ? or i should close it ?