Closed
Description
In vectordotdev/vector#15631 (comment) I tried to optimize Vector with LTO + PGO enabled. But during the optimization phase (done with cargo pgo optimize
) I get the following error: Kobzol/cargo-pgo#32 (comment) . I am not the only person with this error - llvm/llvm-project#57501 (comment) (@kevincox probably can provide more details about they project).
The only way to avoid the bug is disable LTO completely (switching from Fat to Thin mode does not help).
I expected to see this happen: Vector compiles successfully with LTO and PGO enabled.
Instead, this happened: Vector failed to compile with LTO + PGO.
Meta
rustc --version --verbose
(from https://github.com/vectordotdev/vector/blob/master/rust-toolchain.toml):
1.71.1
Other links:
- Possibly related bug in LLVM (but I am not sure): [15 regression] "module flag identifiers must be unique (or of 'require' type) llvm/llvm-project#57501
- A discussion in
cargo-pgo
: LLVM ERROR: Broken module found, compilation aborted Kobzol/cargo-pgo#32