-
Notifications
You must be signed in to change notification settings - Fork 28
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? #4
Comments
I try to build it on arm64 and here is the error:
|
Compiling lurk-cli v0.2.9 (/project)
error[E0432]: unresolved import `linux_personality::personality`
Error: --> src/main.rs:12:5
|
12 | use linux_personality::personality;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `personality` in the root
error[E0425]: cannot find function `getregs` in module `ptrace`
Error: --> src/main.rs:165:23
|
165 | match ptrace::getregs(child) {
| ^^^^^^^ not found in `ptrace`
error[E0425]: cannot find value `ADDR_NO_RANDOMIZE` in crate `linux_personality`
Error: --> src/main.rs:608:36
|
608 | personality(linux_personality::ADDR_NO_RANDOMIZE).unwrap();
| ^^^^^^^^^^^^^^^^^ not found in `linux_personality`
|
help: consider importing this constant
|
5 | use libc::ADDR_NO_RANDOMIZE;
|
help: if you import `ADDR_NO_RANDOMIZE`, refer to it directly
|
608 - personality(linux_personality::ADDR_NO_RANDOMIZE).unwrap();
608 + personality(ADDR_NO_RANDOMIZE).unwrap();
|
error[E0308]: mismatched types
Error: --> src/main.rs:657:41
|
657 | bytes.write_i64::<LittleEndian>(res).unwrap_or_else(|err| {
| ------------------------- ^^^ expected `i64`, found `i32`
| |
| arguments to this function are incorrect
|
note: associated function defined here
--> /cargo/registry/src/github.com-1ecc6[299](https://github.com/2096779623/lurk/actions/runs/3398907517/jobs/5652300328#step:4:301)db9ec823/byteorder-1.4.3/src/io.rs:1394:8
|
1394 | fn write_i64<T: ByteOrder>(&mut self, n: i64) -> Result<()> {
| ^^^^^^^^^
help: you can convert an `i32` to an `i64`
|
657 | bytes.write_i64::<LittleEndian>(res.into()).unwrap_or_else(|err| {
| +++++++
Some errors have detailed explanations: E0308, E0425, E0432.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `lurk-cli` due to 4 previous errors |
Thanks for opening this issue. Supporting multiple architectures is something I tried to avoid as long as possible since I need to manually create a syscall-table for every single architecture. Additionally, some libraries might not be supported on every architecture/operating system. Implementing this probably requires rewriting a larger portion of my code to allow for a more generic implementation. I will try to tackle this problem as soon as possible. |
Ah! OK so this is a known issue 👍🏻 As yeah I just tried installing on an M1 macOS...
...and was getting this compilation error...
|
This is my m1 build with the 0.3.3 release
|
Thanks for posting your trace! So far, |
@JakWai01 also I have having issue compiling it in macos x86 as well, is that expected? |
I hit a similar issue on a
|
@orhun , I can reproduce by building |
When I run
|
Good point, for a second I forgot I was a collaborator on this repo. Will get to that soon :) |
No compile on Mac M1: Compiling lurk-cli v0.3.7 error[E0432]: unresolved import error[E0432]: unresolved import error[E0432]: unresolved import error[E0432]: unresolved import error[E0432]: unresolved imports |
No description provided.
The text was updated successfully, but these errors were encountered: