Bug 15324

Summary: nativesdk-python3 doesn't support PGO
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ross Burton <ross.burton>
Component: devtools / tool chainAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod
Version: 4.3   
Target Milestone: 5.0 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Ross Burton 2023-12-14 14:03:19 UTC
When Python3 was upgraded to 3.7.2 the profile-guided-optimisation support was moved to target-specific, which meant the buildtools which were meant to be building PGO'd python binaries no longer did.

Also of note, the PGO support is removed in the provisional python 3.12 upgrade as upstream changed the rules and this can be added back.

This thread leads to interesting thoughts involving "what does MACHINE_FEATURES mean in a nativesdk configuration" which are a bigger problem.
Comment 1 Randy MacLeod 2023-12-14 15:48:46 UTC
broken since 2019!
Comment 2 Ross Burton 2024-01-18 16:10:09 UTC
Fixed with 96a9964d6071dc614cec06a4f0712e257de2bc8b.
Comment 3 Ross Burton 2024-01-23 10:27:29 UTC
Forgot to actually close.