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

cargo fails to download git repo on powerpc #15087

Open
hpckurt opened this issue Jan 21, 2025 · 2 comments
Open

cargo fails to download git repo on powerpc #15087

hpckurt opened this issue Jan 21, 2025 · 2 comments
Labels
A-git Area: anything dealing with git C-bug Category: bug

Comments

@hpckurt
Copy link

hpckurt commented Jan 21, 2025

Trying to build rattler-build on powerpc: https://github.com/prefix-dev/rattler-build

If it was working correctly, cargo update would automatically download and update the local git dependencies. However, instead it results in the following error:

$ RUST_BACKTRACE=1 cargo update
    Updating git repository `https://github.com/wolfv/zip2`
error: failed to load source for dependency `zip`

Caused by:
  Unable to update https://github.com/wolfv/zip2?branch=patched

Caused by:
  object not found - no match for id (8fcb25229346479487823cbe0f9326d74c666d13); class=Odb (9); code=NotFound (-3)

You can git clone the repository with that specific commit ID perfectly fine outside of cargo.

Meta

rustc --version --verbose:

rustc 1.83.0 (90b35a623 2024-11-26)
binary: rustc
commit-hash: 90b35a6239c3d8bdabc530a6a0816f7ff89a0aaf
commit-date: 2024-11-26
host: powerpc-unknown-linux-gnu
release: 1.83.0
LLVM version: 19.1.1

Backtrace from cargo build:

RUST_BACKTRACE=1 cargo build
    Updating git repository `https://github.com/wolfv/zip2`
remote: Enumerating objects: 55146, done.
remote: Counting objects: 100% (3043/3043), done.
remote: Compressing objects: 100% (169/169), done.
remote: Total 55146 (delta 2971), reused 2874 (delta 2874), pack-reused 52103 (from 2)
Receiving objects: 100% (55146/55146), 50.42 MiB | 6.99 MiB/s, done.
Resolving deltas: 100% (8637/8637), done.
From https://github.com/wolfv/zip2
 * [new ref]           8fcb25229346479487823cbe0f9326d74c666d13 -> refs/commit/8fcb25229346479487823cbe0f9326d74c666d13
error: failed to load source for dependency `zip`

Caused by:
  Unable to update https://github.com/wolfv/zip2?branch=patched#8fcb2522

Caused by:
  revspec '8fcb25229346479487823cbe0f9326d74c666d13' not found; class=Reference (4); code=NotFound (-3)
@hpckurt hpckurt added the C-bug Category: bug label Jan 21, 2025
@ehuss ehuss transferred this issue from rust-lang/rust Jan 21, 2025
@epage epage added the A-git Area: anything dealing with git label Jan 21, 2025
@epage
Copy link
Contributor

epage commented Jan 21, 2025

I wasn't able to reproduce it on My x64 Linux system.

Can you try running CARGO_NET_GIT_FETCH_WITH_CLI=true cargo update? Unsure at what step the failure is happening if that will affect it but my hope is this can give us insight into what might be happening.

@hpckurt
Copy link
Author

hpckurt commented Jan 21, 2025

Same exact error:

CARGO_NET_GIT_FETCH_WITH_CLI=true cargo update
    Updating git repository `https://github.com/wolfv/zip2`
error: failed to load source for dependency `zip`

Caused by:
  Unable to update https://github.com/wolfv/zip2?branch=patched

Caused by:
  object not found - no match for id (8fcb25229346479487823cbe0f9326d74c666d13); class=Odb (9); code=NotFound (-3)

I can also verify that the issue doesn't occur on x64 or arm64 (linux). Could it be a 32bit platform issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-git Area: anything dealing with git C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants