Bug 15324 - nativesdk-python3 doesn't support PGO
Summary: nativesdk-python3 doesn't support PGO
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 4.3
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 5.0 M2
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2023-12-14 14:03 UTC by Ross Burton
Modified: 2024-01-23 10:27 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.