-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Issue]: archlinux linux kernel variant cachyos compile with -march=znver4 fails #1135
Comments
Hi @Cfouria. Internal ticket has been created to investigate your issue. Thanks! |
so ive tried separating out parts that cause this error and no luck, giving up did find .config must contain |
Hi @Cfouria, just want to clarify: is |
The thing i was using (cachyos) selects the march by default, and a lot of other things. main point of despair is finding 1 thing that caused this error, removing it and still getting error... anyway i managed to reduce magic (and archlinux tools)
|
What version of |
built aomp from source on Oct 21 edit: rebuilt aomp still same also ive managed to find the 2 problems
-j1 ? using -J8 or so gets stuck on
gup-a671a3.sh.txt |
Oddly this seems to me to be the same as an issue reported a while back: see CachyOS/kernel-patches#48, llvm/llvm-project#82896, llvm/llvm-project#72026. The fix landed in our fork a while ago, and as far as I understand |
replacing after aomp rebuild, error before aomp rebuild, error |
Thanks for the quick response! I'll take a look at this. |
also reading llvm/llvm-project#72026 i remember trying x86-64-v3 and still getting error CONFIG_AMD_MEM_ENCRYPT=y & CONFIG_LTO_NONE=y KCFLAGS=' -march=x86-64-v3' error KCFLAGS=' -march=x86-64-v2' builds so minimum need is
if you use greater than -j1 gup.o wont appear in terminal until ctrl+c and redo the make all command KCFLAGS=' -march=bdver3' error so bmi is a problem? |
Interesting, does
is this with the cachyos patches applied to the kernel? Are you using the defaults for all of the kernel config options unless otherwise stated? |
no patches & eventually started rm & tar -xf after every attempt. so, kcflags only needs -mbmi or any march that uses it
AMD_MEM_ENCRYPT & INTEL_TDX_GUEST both have same difference from fresh olddefconfig (and some others they dont share)
can set |
Haven't been able to reproduce this so far; granted, I'm on different hardware, so this could be a hardware-specific issue. It takes a while, but I've been able to build the kernel with all the combinations of flags you've listed as failing. I'll have to test this on other hardware and report back. |
i do have a old computer, bdver3, so tried with it copied check .config... using aomp so, rebuild aomp it is well im out of ideas tried playing with 'gup-a671a3.sh'
it builds with k8,
i do believe my build is haunted and its scared away my motivation |
Problem Description
building archlinux linux kernel variant "CachyOS" and got this error (builds with archlinux packaged llvm)
turns out this error happens when using an option to compile with
-march=znver4
from this patch https://github.com/CachyOS/kernel-patches/blob/master/6.11/0005-cachy.patchalso rather nasty while trying to build march=znver4 it sat on
LD vmlinux.o
for hours climbing up to 48GBs and maxing out cores...before failingafter switching off this option it builds but the error said please report
Operating System
Archlinux
CPU
7940hs
GPU
780m
ROCm Version
ROCm 6.2.0
ROCm Component
aomp
Steps to Reproduce
archlinux...
https://aur.archlinux.org/packages/linux-cachyos
ugg... cachyos pkgbuild uses a consolidated patchfile that has 3? parts that are in kernel tarball already so i deleted those 3 from the large single patch file
edited the PKGBUILD to use znver4, lto=full, make LLVM=/opt/aomp/aomp/llvm/bin/ all
makepkg
wait hours
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: