I am not completely sure but I think this only shows up in “release” mode, in other words when configure has been run like this:
./configure --enable-optimizations --with-lto
Some source code changes appear to cause this compiler error to show up.
Rebuilding with profile guided optimizations:
Python/bltinmodule.c: In function ‘_PyBuiltin_Init’:
Python/bltinmodule.c:3170:1: error: source locations for function ‘_PyBuiltin_Init’ have changed, the profile data may be out of date [-Werror=coverage-mismatch]
3170 | _PyBuiltin_Init(PyInterpreterState *interp)
| ^~~~~~~~~~~~~~~
Is there a convenient way to fix it?
So far all I have been able to do is do perform a make clean followed by re-running the configure step.