euank / pazi

An autojump "zap to directory" helper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pazi fails to build on FreeBSD 14.0-RELEASE with rustc 1.72.0

samuelkarp opened this issue · comments

sam@fenrir:~$ freebsd-version
14.0-RELEASE
sam@fenrir:~$ uname -a
FreeBSD fenrir 14.0-RELEASE FreeBSD 14.0-RELEASE #0 releng/14.0-n265380-f9716eee8ab4: Fri Nov 10 05:57:23 UTC 2023     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
sam@fenrir:~$ sudo pkg install rust
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	rust: 1.72.0

Number of packages to be installed: 1

The process will require 1 GiB more space.
140 MiB to be downloaded.

Proceed with this action? [y/N]: y
[1/1] Fetching rust-1.72.0.pkg: 100%  140 MiB  73.3MB/s    00:02    
Checking integrity... done (0 conflicting)
[1/1] Installing rust-1.72.0...
[1/1] Extracting rust-1.72.0: 100%
sam@fenrir:~$ rustc --version
rustc 1.72.0 (5680fa18f 2023-08-23) (built from a source tarball)
sam@fenrir:~$ cargo install pazi
    Updating crates.io index
  Downloaded pazi v0.4.1
  Downloaded 1 crate (45.4 KB) in 0.42s
  Installing pazi v0.4.1
    Updating crates.io index
  Downloaded atty v0.2.14
  Downloaded serde v1.0.193
  Downloaded addr2line v0.21.0
  Downloaded rustc-demangle v0.1.23
  Downloaded memchr v2.6.4
  Downloaded directories v2.0.2
  Downloaded regex v1.10.2
  Downloaded snailquote v0.2.0
  Downloaded crossbeam-channel v0.3.9
  Downloaded numtoa v0.1.0
  Downloaded libc v0.2.150
  Downloaded clap v2.34.0
  Downloaded backtrace v0.3.69
  Downloaded unicode_categories v0.1.1
  Downloaded textwrap v0.11.0
  Downloaded signal-hook v0.1.17
  Downloaded humantime v1.3.0
  Downloaded vec_map v0.8.2
  Downloaded syn v2.0.39
  Downloaded proc-macro2 v1.0.70
  Downloaded env_logger v0.7.1
  Downloaded unicode-ident v1.0.12
  Downloaded rustix v0.38.28
  Downloaded rmp v0.8.12
  Downloaded ansi_term v0.12.1
  Downloaded serde_derive v1.0.193
  Downloaded regex-syntax v0.8.2
  Downloaded num-traits v0.2.17
  Downloaded fastrand v2.0.1
  Downloaded regex-automata v0.4.3
  Downloaded tempfile v3.8.1
  Downloaded cfg-if v1.0.0
  Downloaded object v0.32.1
  Downloaded byteorder v1.5.0
  Downloaded quick-error v1.2.3
  Downloaded bitflags v1.3.2
  Downloaded unicode-width v0.1.11
  Downloaded paste v1.0.14
  Downloaded gimli v0.28.1
  Downloaded miniz_oxide v0.7.1
  Downloaded lazy_static v1.4.0
  Downloaded log v0.4.20
  Downloaded cc v1.0.83
  Downloaded aho-corasick v1.1.2
  Downloaded which v3.1.1
  Downloaded termion v1.5.6
  Downloaded signal-hook-registry v1.4.1
  Downloaded adler v1.0.2
  Downloaded failure v0.1.8
  Downloaded termcolor v1.4.0
  Downloaded bitflags v2.4.1
  Downloaded errno v0.3.8
  Downloaded cfg-if v0.1.10
  Downloaded quote v1.0.33
  Downloaded rmp-serde v0.13.7
  Downloaded dirs-sys v0.3.7
  Downloaded crossbeam-utils v0.6.6
  Downloaded autocfg v1.1.0
  Downloaded 58 crates (5.0 MB) in 0.65s
   Compiling libc v0.2.150
   Compiling memchr v2.6.4
   Compiling proc-macro2 v1.0.70
   Compiling autocfg v1.1.0
   Compiling paste v1.0.14
   Compiling cfg-if v1.0.0
   Compiling unicode-ident v1.0.12
   Compiling gimli v0.28.1
   Compiling num-traits v0.2.17
   Compiling adler v1.0.2
   Compiling object v0.32.1
   Compiling aho-corasick v1.1.2
   Compiling cc v1.0.83
   Compiling miniz_oxide v0.7.1
   Compiling addr2line v0.21.0
   Compiling backtrace v0.3.69
   Compiling rustc-demangle v0.1.23
   Compiling rustix v0.38.28
   Compiling serde v1.0.193
   Compiling regex-syntax v0.8.2
   Compiling cfg-if v0.1.10
   Compiling errno v0.3.8
   Compiling atty v0.2.14
   Compiling quote v1.0.33
   Compiling bitflags v2.4.1
   Compiling quick-error v1.2.3
   Compiling byteorder v1.5.0
   Compiling regex-automata v0.4.3
   Compiling unicode-width v0.1.11
   Compiling lazy_static v1.4.0
   Compiling textwrap v0.11.0
   Compiling crossbeam-utils v0.6.6
   Compiling rmp v0.8.12
   Compiling humantime v1.3.0
   Compiling syn v2.0.39
   Compiling regex v1.10.2
   Compiling failure v0.1.8
   Compiling signal-hook-registry v1.4.1
   Compiling dirs-sys v0.3.7
   Compiling unicode_categories v0.1.1
   Compiling ansi_term v0.12.1
   Compiling log v0.4.20
   Compiling bitflags v1.3.2
   Compiling fastrand v2.0.1
   Compiling termcolor v1.4.0
   Compiling numtoa v0.1.0
   Compiling vec_map v0.8.2
   Compiling clap v2.34.0
   Compiling termion v1.5.6
   Compiling env_logger v0.7.1
   Compiling rmp-serde v0.13.7
   Compiling tempfile v3.8.1
   Compiling snailquote v0.2.0
   Compiling signal-hook v0.1.17
   Compiling directories v2.0.2
   Compiling which v3.1.1
   Compiling serde_derive v1.0.193
   Compiling crossbeam-channel v0.3.9
   Compiling pazi v0.4.1
error[E0308]: mismatched types
   --> /home/sam/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pazi-0.4.1/src/main.rs:594:30
    |
594 |     unsafe fn get_errno() -> *mut libc::c_int {
    |               ---------      ^^^^^^^^^^^^^^^^ expected `*mut i32`, found `()`
    |               |
    |               implicitly returns `()` as its body has no tail or `return` expression
    |
    = note: expected raw pointer `*mut i32`
                 found unit type `()`

For more information about this error, try `rustc --explain E0308`.
error: could not compile `pazi` (bin "pazi") due to previous error
error: failed to compile `pazi v0.4.1`, intermediate artifacts can be found at `/tmp/cargo-installpJBgF3`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.