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

Rustc fails to compile project with PGO #119848

Open
zamazan4ik opened this issue Jan 11, 2024 · 0 comments
Open

Rustc fails to compile project with PGO #119848

zamazan4ik opened this issue Jan 11, 2024 · 0 comments
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@zamazan4ik
Copy link
Contributor

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 Kobzol/cargo-pgo#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.

@zamazan4ik zamazan4ik added the C-bug Category: This is a bug. label Jan 11, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jan 11, 2024
@saethlin saethlin added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants