Closed
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