Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lots of warnings when using the pgo workflow (but seems to work regardless) #16

Open
VorpalBlade opened this issue May 8, 2024 · 1 comment

Comments

@VorpalBlade
Copy link

I tried using the pgo workflow described in the README and I got lots of these warnings:

cargo +nightly pgo build# Run program several times with different flagscargo +nightly remark wrap -- pgo optimize
[2024-05-08T18:18:53Z INFO  cargo_remark::cargo] Optimization remarks will be stored into /home/arvid/src/paketkoll/target/remarks/yaml.
[2024-05-08T18:18:53Z INFO  cargo_pgo::pgo::optimize] Found 1 PGO profile file with total size 1.91 MiB at /home/arvid/src/paketkoll/target/pgo-profiles.
[2024-05-08T18:18:53Z INFO  cargo_pgo::pgo::optimize] Merged PGO profile(s) to /home/arvid/src/paketkoll/target/pgo-profiles/merged-0c29f0e423eb8ac96b7efb94a25a0c9d33ec76a4a414563a4ddf7b0c043dfdd6.profdata.
   Compiling cfg-if v1.0.0
   Compiling memchr v2.7.2
   Compiling libc v0.2.154
   Compiling crossbeam-utils v0.8.19
   Compiling regex-syntax v0.8.3
   Compiling typenum v1.17.0
   Compiling lock_api v0.4.12
   Compiling scopeguard v1.2.0
   Compiling generic-array v0.14.7
   Compiling log v0.4.21
   Compiling rayon-core v1.12.1
   Compiling smallvec v1.13.2
   Compiling utf8parse v0.2.1
   Compiling adler v1.0.2
   Compiling hashbrown v0.14.5
   Compiling once_cell v1.19.0
   Compiling miniz_oxide v0.7.2
   Compiling getrandom v0.2.14
   Compiling crossbeam-epoch v0.9.18
   Compiling aho-corasick v1.1.3
   Compiling anstyle-parse v0.2.4
   Compiling parking_lot_core v0.9.10
   Compiling ahash v0.8.11
   Compiling const-random v0.1.18
   Compiling colorchoice v1.0.1
   Compiling is_terminal_polyfill v1.70.0
   Compiling either v1.11.0
   Compiling crossbeam-deque v0.8.5
   Compiling zerocopy v0.7.32
   Compiling anstyle-query v1.0.3
   Compiling anstyle v1.0.7
   Compiling gimli v0.28.1
   Compiling crypto-common v0.1.6
   Compiling block-buffer v0.10.4
   Compiling dlv-list v0.5.2
   Compiling anstream v0.6.14
   Compiling crc32fast v1.4.0
   Compiling backtrace v0.3.71
   Compiling libz-ng-sys v1.1.15
   Compiling object v0.32.2
   Compiling spin v0.9.8
   Compiling same-file v1.0.6
   Compiling rayon v1.10.0
   Compiling siphasher v0.3.11
   Compiling rustc-demangle v0.1.23
   Compiling anyhow v1.0.82
   Compiling walkdir v2.5.0
   Compiling ring v0.17.8
   Compiling phf_shared v0.11.2
   Compiling hashbrown v0.13.2
   Compiling ordered-multimap v0.7.3
   Compiling regex-automata v0.4.6
   Compiling addr2line v0.21.0
   Compiling digest v0.10.7
   Compiling castaway v0.2.2
   Compiling itoa v1.0.11
   Compiling static_assertions v1.1.0
   Compiling untrusted v0.9.0
   Compiling strsim v0.11.1
   Compiling trim-in-place v0.1.7
   Compiling clap_lex v0.7.0
   Compiling ryu v1.0.17
   Compiling rust-ini v0.21.0
   Compiling compact_str v0.7.1
   Compiling md-5 v0.10.6
   Compiling clap_builder v4.5.2
   Compiling flate2 v1.0.30
   Compiling derive_builder v0.20.0
   Compiling phf v0.11.2
   Compiling strum v0.26.2
   Compiling dashmap v5.5.3
   Compiling flume v0.11.0
   Compiling num_cpus v1.16.0
   Compiling humantime v2.1.0
   Compiling bitflags v2.5.0
   Compiling faster-hex v0.9.0
   Compiling lasso v0.7.2
   Compiling paketkoll v0.2.1 (/home/arvid/src/paketkoll/crates/paketkoll)
   Compiling os_info v3.8.2
   Compiling proc-exit v2.0.1
   Compiling clap v4.5.4
   Compiling regex v1.10.4
   Compiling bstr v1.9.1
   Compiling env_filter v0.1.0
   Compiling env_logger v0.11.3
   Compiling globset v0.4.14
   Compiling ignore v0.4.22
   Compiling paketkoll_core v0.3.1 (/home/arvid/src/paketkoll/crates/paketkoll_core)
warning: paketkoll_core.6e87d95d2b793779-cgu.15: function control flow change detected (hash mismatch) _ZN73_$LT$flate2..gz..bufread..GzDecoder$LT$R$GT$$u20$as$u20$std..io..Read$GT$4read17hc55eccc1626c5afaE Hash = 586548702968579376 up to 595784 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.00: function control flow change detected (hash mismatch) _ZN52_$LT$E$u20$as$u20$anyhow..context..ext..StdError$GT$11ext_context17h9c53bbd4a70340aeE Hash = 414921809503261648 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.00: function control flow change detected (hash mismatch) _ZN5rayon4iter8plumbing24bridge_producer_consumer6helper17h0b427edce27bc99dE Hash = 86095772810486867 up to 13521 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.00: function control flow change detected (hash mismatch) _ZN5rayon4iter8plumbing24bridge_producer_consumer6helper17h4257c25c5ac9b5c0E Hash = 130783511978690181 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.00: function control flow change detected (hash mismatch) _ZN5rayon4iter8plumbing24bridge_producer_consumer6helper17h9075ecb8c4e3a2a9E Hash = 86095772810486867 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.00: function control flow change detected (hash mismatch) _ZN5rayon4iter8plumbing24bridge_producer_consumer6helper17ha02c44c7b0180c7fE Hash = 130783511978690181 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.00: function control flow change detected (hash mismatch) _ZN5rayon4iter8plumbing24bridge_producer_consumer6helper17hd1e8de0628b843bdE Hash = 749168443531256480 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.00: function control flow change detected (hash mismatch) _ZN5rayon4iter8plumbing24bridge_producer_consumer6helper17hf7222160846e8445E Hash = 86095772810486867 up to 24655 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.00: function control flow change detected (hash mismatch) _ZN5rayon4iter8plumbing34bridge_unindexed_producer_consumer17h37dc673bc46ae596E Hash = 1094249771710892151 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.00: function control flow change detected (hash mismatch) _ZN5rayon4iter8plumbing34bridge_unindexed_producer_consumer17h6075f9f8a218ca0cE Hash = 1094249771710892151 up to 283 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.00: function control flow change detected (hash mismatch) _ZN5rayon4iter8plumbing34bridge_unindexed_producer_consumer17h88dcc2adcc9b6ad7E Hash = 560555357870710466 up to 152 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.00: function control flow change detected (hash mismatch) _ZN5rayon4iter8plumbing34bridge_unindexed_producer_consumer17h8cace706472aedcfE Hash = 1094249771710892151 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.00: function control flow change detected (hash mismatch) _ZN5rayon4iter8plumbing34bridge_unindexed_producer_consumer17h9f3a44ea7fda9f91E Hash = 1094249771710892151 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.00: function control flow change detected (hash mismatch) _ZN5rayon4iter8plumbing34bridge_unindexed_producer_consumer17hcf17dd494c8179f3E Hash = 1094249771710892151 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.00: function control flow change detected (hash mismatch) _ZN14paketkoll_core7backend4arch16ArchLinuxBuilder5build17he81e33df376ff438E Hash = 206367538830741258 up to 42 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.01: function control flow change detected (hash mismatch) _ZN14paketkoll_core7backend3deb6divert13get_diverions17he267b4906a06deaaE Hash = 241197948464525337 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.14: function control flow change detected (hash mismatch) _ZN3std2io7BufRead9read_line17h8052d10e90b4ff24E Hash = 753202733871474337 up to 5339537 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.14: function control flow change detected (hash mismatch) _ZN5alloc4sync16Arc$LT$T$C$A$GT$9drop_slow17h460815f9ab6ea650E Hash = 135188632888145750 up to 9 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.14: function control flow change detected (hash mismatch) _ZN82_$LT$std..io..Split$LT$B$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17hee4bfc522001b155E Hash = 1089701712853099644 up to 8597867 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.14: function control flow change detected (hash mismatch) _ZN82_$LT$std..io..buffered..bufreader..BufReader$LT$R$GT$$u20$as$u20$std..io..Read$GT$14read_to_string17haa9b1e40b77dd5bfE Hash = 181107446407378136 up to 7 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.14: function control flow change detected (hash mismatch) _ZN96_$LT$rayon..iter..collect..consumer..CollectResult$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$4drop17h2e2dd6acf6d2820cE Hash = 1096621590113966630 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.02: function control flow change detected (hash mismatch) _ZN14paketkoll_core5mtree6parser9MTreeLine10from_bytes17h51fb70379156e9aeE Hash = 713730601394704948 up to 930969035 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.03: function control flow change detected (hash mismatch) _ZN78_$LT$paketkoll_core..types..files..FileEntry$u20$as$u20$core..clone..Clone$GT$5clone17h1d81acb6bf85fd8dE Hash = 567991000171261333 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.13: function control flow change detected (hash mismatch) _ZN5rayon4iter16ParallelIterator8for_each17h6e9296cde4007fe9E Hash = 742261418966908927 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.13: function control flow change detected (hash mismatch) _ZN79_$LT$rayon..vec..IntoIter$LT$T$GT$$u20$as$u20$rayon..iter..ParallelIterator$GT$15drive_unindexed17h75b92c35decd48c7E Hash = 742261418966908927 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.13: function control flow change detected (hash mismatch) _ZN79_$LT$rayon..vec..IntoIter$LT$T$GT$$u20$as$u20$rayon..iter..ParallelIterator$GT$15drive_unindexed17h929e4fe397e2fb5cE Hash = 742261418966908927 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.13: function control flow change detected (hash mismatch) _ZN86_$LT$alloc..vec..into_iter..IntoIter$LT$T$C$A$GT$$u20$as$u20$core..ops..drop..Drop$GT$4drop17h25fcb347f11d0490E Hash = 599005164117039111 up to 861 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.13: function control flow change detected (hash mismatch) _ZN86_$LT$alloc..vec..into_iter..IntoIter$LT$T$C$A$GT$$u20$as$u20$core..ops..drop..Drop$GT$4drop17hdc2ffbc8d2131766E Hash = 287486626156975208 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.13: function control flow change detected (hash mismatch) _ZN97_$LT$rayon..iter..par_bridge..IterBridge$LT$Iter$GT$$u20$as$u20$rayon..iter..ParallelIterator$GT$15drive_unindexed17h29fcaaf4be348663E Hash = 421769329456194452 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.13: function control flow change detected (hash mismatch) _ZN97_$LT$rayon..iter..par_bridge..IterBridge$LT$Iter$GT$$u20$as$u20$rayon..iter..ParallelIterator$GT$15drive_unindexed17h4e956b1b67f19cd0E Hash = 421769329456194452 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.13: function control flow change detected (hash mismatch) _ZN97_$LT$rayon..iter..par_bridge..IterBridge$LT$Iter$GT$$u20$as$u20$rayon..iter..ParallelIterator$GT$15drive_unindexed17h5317c0f7552ead8bE Hash = 927205938871911214 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.13: function control flow change detected (hash mismatch) _ZN97_$LT$rayon..iter..par_bridge..IterBridge$LT$Iter$GT$$u20$as$u20$rayon..iter..ParallelIterator$GT$15drive_unindexed17h5ed6bfa69fb2f172E Hash = 927205938871911214 up to 20 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.13: function control flow change detected (hash mismatch) _ZN97_$LT$rayon..iter..par_bridge..IterBridge$LT$Iter$GT$$u20$as$u20$rayon..iter..ParallelIterator$GT$15drive_unindexed17hcd7bcbc4cd4a38eeE Hash = 421769329456194452 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.13: function control flow change detected (hash mismatch) _ZN97_$LT$rayon..iter..par_bridge..IterBridge$LT$Iter$GT$$u20$as$u20$rayon..iter..ParallelIterator$GT$15drive_unindexed17he09f1438137b05e9E Hash = 421769329456194452 up to 28 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.12: function control flow change detected (hash mismatch) _ZN101_$LT$dashmap..iter..OwningIter$LT$K$C$V$C$S$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17h166e66371fdb800cE Hash = 303685789965690159 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.12: function control flow change detected (hash mismatch) _ZN93_$LT$bitflags..iter..IterNames$LT$B$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17hda871570fceb849fE Hash = 753202733260210112 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.12: function control flow change detected (hash mismatch) _ZN9hashbrown3map28HashMap$LT$K$C$V$C$S$C$A$GT$6insert17h10f174a1440510e1E Hash = 124721840405975911 up to 6699668 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.12: function control flow change detected (hash mismatch) _ZN9hashbrown3map28HashMap$LT$K$C$V$C$S$C$A$GT$6insert17h5283b36adec310edE Hash = 118056773339408714 up to 0 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.12: function control flow change detected (hash mismatch) _ZN9hashbrown3map28HashMap$LT$K$C$V$C$S$C$A$GT$6insert17h753d58b2c6e2c7f3E Hash = 124721840405975911 up to 206682 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.12: function control flow change detected (hash mismatch) _ZN9hashbrown3map28HashMap$LT$K$C$V$C$S$C$A$GT$6insert17h9da2ee3c406c9ed8E Hash = 623493559347659550 up to 3564271 count discarded

warning: paketkoll_core.6e87d95d2b793779-cgu.12: function control flow change detected (hash mismatch) _ZN9hashbrown3map28HashMap$LT$K$C$V$C$S$C$A$GT$6insert17haaf4e91f7d35c961E Hash = 124721840405975911 up to 206929 count discarded

[...]

warning: paketkoll.826f228dbd3c16-cgu.09: function control flow change detected (hash mismatch) _ZN15crossbeam_deque5deque15Worker$LT$T$GT$3pop17h47b235e7ebdc760aE Hash = 783548774007698124 up to 2974 count discarded

warning: paketkoll.826f228dbd3c16-cgu.09: function control flow change detected (hash mismatch) _ZN15crossbeam_deque5deque16Stealer$LT$T$GT$5steal17h44b5841898e0959cE Hash = 790715555148733886 up to 1660 count discarded

warning: paketkoll.826f228dbd3c16-cgu.08: function control flow change detected (hash mismatch) _ZN3std9panicking3try17h328e9e2ed53ba907E Hash = 742261418966908927 up to 0 count discarded   

warning: paketkoll.826f228dbd3c16-cgu.08: function control flow change detected (hash mismatch) _ZN3std9panicking3try17h6f447b3da7b5b9c9E Hash = 798733566363835757 up to 0 count discarded 

warning: paketkoll.826f228dbd3c16-cgu.08: function control flow change detected (hash mismatch) _ZN3std9panicking3try17h328e9e2ed53ba907E Hash = 742261418966908927 up to 0 count discarded   

warning: paketkoll.826f228dbd3c16-cgu.08: function control flow change detected (hash mismatch) _ZN3std9panicking3try17h6f447b3da7b5b9c9E Hash = 798733566363835757 up to 0 count discarded   

warning: 250 warnings emitted========> ] 173/174: paketkoll(bin)                                                                                                                              

    Finished `release` profile [optimized] target(s) in 4m 44s
[2024-05-08T18:23:37Z INFO  cargo_pgo::pgo::optimize] PGO-optimized binary paketkoll built successfully.
PGO optimized build successfully finished.
[2024-05-08T18:23:37Z WARN  cargo_pgo::pgo::optimize] PGO profile data was not found for 754 functions.
[2024-05-08T18:23:37Z INFO  cargo_remark::cargo] Optimization remarks sucessfully generated
[2024-05-08T18:23:55Z INFO  cargo_remark::utils::timing] Remark loading (17.56s)
[2024-05-08T18:23:55Z INFO  cargo_remark::utils::timing] Rendering (0.04s)
[2024-05-08T18:23:55Z INFO  cargo_remark] Website built into /home/arvid/src/paketkoll/target/remarks/web.
[2024-05-08T18:23:55Z INFO  cargo_remark::utils] Open /home/arvid/src/paketkoll/target/remarks/web/index.html in a browser to see the results.

Not sure what is going on here. The feature does seem to work though from what I can tell.

rustc --version  
rustc 1.78.0 (9b00956e5 2024-04-29)rustc +nightly --version          
rustc 1.80.0-nightly (7d83a4c13 2024-05-06)cargo remark --version                    
cargo-remark-remark 0.1.2cat ~/.cargo/config.toml
[build]
rustc-wrapper = "/usr/bin/sccache"
[target.x86_64-unknown-linux-gnu]
linker = "/usr/bin/clang"
#rustflags = ["-C", "link-arg=--ld-path=/usr/bin/mold"]

Mold is temporarily commented out due to Kobzol/cargo-pgo#56

@Kobzol
Copy link
Owner

Kobzol commented May 9, 2024

Yeah, these warnings sometimes appear when you use PGO. It shouldn't happen, since the code isn't changing, but it happens regardless. Maybe it's some interaction with the enabled remarks 🤷‍♂️ I don't know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants