Skip to content

Doesn't build on OSX M1 (aarch64-apple-darwin) #1

Description

@ShannonMasters

I discovered this session manager after finding your wezterm config on a Reddit post you made, I had to remove the line for cfg.default_prog though as it was preventing wezterm from starting without having sesh installed.

Do you have any plans on sesh supporting mac? currently, it just bombs out on the build with libc.

error[E0308]: mismatched types
   --> shared/src/pty.rs:218:28
    |
218 |             libc::ioctl(0, libc::TIOCSCTTY, 1)
    |             -----------    ^^^^^^^^^^^^^^^ expected `u64`, found `u32`
    |             |
    |             arguments to this function are incorrect
    |
note: function defined here
   --> /Users/********/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.142/src/unix/bsd/mod.rs:631:12
    |
631 |     pub fn ioctl(fd: ::c_int, request: ::c_ulong, ...) -> ::c_int;
    |            ^^^^^
help: you can convert a `u32` to a `u64`
    |
218 |             libc::ioctl(0, libc::TIOCSCTTY.into(), 1)
    |                                           +++++++

For more information about this error, try `rustc --explain E0308`.
error: could not compile `sesh-shared` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `term-sesh v0.1.8 (https://github.com/willothy/sesh#ba0ae84f)`, intermediate artifacts can be found at `/var/folders/xd/clg55w7j4tbcp2hm9sx6h8880000gq/T/cargo-installEcEif9`

libc::ioctl(0, libc::TIOCSCTTY, 1)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions