-
I get this when running: > $ cargo install cargo-tarpaulin ⬡ 8.9.0 [±ifuse ●●]
Updating crates.io index
Downloaded cargo-tarpaulin v0.16.0
Downloaded 1 crate (135.8 KB) in 0.32s
Installing cargo-tarpaulin v0.16.0
Downloaded cargo-platform v0.1.1
Downloaded proc-macro2 v1.0.26
Downloaded rustc_version v0.3.3
Downloaded curl v0.4.36
Downloaded libc v0.2.93
Downloaded url v2.2.1
Downloaded idna v0.2.3
Downloaded indexmap v1.6.2
Downloaded pin-project-lite v0.2.6
Downloaded unicode-normalization v0.1.17
Downloaded wasmparser v0.57.0
Downloaded memmap v0.7.0
Downloaded tinyvec v1.2.0
Downloaded semver-parser v0.10.2
Downloaded deflate v0.8.6
Downloaded syn v1.0.70
Downloaded tracing-subscriber v0.2.17
Downloaded sharded-slab v0.1.1
Downloaded itoa v0.4.7
Downloaded git2 v0.13.18
Downloaded quick-xml v0.20.0
Downloaded tracing-log v0.1.2
Downloaded gzip-header v0.3.0
Downloaded byteorder v1.4.3
Downloaded fallible-iterator v0.2.0
Downloaded jobserver v0.1.22
Downloaded flate2 v1.0.20
Downloaded thread_local v1.1.3
Downloaded libssh2-sys v0.2.21
Downloaded cargo_metadata v0.12.3
Downloaded md5 v0.7.0
Downloaded gimli v0.22.0
Downloaded matchers v0.0.1
Downloaded libgit2-sys v0.12.19+1.1.0
Downloaded curl-sys v0.4.42+curl-7.76.0
Downloaded unicode-bidi v0.3.5
Downloaded tracing v0.1.25
Downloaded quote v1.0.9
Downloaded humantime-serde v1.0.1
Downloaded coveralls-api v0.5.0
Downloaded openssl-sys v0.9.61
Downloaded cc v1.0.67
Downloaded form_urlencoded v1.0.1
Downloaded ansi_term v0.12.1
Downloaded 44 crates (8.1 MB) in 1.78s (largest was `curl-sys` at 2.9 MB)
Compiling libc v0.2.93
Compiling autocfg v1.0.1
Compiling proc-macro2 v1.0.26
Compiling syn v1.0.70
Compiling unicode-xid v0.2.1
Compiling pkg-config v0.3.19
Compiling serde_derive v1.0.125
Compiling serde v1.0.125
Compiling cfg-if v1.0.0
Compiling crc32fast v1.2.1
Compiling memchr v2.3.4
Compiling ucd-trie v0.1.3
Compiling log v0.4.14
Compiling ryu v1.0.5
Compiling bitflags v1.2.1
Compiling lazy_static v1.4.0
Compiling byteorder v1.4.3
Compiling matches v0.1.8
Compiling tinyvec_macros v0.1.0
Compiling regex-syntax v0.6.23
Compiling serde_json v1.0.64
Compiling curl v0.4.36
Compiling adler v1.0.2
Compiling percent-encoding v2.1.0
Compiling itoa v0.4.7
Compiling unicode-width v0.1.8
Compiling hashbrown v0.9.1
Compiling adler32 v1.2.0
Compiling pin-project-lite v0.2.6
Compiling once_cell v1.7.2
Compiling strsim v0.8.0
Compiling fallible-iterator v0.2.0
Compiling ansi_term v0.12.1
Compiling vec_map v0.8.2
Compiling wasmparser v0.57.0
Compiling stable_deref_trait v1.2.0
Compiling md5 v0.7.0
Compiling ansi_term v0.11.0
Compiling same-file v1.0.6
Compiling smallvec v1.6.1
Compiling humantime v2.1.0
Compiling rustc-demangle v0.1.18
Compiling pest v2.1.3
Compiling unicode-bidi v0.3.5
Compiling tracing-core v0.1.17
Compiling sharded-slab v0.1.1
Compiling tinyvec v1.2.0
Compiling num-traits v0.2.14
Compiling num-integer v0.1.44
Compiling miniz_oxide v0.4.4
Compiling indexmap v1.6.2
Compiling form_urlencoded v1.0.1
Compiling textwrap v0.11.0
Compiling thread_local v1.1.3
Compiling walkdir v2.3.2
Compiling tracing v0.1.25
Compiling semver-parser v0.10.2
Compiling regex-automata v0.1.9
Compiling gzip-header v0.3.0
Compiling unicode-normalization v0.1.17
Compiling aho-corasick v0.7.15
Compiling quick-xml v0.20.0
Compiling tracing-log v0.1.2
Compiling quote v1.0.9
Compiling time v0.1.44
Compiling socket2 v0.4.0
Compiling atty v0.2.14
Compiling memmap v0.7.0
Compiling nix v0.19.1
Compiling jobserver v0.1.22
Compiling deflate v0.8.6
Compiling matchers v0.0.1
Compiling regex v1.4.6
Compiling idna v0.2.3
Compiling flate2 v1.0.20
Compiling clap v2.33.3
Compiling cc v1.0.67
Compiling url v2.2.1
Compiling object v0.22.0
Compiling chrono v0.4.19
Compiling libz-sys v1.1.2
Compiling openssl-sys v0.9.61
Compiling curl-sys v0.4.42+curl-7.76.0
Compiling libssh2-sys v0.2.21
Compiling libgit2-sys v0.12.19+1.1.0
Compiling tracing-subscriber v0.2.17
Compiling cargo-platform v0.1.1
Compiling semver v0.11.0
Compiling toml v0.5.8
Compiling humantime-serde v1.0.1
Compiling coveralls-api v0.5.0
Compiling cargo_metadata v0.12.3
Compiling gimli v0.22.0
Compiling rustc_version v0.3.3
Compiling cargo-tarpaulin v0.16.0
Compiling git2 v0.13.18
error[E0432]: unresolved import `crate::statemachine::ProcessInfo`
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/event_log.rs:3:27
|
3 | use crate::statemachine::{ProcessInfo, TracerAction};
| ^^^^^^^^^^^ no `ProcessInfo` in `statemachine`
error: cannot find macro `trace` in this scope
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/process_handling/mac.rs:10:9
|
10 | trace!("Can't initialise posix_spawnattr_t");
| ^^^^^
|
= note: consider importing one of these items:
crate::traces::trace
tracing::trace
error: cannot find macro `trace` in this scope
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/process_handling/mac.rs:17:9
|
17 | trace!("Failed to set spawn flags");
| ^^^^^
|
= note: consider importing one of these items:
crate::traces::trace
tracing::trace
error[E0433]: failed to resolve: use of undeclared type `Options`
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/ptrace_control.rs:13:28
|
13 | let options: Options = Options::PTRACE_O_TRACESYSGOOD
| ^^^^^^^ use of undeclared type `Options`
error[E0433]: failed to resolve: use of undeclared type `Options`
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/ptrace_control.rs:14:11
|
14 | | Options::PTRACE_O_TRACEEXEC
| ^^^^^^^ use of undeclared type `Options`
error[E0433]: failed to resolve: use of undeclared type `Options`
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/ptrace_control.rs:15:11
|
15 | | Options::PTRACE_O_TRACEEXIT
| ^^^^^^^ use of undeclared type `Options`
error[E0433]: failed to resolve: use of undeclared type `Options`
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/ptrace_control.rs:16:11
|
16 | | Options::PTRACE_O_TRACECLONE
| ^^^^^^^ use of undeclared type `Options`
error[E0433]: failed to resolve: use of undeclared type `Options`
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/ptrace_control.rs:17:11
|
17 | | Options::PTRACE_O_TRACEFORK
| ^^^^^^^ use of undeclared type `Options`
error[E0433]: failed to resolve: use of undeclared type `Options`
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/ptrace_control.rs:18:11
|
18 | | Options::PTRACE_O_TRACEVFORK;
| ^^^^^^^ use of undeclared type `Options`
error[E0412]: cannot find type `ProcessInfo` in this scope
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/breakpoint.rs:77:37
|
27 | impl Breakpoint {
| - help: you might be missing a type parameter: `<ProcessInfo>`
...
77 | ) -> Result<(bool, TracerAction<ProcessInfo>)> {
| ^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function `posix_spawn_attr_init` in this scope
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/process_handling/mac.rs:8:19
|
8 | let mut res = posix_spawn_attr_init(&mut attr);
| ^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `posix_spawnattr_init`
|
::: /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.93/src/unix/bsd/apple/mod.rs:3754:5
|
3754 | pub fn posix_spawnattr_init(attr: *mut posix_spawnattr_t) -> ::c_int;
| --------------------------------------------------------------------- similarly named function `posix_spawnattr_init` defined here
error[E0425]: cannot find function `nullptr` in module `ptr`
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/process_handling/mac.rs:29:14
|
29 | ptr::nullptr(),
| ^^^^^^^ not found in `ptr`
error[E0412]: cannot find type `Options` in this scope
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/ptrace_control.rs:13:18
|
13 | let options: Options = Options::PTRACE_O_TRACESYSGOOD
| ^^^^^^^ help: an enum with a similar name exists: `Option`
|
::: /Users/mike/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:161:1
|
161 | pub enum Option<T> {
| ------------------ similarly named enum `Option` defined here
error[E0425]: cannot find function `setoptions` in this scope
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/ptrace_control.rs:19:5
|
19 | setoptions(pid, options)
| ^^^^^^^^^^ help: a local variable with a similar name exists: `options`
error[E0425]: cannot find function `getevent` in this scope
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/ptrace_control.rs:78:5
|
78 | getevent(pid)
| ^^^^^^^^ not found in this scope
error[E0425]: cannot find function `limit_affinity` in this scope
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/lib.rs:228:21
|
228 | if let Err(e) = limit_affinity() {
| ^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function `create_state_machine` in this scope
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/lib.rs:269:37
|
269 | let (mut state, mut data) = create_state_machine(test, &mut traces, config, logger);
| ^^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function `execute` in this scope
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/lib.rs:327:5
|
327 | execute(exec_path, &argv, envars.as_slice())
| ^^^^^^^
|
::: /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.19.1/src/unistd.rs:754:1
|
754 | pub fn execve<SA: AsRef<CStr>, SE: AsRef<CStr>>(path: &CStr, args: &[SA], env: &[SE]) -> Result<Infallible> {
| ----------------------------------------------------------------------------------------------------------- similarly named function `execve` defined here
|
help: a function with a similar name exists
|
327 | execve(exec_path, &argv, envars.as_slice())
| ^^^^^^
help: consider importing this function
|
1 | use crate::mac::execute;
|
error[E0599]: no variant or associated item named `PtraceEvent` found for enum `WaitStatus` in the current scope
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/event_log.rs:86:25
|
86 | WaitStatus::PtraceEvent(pid, sig, val) => {
| ^^^^^^^^^^^ variant or associated item not found in `WaitStatus`
error[E0599]: no variant or associated item named `PtraceSyscall` found for enum `WaitStatus` in the current scope
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/event_log.rs:118:25
|
118 | WaitStatus::PtraceSyscall(_) => {
| ^^^^^^^^^^^^^ variant or associated item not found in `WaitStatus`
error[E0308]: mismatched types
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/ptrace_control.rs:36:5
|
35 | pub fn read_address(pid: Pid, address: u64) -> Result<c_long> {
| -------------- expected `std::result::Result<i64, nix::Error>` because of return type
36 | read(pid, address as AddressType)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i64`, found `i32`
|
= note: expected enum `std::result::Result<i64, _>`
found enum `std::result::Result<i32, _>`
error[E0308]: mismatched types
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/ptrace_control.rs:40:49
|
40 | unsafe { write(pid, address as AddressType, data as *mut c_void) }
| ^^^^^^^^^^^^^^^^^^^ expected `i32`, found *-ptr
|
= note: expected type `i32`
found raw pointer `*mut c_void`
error[E0599]: no variant or associated item named `PTRACE_PEEKUSER` found for enum `nix::sys::ptrace::Request` in the current scope
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/ptrace_control.rs:48:22
|
48 | Request::PTRACE_PEEKUSER as RequestType,
| ^^^^^^^^^^^^^^^ variant or associated item not found in `nix::sys::ptrace::Request`
error[E0308]: mismatched types
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/ptrace_control.rs:50:13
|
50 | RIP as *mut c_void,
| ^^^^^^^^^^^^^^^^^^ expected `i8`, found enum `c_void`
|
= note: expected raw pointer `*mut i8`
found raw pointer `*mut c_void`
error[E0308]: mismatched types
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/ptrace_control.rs:51:13
|
51 | ptr::null_mut() as *mut c_void,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found *-ptr
|
= note: expected type `i32`
found raw pointer `*mut c_void`
error[E0308]: mismatched types
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/ptrace_control.rs:55:61
|
55 | Ok(..) | Err(Error::Sys(Errno::UnknownErrno)) => Ok(ret),
| ^^^
| |
| expected `i64`, found `i32`
| help: you can convert an `i32` to an `i64`: `ret.into()`
error[E0308]: `match` arms have incompatible types
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/ptrace_control.rs:56:26
|
54 | / match Errno::result(ret) {
55 | | Ok(..) | Err(Error::Sys(Errno::UnknownErrno)) => Ok(ret),
| | ------- this is found to be of type `std::result::Result<i64, nix::Error>`
56 | | err @ Err(..) => err,
| | ^^^ expected `i64`, found `i32`
57 | | }
| |_____- `match` arms have incompatible types
|
= note: expected enum `std::result::Result<i64, _>`
found enum `std::result::Result<i32, _>`
error[E0599]: no variant or associated item named `PTRACE_POKEUSER` found for enum `nix::sys::ptrace::Request` in the current scope
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/ptrace_control.rs:64:22
|
64 | Request::PTRACE_POKEUSER as _,
| ^^^^^^^^^^^^^^^ variant or associated item not found in `nix::sys::ptrace::Request`
error[E0308]: mismatched types
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/ptrace_control.rs:66:13
|
66 | RIP as *mut c_void,
| ^^^^^^^^^^^^^^^^^^ expected `i8`, found enum `c_void`
|
= note: expected raw pointer `*mut i8`
found raw pointer `*mut c_void`
error[E0308]: mismatched types
--> /Users/mike/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.16.0/src/ptrace_control.rs:67:13
|
67 | pc as *mut c_void,
| ^^^^^^^^^^^^^^^^^ expected `i32`, found *-ptr
|
= note: expected type `i32`
found raw pointer `*mut c_void`
error: aborting due to 30 previous errors
Some errors have detailed explanations: E0308, E0412, E0425, E0432, E0433, E0599.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `cargo-tarpaulin`
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-tarpaulin v0.16.0`, intermediate artifacts can be found at `/var/folders/gk/fshqn16s3m151p4gpc94ctgr0000gn/T/cargo-installr96kIi`
Caused by:
build failed |
Beta Was this translation helpful? Give feedback.
Answered by
xd009642
Apr 24, 2021
Replies: 1 comment
-
So tarpaulin currently only support linux. I'm guessing from the error message you're on mac (or maybe another bsd)? Other systems will start to work once #549 is completed |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mikeumus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So tarpaulin currently only support linux. I'm guessing from the error message you're on mac (or maybe another bsd)? Other systems will start to work once #549 is completed