Skip to content

Cargo build failure on FreeBSD #188

@denningsrogue

Description

@denningsrogue

Cargo install of bandwhich 0.18.1 on freebsd servers running 12.1 RELEASE p9 results in the following failure:

error[E0308]: mismatched types
--> /home/denningsrogue/.cargo/registry/src/github.com-1ecc6299db9ec823/crossterm_terminal-0.1.0/src/sys/unix.rs:29:43
|
29 | let r = unsafe { ioctl(STDOUT_FILENO, TIOCGWINSZ, &us) };
| ^^^^^^^^^^
| |
| expected u64, found u32
| help: you can convert an u32 to u64: TIOCGWINSZ.into()

error: aborting due to previous error

For more information about this error, try rustc --explain E0308.
error: could not compile crossterm_terminal.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile bandwhich v0.18.1, intermediate artifacts can be found at /tmp/cargo-installySajL6

Caused by:
build failed

Updated 0 packages.
Failed to update bandwhich.

Package Installed Latest Needs update

No git packages need updating.
Overall updated 0 packages.
Overall failed to update 1 package: bandwhich.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions