Rustc fails to compile project with PGO
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
I tried to optimize the Zen project (source code details are below) with PGO with cargo-pgo.
I expected to see this happen:
The project compiles with instrumentation PGO successfully.
Instead, this happened:
During the compilation, I get the following error: https://gist.github.com/zamazan4ik/176517dd1d5bb7dc07c92e13016dfd8d . Switching C/C++ compilers or using nightly instead of stable does not help - the error remains the same.
In https://github.com/Kobzol/cargo-pgo/issues/44 was found that the error remains if we use raw Rustc compiler with proper PGO flags instead of cargo-pgo.
Meta
rustc --version --verbose:
rustc 1.75.0 (82e1608df 2023-12-21)
binary: rustc
commit-hash: 82e1608dfa6e0b5569232559e3d385fea5a93112
commit-date: 2023-12-21
host: x86_64-unknown-linux-gnu
release: 1.75.0
LLVM version: 17.0.6
rustc +nightly --version --verbose:
rustc 1.77.0-nightly (a2d9d73e6 2024-01-10)
binary: rustc
commit-hash: a2d9d73e608f1b24eba840c4fd2d68dbe3b65e01
commit-date: 2024-01-10
host: x86_64-unknown-linux-gnu
release: 1.77.0-nightly
LLVM version: 17.0.6
Zen version: master branch, 6bd9c0138c6c514246f7dfe9ec389f97f42eeed6 commit. Project repo: https://github.com/gorules/zen
If you need additional information about the ticket - feel free to ping me, I will try my best to help with resolving the issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure using rustc with the PGO flags described in the cargo-pgo issue and compare stable with nightly. Inspect the linked error gist and the Zen commit details; done means identifying the compiler failure and making the project compile successfully with instrumentation PGO.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100