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

Can no longer be installed with cargo install tab #374

Open
nickeb96 opened this issue Jun 25, 2023 · 4 comments
Open

Can no longer be installed with cargo install tab #374

nickeb96 opened this issue Jun 25, 2023 · 4 comments

Comments

@nickeb96
Copy link

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
Copy link
Author

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
Copy link

I can confirm these issues on:

  • macOS aarch64 homebrew
  • macOS aarch64 cargo
  • Fedora aarch64 cargo

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
Copy link

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
Copy link

ghost commented Aug 24, 2024

SOLUTION: cargo install tab --locked

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

2 participants