View previous topic :: View next topic |
Author |
Message |
L1NTHALO n00b
Joined: 27 Aug 2024 Posts: 22
|
Posted: Tue Nov 05, 2024 2:21 pm Post subject: Can't apply PGO patch |
|
|
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 |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1923
|
Posted: Tue Nov 05, 2024 2:41 pm Post subject: |
|
|
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 |
|
|
L1NTHALO n00b
Joined: 27 Aug 2024 Posts: 22
|
Posted: Tue Nov 05, 2024 2:51 pm Post subject: |
|
|
Good to know, thanks. Maybe someone should list that on the wiki entry. |
|
Back to top |
|
|
|