madhur13490 wrote: Hi @pawosm-arm — heads up that this patch is intermittently breaking PGO bootstrap builds that enable flang.
With `FLANG_PGO_TRAINING_CLANG_COUPLING=ON` (the default), `generate-flang-profdata` and clang's `generate-profdata` both hang off clang-bootstrap-deps, so ninja runs them concurrently. Both clean/regenerate/merge `.profraw` in the same shared directories (<build>/profiles/ and clang/utils/perf-training/). When the flang pipeline clears/rewrites a `.profraw` that clang's `llvm-profdata` merge has mmap'd, the reader walks past the now-truncated file and dies with SIGBUS in `ValueProfData::getValueProfData`. It's timing-dependent, so it passes on some runs and fails on others. I have a potential fix for this and will share soon. cc @ElvinaYakubova https://github.com/llvm/llvm-project/pull/198863 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
