Open Bug 1796523 Opened 2 years ago Updated 9 months ago

GCC PGO build fails - source locations for function XY have changed, the profile data may be out of date

Categories

(Firefox Build System :: General, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: stransky, Unassigned)

References

(Depends on 1 open bug)

Details

Firefox 106.0 fails to build with GCC/PGO:

128:20.60 /builddir/build/BUILD/firefox-106.0/objdir/dist/include/nsTArray.h:656:15: error: source locations for function ‘static void AssignRangeAlgorithm<IsTriviallyCopyConstructible, IsSameType>::implementation(ElemType*, IndexType, SizeType, const Item*) [with Item = nsTString<char16_t>; ElemType = nsTString<char16_t>; IndexType = long unsigned int; SizeType = long unsigned int; bool IsTriviallyCopyConstructible = false; bool IsSameType = true]’ have changed, the profile data may be out of date [-Werror=coverage-mismatch]
128:20.60 656 | static void implementation(ElemType* aElements, IndexType aStart,

Looks like header files in objdir/dist/include/ have changed between PGO build phases.

Looks like header files in objdir/dist/include/ have changed between PGO build phases.

Can you give more details?

Sure. I'm testing 106.0 clang PGO build right now to see if there's any difference.

(In reply to Martin Stránský [:stransky] (ni? me) from comment #2)

Sure. I'm testing 106.0 clang PGO build right now to see if there's any difference.

Any results form that test?

It's buried deep on my TODO list. Will look at it when I have a chance.

Severity: -- → S3
Priority: -- → P3

Bug 1029346 made so that these warnings are ignored for PGO builds I wonder if that should be done now too?

(In reply to Thaodan from comment #5)

Bug 1029346 made so that these warnings are ignored for PGO builds I wonder if that should be done now too?

I made the warnings ignored but it resulted to slow PGO code so the warnings are actually correct. Still on my TODO list for further investigation.

Flags: needinfo?(stransky)
Depends on: 1839324
Flags: needinfo?(stransky)
See Also: → 1601903
See Also: → 1516803
Flags: needinfo?(stransky)
See Also: → 1840551

It doesn't seem to affect performance.

Flags: needinfo?(stransky)
You need to log in before you can comment on or make changes to this bug.