-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Hi, I was trying to use pgo to build fd-find as a test but I'm running into an error:
warning: /tmp/fd.pgo: Invalid instrumentation profile data (bad magic)
git clone https://github.com/sharkdp/fd
cd fd
RUSTFLAGS="-Z pgo-gen=/tmp/fd.pgo -C target-cpu=native" cargo build --release
./target/release/fd
RUSTFLAGS="-Z pgo-use=/tmp/fd.pgo -C target-cpu=native" cargo build --release
[...]
Compiling textwrap v0.9.0
Compiling clap v2.31.1
Compiling ctrlc v3.1.0
Compiling regex v0.2.8
Compiling fd-find v7.0.0 (file:///tmp/fd)
Compiling globset v0.3.0
warning: /tmp/fd.pgo: Invalid instrumentation profile data (bad magic)
Compiling ignore v0.4.1
warning: /tmp/fd.pgo: Invalid instrumentation profile data (bad magic)
Finished release [optimized] target(s) in 87.91 secs
cc @emilio
Metadata
Metadata
Assignees
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.