Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't apply PGO patch
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
L1NTHALO
n00b
n00b


Joined: 27 Aug 2024
Posts: 22

PostPosted: Tue Nov 05, 2024 2:21 pm    Post subject: Can't apply PGO patch Reply with quote

Hi,

trying to apply the CachyOS PGO patch listed on the wiki https://wiki.gentoo.org/wiki/Kernel/Optimization#Clang_PGO but I'm getting the following error when I "git apply clang-pgo.patch":

Code:

error: patch failed: kernel/Makefile:114
error: kernel/Makefile: patch does not apply


I'm using gentoo-sources 6.6.58-r1 and have the clang-pgo.patch file in my /usr/src/linux-6.6.58-gentoo-r1 directory. Get the error with and without sudo. Tried reinstalling gentoo-sources but didn't change anything.

Installed all related clang/lllvm packages and compiled compiler-rt-sanitizers with USE=profile and USE=orc.

Any ideas?

Unrelated but when I'm compiling my kernel with Clang LTO I get a compile error. It's only on one machine, it works on all others. Should I report that bug under gentoo bugzilla or upstream to the LLVM devs?
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1927

PostPosted: Tue Nov 05, 2024 2:41 pm    Post subject: Reply with quote

The mentioned patch seems to be a one off for kernel 6.5.x as the owner never updated for later kernels.

It is unlikely to work for any kernel series except 6.5
Back to top
View user's profile Send private message
L1NTHALO
n00b
n00b


Joined: 27 Aug 2024
Posts: 22

PostPosted: Tue Nov 05, 2024 2:51 pm    Post subject: Reply with quote

Good to know, thanks. Maybe someone should list that on the wiki entry.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum