Here's some information about how people fixed the issue with the script for selecting microarchitecture and the CONFIG_X86_L1_CACHE_SHIFT identifier: https://gitlab.com/xanmod/linux/-/issues/446#note_2729829934
Search Criteria
Package Details: linux-xanmod-headers 6.17.8-1
Package Actions
| Git Clone URL: | https://aur.archlinux.org/linux-xanmod.git (read-only, click to copy) |
|---|---|
| Package Base: | linux-xanmod |
| Description: | Headers and scripts for building modules for the Linux Xanmod - Stable Mainline [MAIN] kernel |
| Upstream URL: | http://www.xanmod.org/ |
| Licenses: | GPL-2.0-only |
| Submitter: | Yoshi2889 |
| Maintainer: | figue (figuepluto, jfigueras) |
| Last Packager: | figue |
| Votes: | 132 |
| Popularity: | 0.023151 |
| First Submitted: | 2017-02-14 09:40 (UTC) |
| Last Updated: | 2025-11-14 22:01 (UTC) |
Dependencies (13)
- pahole (pahole-gitAUR)
- bc (bc-ghAUR) (make)
- cpio (cpio-gitAUR) (make)
- gettext (gettext-gitAUR) (make)
- libelf (elfutils-gitAUR) (make)
- pahole (pahole-gitAUR) (make)
- perl (perl-gitAUR) (make)
- python (make)
- rust (rust-gitAUR, rust-beta-binAUR, rustup-gitAUR, rust-nightly-binAUR, rustup) (make)
- rust-bindgen (rust-bindgen-gitAUR) (make)
- rust-src (rust-src-gitAUR, rustup-gitAUR, rustup) (make)
- tar (tar-gitAUR, uutils-tar-gitAUR) (make)
- xz (xz-gitAUR) (make)
Required by (0)
Sources (4)
derfehler commented on 2025-11-16 20:18 (UTC)
derfehler commented on 2025-08-28 22:02 (UTC) (edited on 2025-08-29 11:16 (UTC) by derfehler)
I'm building this package like this: env _compiler=clang _microarchitecture=99 use_tracers=n use_numa=n _compress_modules=y _localmodcfg=y makepkg -sficC. During the build, an error appears: ./arch/x86/include/asm/tlbflush.h:153:1: error: use of undeclared identifier 'CONFIG_X86_L1_CACHE_SHIFT'. As far as I understand, the identifier 'CONFIG_X86_L1_CACHE_SHIFT' is missing from .config. According to the patch, it modifies src/linux-6.16/CONFIGS/x86_64/config, then this config is copied to src/linux-6.16/.config, and something else happens to this file afterward, after which 'CONFIG_X86_L1_CACHE_SHIFT=6' disappears from it.
The problem occurs only when I select "Native optimizations autodetected" (98, 99) as the microarchitecture. When I specifically choose my processor's architecture (Zen2 - 12), the build proceeds without errors.
figue commented on 2025-02-23 13:34 (UTC)
@derfehler sorry about that. I merged PKGBUILD with -edge yesterday, but I didn't test it. Should be fixed now.
@smn try to delete src directory before building it again
smn commented on 2025-02-23 09:03 (UTC)
Even when pointing cp -vf CONFIGS/xanmod/gcc/${_config} .config to CONFIGS/x86-64/config, the package does not build for me (patches fail to apply).
derfehler commented on 2025-02-22 21:21 (UTC) (edited on 2025-02-22 21:22 (UTC) by derfehler)
when compiling there is an error that there is no file at the path “CONFIGS/xanmod/gcc/config_x86-64-v2”. Now the config is in a different path “CONFIGS/x86-64/config”
BytEvil commented on 2025-02-04 05:16 (UTC)
Hi. Module compression does not work without
scripts/config --enable CONFIG_MODULE_COMPRESS
figue commented on 2025-01-27 13:05 (UTC) (edited on 2025-01-27 13:05 (UTC) by figue)
@murlakatamenka thank you. Will be added in next release.
murlakatamenka commented on 2025-01-26 19:26 (UTC) (edited on 2025-01-26 23:24 (UTC) by murlakatamenka)
@figue localmodconfig part could be updated:
- https://wiki.archlinux.org/index.php?title=Modprobed-db&diff=prev&oldid=810531
- https://wiki.archlinux.org/title/Modprobed-db#Using_the_official_Arch_kernel_PKGBUILD
- https://www.kernel.org/doc/html/latest/admin-guide/quickly-build-trimmed-linux.html (or github permalink)
Could be:
yes '' | make LSMOD="$HOME/.config/modprobed.db" localmodconfig
prydaran commented on 2024-12-08 22:06 (UTC)
@figue @Riedler encountered the same error when compiling linux-xanmod 6.11.11-1. solution was adding scripts/config --disable CONFIG_BPF_EVENTS to myconfig.
Nebrassy commented on 2024-07-30 21:58 (UTC)
@figue oh sweet, didn't know that would work, will try. I'm linking gcc and clang to force it to use ccache, couldn't get it to work any other way
Pinned Comments
anlorsp commented on 2024-07-13 17:07 (UTC) (edited on 2024-07-15 04:53 (UTC) by anlorsp)
Adding
to myconfig does solve the "Failed to insert module 'nvidia': Key was rejected by service" problem.
Anyone who configured secure boot using sbctl and want to load dkms modules can try this solution.
figue commented on 2018-12-14 00:50 (UTC) (edited on 2023-02-27 20:00 (UTC) by figue)
This package have several variables to enable/disable features.
Personally I'm running now xanmod kernel compiled with this:
Also, you can now create the file myconfig in your local repo to build this package with a custom config or use ${XDG_CONFIG_HOME}/linux-xanmod/myconfig. This file can be a full kernel config or be a script with several entries to add/remove options (you have several examples in PKGBUILD by using scripts/config):
Code involved: