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

Apple M2 Max Macbook Pro support #29

Open
tylerchilds opened this issue Jan 17, 2024 · 0 comments
Open

Apple M2 Max Macbook Pro support #29

tylerchilds opened this issue Jan 17, 2024 · 0 comments

Comments

@tylerchilds
Copy link

Very cool project! I'm using rust-9p to explore 9p after reading about plan9 online for so long.

In my plan98 project, i'm using the README cargo run --release 'tcp!0.0.0.0!8888' to expose my project files as a metaphorical thumb drive, with the idea that the user can remix their own web client, without needing a new mental model, if they already can edit files on a thumb drive.

This works on all the linux distros i've hopped before, but i'm doing quality assurance and testing on an macbook for the first time, M2 specifically, if that matters, and getting this error.

tychi@tychis-MBP .plan98 % deno task start-server
Task start-server plan98client=$(pwd)/client; cd rust-9p-master/example/unpfs && cargo run --release 'tcp!0.0.0.0!8888' $plan98client
   Compiling rust-9p v0.0.1 (/Users/tychi/.plan98/rust-9p-master)
error[E0308]: mismatched types
   --> /Users/tychi/.plan98/rust-9p-master/src/fcall.rs:328:21
    |
328 |             blocks: buf.blocks(),
    |                     ^^^^^^^^^^^^ expected `u64`, found `u32`

error[E0308]: mismatched types
   --> /Users/tychi/.plan98/rust-9p-master/src/fcall.rs:329:20
    |
329 |             bfree: buf.blocks_free(),
    |                    ^^^^^^^^^^^^^^^^^ expected `u64`, found `u32`

error[E0308]: mismatched types
   --> /Users/tychi/.plan98/rust-9p-master/src/fcall.rs:330:21
    |
330 |             bavail: buf.blocks_available(),
    |                     ^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `u32`

error[E0308]: mismatched types
   --> /Users/tychi/.plan98/rust-9p-master/src/fcall.rs:331:20
    |
331 |             files: buf.files(),
    |                    ^^^^^^^^^^^ expected `u64`, found `u32`

error[E0308]: mismatched types
   --> /Users/tychi/.plan98/rust-9p-master/src/fcall.rs:332:20
    |
332 |             ffree: buf.files_free(),
    |                    ^^^^^^^^^^^^^^^^ expected `u64`, found `u32`

For more information about this error, try `rustc --explain E0308`.
error: could not compile `rust-9p` (lib) due to 5 previous errors

happy to help troubleshoot on my end. i can code, primarily javascript, but i've got a rust tool chain installed, just no idea where to start to open a PR myself.

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

No branches or pull requests

1 participant