rust-lang / rust-lang/rust

Spurious `can't find crate for retina_filtergen`

Open
#139,267 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug S-needs-repro
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

When compiling the retina project, sometimes I get a strange error saying error[E0463]: can't find crate for retina_filtergen. It doesn't happen every time, and when it happens, I have a workaround (I expand every macro imported from this crate and remove filtergen dependency, build the project once, and then restore the original state and it works until next cargo clean) so it seems it is a compiler/cargo bug.

I was not able to find exact reproducing instructions, but I have a machine which it reliably happens on it and I can post more logs and artifacts if it helps. I have no idea why it happens, but if I want to guess, I think compiler/linker fails to build the filtergen crate without a visible error (maybe due its C dependencies) so cargo can't find it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure in the retina project with cargo clean and a normal build, preserving compiler, linker, and Cargo logs. Compare builds involving the filtergen crate and its C dependencies; done means producing a reliable minimal reproduction or identifying a clear failure diagnostic.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.