Skip to content

pgo: Invalid instrumentation profile data (bad magic) #49410

Closed
@matthiaskrgr

Description

@matthiaskrgr

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

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions