rust-lang / rust-lang/rustfmt

rustfmt 1.5.2 runtime failure

Open
#5,675 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

S-blocked
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
2d 13h
Merged PRs (30d)
24

Description

👋 trying to build the latest release, but run into some build issue. The error log is as below:

runtime issue
==> rustfmt --check ./src/main.rs
Last 15 lines from /Users/rui/Library/Logs/Homebrew/rustfmt/test.02.rustfmt:
2023-01-26 10:32:30 -0500

rustfmt
--check
./src/main.rs

dyld[52306]: Library not loaded: @rpath/librustc_driver-f64ac9ee9a3f0eb4.dylib
  Referenced from: <2CCD3F33-AAEE-3ADE-A78C-AC78D489E170> /opt/homebrew/Cellar/rustfmt/1.5.2/bin/rustfmt
  Reason: tried: '/System/Volumes/Preboot/Cryptexes/OS@rpath/librustc_driver-f64ac9ee9a3f0eb4.dylib' (no such file), '/usr/local/lib/librustc_driver-f64ac9ee9a3f0eb4.dylib' (no such file), '/usr/lib/librustc_driver-f64ac9ee9a3f0eb4.dylib' (no such file, not in dyld cache)
Error: rustfmt: failed

full build log, https://github.com/Homebrew/homebrew-core/actions/runs/4001984607/jobs/6868829982
relates to Homebrew/homebrew-core#121441

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 with the rustfmt 1.5.2 runtime failure and the linked Homebrew build log, focusing on the missing librustc_driver-f64ac9ee9a3f0eb4.dylib reported by dyld. Compare the issue with Homebrew/homebrew-core#121441 to determine the relevant build or packaging context. Done means rustfmt --check ./src/main.rs runs successfully without the missing-library error.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.