paradigmxyz / homebrew-brew

A homebrew tap
12 stars 4 forks source link

bug: failure when installing reth with homebrew #14

Closed varunsrin closed 1 year ago

varunsrin commented 1 year ago

While installing reth via homebrew on an M1 using brew install paradigmxyz/brew/reth, it failed citing an authentication error when downloading the repository.

Full trace here:

==> Fetching paradigmxyz/brew/reth
==> Cloning https://github.com/paradigmxyz/reth.git
Cloning into '/Users/varun/Library/Caches/Homebrew/reth--git'...
==> Checking out tag v0.1.0-alpha.4
HEAD is now at b2b2cbed chore: bump version .alpha4 (#3808)
==> Installing reth from paradigmxyz/brew
==> Installing dependencies for paradigmxyz/brew/reth: openssl@3, xz, z3, llvm and rust
==> Installing paradigmxyz/brew/reth dependency: openssl@3
==> Pouring openssl@3--3.1.2.arm64_ventura.bottle.1.tar.gz
🍺  /opt/homebrew/Cellar/openssl@3/3.1.2: 6,495 files, 28.4MB
==> Installing paradigmxyz/brew/reth dependency: xz
==> Pouring xz--5.4.4.arm64_ventura.bottle.tar.gz
🍺  /opt/homebrew/Cellar/xz/5.4.4: 163 files, 2.6MB
==> Installing paradigmxyz/brew/reth dependency: z3
==> Pouring z3--4.12.2.arm64_ventura.bottle.tar.gz
🍺  /opt/homebrew/Cellar/z3/4.12.2: 118 files, 30.6MB
==> Installing paradigmxyz/brew/reth dependency: llvm
==> Pouring llvm--16.0.6.arm64_ventura.bottle.tar.gz
🍺  /opt/homebrew/Cellar/llvm/16.0.6: 6,764 files, 1.5GB
==> Installing paradigmxyz/brew/reth dependency: rust
==> Pouring rust--1.71.0.arm64_ventura.bottle.tar.gz
🍺  /opt/homebrew/Cellar/rust/1.71.0: 38,861 files, 1.2GB
==> Installing paradigmxyz/brew/reth
==> cargo install --bin reth --profile maxperf --features jemalloc
Last 15 lines from /Users/varun/Library/Logs/Homebrew/reth/01.cargo:
  Unable to update https://github.com/paradigmxyz/uint#38f565ff

Caused by:
  failed to clone into: /Users/varun/Library/Caches/Homebrew/cargo_cache/git/db/uint-10eb28276571b47e

Caused by:
  failed to authenticate when downloading repository

  * attempted to find username/password via git's `credential.helper` support, but failed

  if the git CLI succeeds then `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
  failed to acquire username/password from local configuration

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/paradigmxyz/homebrew-brew/issues
onbjerg commented 1 year ago

Most likely the dependency was using a patch that no longer exists. Please try again, it works on alpha 6 for me

varunsrin commented 1 year ago

Just re-ran and it failed with

==> Fetching paradigmxyz/brew/reth
==> Cloning https://github.com/paradigmxyz/reth.git
Updating /Users/varun/Library/Caches/Homebrew/reth--git
From https://github.com/paradigmxyz/reth
 * [new tag]           v0.1.0-alpha.6 -> v0.1.0-alpha.6
==> Checking out tag v0.1.0-alpha.6
Previous HEAD position was b2b2cbed chore: bump version .alpha4 (#3808)
HEAD is now at 88aea631 release: 0.1.0-alpha.6 (#4132)
HEAD is now at 88aea631 release: 0.1.0-alpha.6 (#4132)
==> Installing reth from paradigmxyz/brew
==> cargo install --bin reth --profile maxperf --features jemalloc
Last 15 lines from /Users/varun/Library/Logs/Homebrew/reth/01.cargo:
  running: ZERO_AR_DATE="1" "ar" "cq" "/private/tmp/reth-20230811-59820-bzq7aa/target/maxperf/build/c-kzg-7a00a87d265f44bf/out/libckzg.a" "/private/tmp/reth-20230811-59820-bzq7aa/target/maxperf/build/c-kzg-7a00a87d265f44bf/out/20a9e765d2c86870-c_kzg_4844.o"
  exit status: 0
  running: "ar" "s" "/private/tmp/reth-20230811-59820-bzq7aa/target/maxperf/build/c-kzg-7a00a87d265f44bf/out/libckzg.a"
  exit status: 0
  cargo:rustc-link-lib=static=ckzg
  cargo:rustc-link-search=native=/private/tmp/reth-20230811-59820-bzq7aa/target/maxperf/build/c-kzg-7a00a87d265f44bf/out
  cargo:rustc-link-lib=static=blst

  --- stderr
  Using LIB_PREFIX=ckzg
  Using FIELD_ELEMENTS_PER_BLOB=4096
  /Users/varun/Library/Caches/Homebrew/cargo_cache/git/checkouts/c-kzg-4844-87b9b7bbf5cb76f8/13cec82/src/c_kzg_4844.h:27:10: fatal error: 'stdio.h' file not found
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ClangDiagnostic("/Users/varun/Library/Caches/Homebrew/cargo_cache/git/checkouts/c-kzg-4844-87b9b7bbf5cb76f8/13cec82/src/c_kzg_4844.h:27:10: fatal error: 'stdio.h' file not found\n")', /Users/varun/Library/Caches/Homebrew/cargo_cache/git/checkouts/c-kzg-4844-87b9b7bbf5cb76f8/13cec82/bindings/rust/build.rs:267:10
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: failed to compile `reth v0.1.0-alpha.6 (/private/tmp/reth-20230811-59820-bzq7aa/bin/reth)`, intermediate artifacts can be found at `/private/tmp/reth-20230811-59820-bzq7aa/target`

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/paradigmxyz/homebrew-brew/issues