Skip to content

LLVM ERROR: Broken module found, compilation aborted #32

@zamazan4ik

Description

@zamazan4ik

Hi!

I am trying to test PGO with https://github.com/cloudflare/boringtun . I have the following errors:

... <lines omitted>
Compiling boringtun v0.5.2 (/Users/zamazan4ik/open_source/boringtun/boringtun)
warning: unused variable: `fwmark`===> ] 170/177: clap, boringtun, clap, criterion
   --> boringtun/src/device/peer.rs:107:9
    |
107 |         fwmark: Option<u32>,
    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fwmark`
    |
    = note: `#[warn(unused_variables)]` on by default

warning: 535 warnings emitted========> ] 172/177: boringtun, criterion

   Compiling boringtun-cli v0.5.2 (/Users/zamazan4ik/open_source/boringtun/boringtun-cli)
warning: unused variable: `fwmark`===> ] 174/177: crypto_benches(bench), boringtun(test), boringtun-cli(bin test)
   --> boringtun/src/device/peer.rs:107:9
    |
107 |         fwmark: Option<u32>,
    |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fwmark`
    |
    = note: `#[warn(unused_variables)]` on by default

module flag identifiers must be unique (or of 'require' type)
!"CG Profile"
LLVM ERROR: Broken module found, compilation aborted!
error: could not compile `boringtun-cli`; 3 warnings emitted
warning: build failed, waiting for other jobs to finish...
module flag identifiers must be unique (or of 'require' type)
!"CG Profile"
LLVM ERROR: Broken module found, compilation aborted!
error: could not compile `boringtun`; 26 warnings emitted
module flag identifiers must be unique (or of 'require' type)
!"CG Profile"
LLVM ERROR: Broken module found, compilation aborted!
error: could not compile `boringtun`; 48 warnings emitted
PGO optimized build has failed.
Cargo finished with an error (101)

I did the following steps:

  • Run cargo pgo bench. All is fine here.
  • Run cargo pgo optimize bench. Here I got the errors.

I have tried to google the error but with no success. I didn't dig into LLVM, however.

If you need additional information - I would be happy to provide it :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions