Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm64 support #1047

Closed
juliays opened this issue Jul 9, 2022 · 1 comment
Closed

arm64 support #1047

juliays opened this issue Jul 9, 2022 · 1 comment
Assignees

Comments

@juliays
Copy link

juliays commented Jul 9, 2022

Describe the bug

Mac with M1Chip, Installed Focal Ubuntu Desktop and tried running the following -

"cargo install cargo-tarpaulin" in terminal

received the following errors -

error[E0412]: cannot find type Persona in this scope
--> /home/songy/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.20.1/src/process_handling/linux.rs:25:26
|
25 | const ADDR_NO_RANDOMIZE: Persona = 0x004_0000;
| ^^^^^^^ not found in this scope

error[E0412]: cannot find type Persona in this scope
--> /home/songy/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.20.1/src/process_handling/linux.rs:26:20
|
26 | const GET_PERSONA: Persona = 0xFFFF_FFFF;
| ^^^^^^^ not found in this scope

error[E0412]: cannot find type Persona in this scope
--> /home/songy/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.20.1/src/process_handling/linux.rs:75:25
|
75 | fn personality(persona: Persona) -> nix::Result<c_int> {
| ^^^^^^^ not found in this scope

error[E0425]: cannot find value INT in this scope
--> /home/songy/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-tarpaulin-0.20.1/src/process_handling/breakpoint.rs:60:21
|
60 | intdata |= (INT << self.shift) as i64;
| ^^^ not found in this scope

Some errors have detailed explanations: E0412, E0425.
For more information about an error, try rustc --explain E0412.
error: could not compile cargo-tarpaulin due to 4 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile cargo-tarpaulin v0.20.1, intermediate artifacts can be found at /tmp/cargo-installkkBgJi

@xd009642
Copy link
Owner

So arm64 support will come via #549, ptrace is beyond broken in MacOS so previous experiments to get it work went nowhere. So if you follow that issue I'll close this one as a duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants