austinjones / tab-rs

The intuitive, config-driven terminal multiplexer designed for software & systems engineers
MIT License
660 stars 29 forks source link

Can no longer be installed with `cargo install tab` #374

Open nickeb96 opened 1 year ago

nickeb96 commented 1 year ago
error: failed to compile `tab v0.5.7`

Caused by:
  failed to select a version for the requirement `zeroize = "^0.9.3"`
  candidate versions found which didn't match: 1.6.0, 1.5.7, 1.5.6, ...
  location searched: crates.io index
  required by package `dialoguer v0.7.0`
      ... which satisfies dependency `dialoguer = "^0.7"` of package `tab v0.5.7`
  perhaps a crate was updated and forgotten to be re-vendored?
nickeb96 commented 1 year ago

Update:

It also can't be installed with brew install austinjones/taps/tab anymore.

==> Installing austinjones/taps/tab
==> cargo install tab/
Last 15 lines from /Users/Nick/Library/Logs/Homebrew/tab/01.cargo:
   Compiling which v4.0.2
   Compiling toml_edit v0.2.0
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/opt/homebrew/Cellar/rust/1.70.0/lib/rustlib/aarch64-apple-darwin/bin:/opt/homebrew/Library/Homebrew/shims/mac/super:/opt/homebrew/opt/rust/bin:/usr/bin:/bin:/usr/sbin:/sbin" VSLANG="1033" ZERO_AR_DATE="1" "cc" "-arch" "arm64" "/private/tmp/rustcJAhZ4z/symbols.o" "/private/tmp/tab-20230625-31271-1735vbc/tab-rs-0.5.7/target/release/deps/tab-f363be1fa3f1e01e.tab.562d9761-cgu.1.rcgu.o" "-L" "/private/tmp/tab-20230625-31271-1735vbc/tab-rs-0.5.7/target/release/deps" "-L" "/opt/homebrew/Cellar/rust/1.70.0/lib/rustlib/aarch64-apple-darwin/lib" "/opt/homebrew/Cellar/rust/1.70.0/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-78d8acd8481e50c0.rlib" "-framework" "IOKit" "-framework" "CoreFoundation" "-lSystem" "-lc" "-lm" "-L" "/opt/homebrew/Cellar/rust/1.70.0/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/private/tmp/tab-20230625-31271-1735vbc/tab-rs-0.5.7/target/release/deps/tab-f363be1fa3f1e01e" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: Undefined symbols for architecture arm64:
            "_statfs$INODE64", referenced from:
                _$LT$sysinfo..mac..system..System$u20$as$u20$sysinfo..traits..SystemExt$GT$::new_with_specifics::h22f3a7979dc5094e in tab-f363be1fa3f1e01e.tab.562d9761-cgu.1.rcgu.o
                _$LT$core..iter..adapters..flatten..FlatMap$LT$I$C$U$C$F$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$::next::h6f89117358276c00 in tab-f363be1fa3f1e01e.tab.562d9761-cgu.1.rcgu.o
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: could not compile `tab` (bin "tab") due to previous error
error: failed to compile `tab v0.5.7 (/private/tmp/tab-20230625-31271-1735vbc/tab-rs-0.5.7/tab)`, intermediate artifacts can be found at `/private/tmp/tab-20230625-31271-1735vbc/tab-rs-0.5.7/target`

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/austinjones/homebrew-taps/issues
pzmarzly commented 11 months ago

I can confirm these issues on:

Tthere is no linuxbrew for aarch64: Homebrew on Linux is not supported on ARM processors..

I cannot find prebuilt binaries for aarch64 in Github Releases (last release is over 2 years old, too).

If you don't mind @nickeb96, can you try building on x86_64 Linux? (e.g. with https://mac.getutm.app or https://lima-vm.io with custom config)

pzmarzly commented 11 months ago

Checking out repo locally and running cargo build --release works (since cargo install ignores Cargo.lock, while cargo build doesn't).

If you trust me enough:

ghost commented 2 months ago

SOLUTION: cargo install tab --locked