Skip to content

PKGBUILD: add md5 for linux-6.18.patch and enable this patch#7

Open
manio wants to merge 2 commits intoFritzOnFire:masterfrom
manio:master
Open

PKGBUILD: add md5 for linux-6.18.patch and enable this patch#7
manio wants to merge 2 commits intoFritzOnFire:masterfrom
manio:master

Conversation

@manio
Copy link

@manio manio commented Jan 5, 2026

No description provided.

@manio
Copy link
Author

manio commented Jan 5, 2026

btw, even with this 6.18 patch applied I still have problems on CachyOS:

❯ makepkg -i
==> Making package: rcraid-dkms 17.2.1-1 (Mon Jan 5 2026 13:53:34)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found raid_linux_driver_8_01_00_039_public.zip
  -> Found dkms.conf
  -> Found linux-4.15.patch
  -> Found linux-5.4.patch
  -> Found linux-5.6.patch
  -> Found linux-5.14.patch
  -> Found linux-5.15.patch
  -> Found linux-5.17.patch
  -> Found linux-5.18.patch
  -> Found linux-6.2.patch
  -> Found linux-6.4.patch
  -> Found linux-6.6.patch
  -> Found linux-6.9.patch
  -> Found linux-6.11.patch
  -> Found linux-6.14.patch
  -> Found linux-6.15.patch
  -> Found linux-6.16.patch
  -> Found linux-6.18.patch
==> Validating source files with md5sums...
    raid_linux_driver_8_01_00_039_public.zip ... Passed
    dkms.conf ... Passed
    linux-4.15.patch ... Passed
    linux-5.4.patch ... Passed
    linux-5.6.patch ... Passed
    linux-5.14.patch ... Passed
    linux-5.15.patch ... Passed
    linux-5.17.patch ... Passed
    linux-5.18.patch ... Passed
    linux-6.2.patch ... Passed
    linux-6.4.patch ... Passed
    linux-6.6.patch ... Passed
    linux-6.9.patch ... Passed
    linux-6.11.patch ... Passed
    linux-6.14.patch ... Passed
    linux-6.15.patch ... Passed
    linux-6.16.patch ... Passed
    linux-6.18.patch ... Passed
==> Extracting sources...
  -> Extracting raid_linux_driver_8_01_00_039_public.zip with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Applying patch linux-4.15.patch...
patching file common_shell
patching file install_rh
patching file install_suse
patching file Makefile
patching file rc_adapter.h
patching file rc_init.c
patching file rc_mem_ops.c
patching file rc_msg.c
patching file uninstall_rh
patching file uninstall_suse
Applying patch linux-5.4.patch...
patching file Makefile
Applying patch linux-5.6.patch...
patching file rc_init.c
patching file rc_msg.c
Applying patch linux-5.14.patch...
patching file rc.h
patching file rc_msg.c
Applying patch linux-5.15.patch...
patching file rc_init.c
patching file rc_msg.c
Applying patch linux-5.17.patch...
patching file rc_config.c
patching file rc_init.c
patching file rc_msg.c
patching file rc_srb.h
Applying patch linux-5.18.patch...
patching file rc_init.c
patching file rc_msg.c
Applying patch linux-6.2.patch...
patching file rc_init.c
Applying patch linux-6.4.patch...
patching file rc_init.c
Applying patch linux-6.6.patch...
patching file rc_msg.c
Applying patch linux-6.9.patch...
patching file rc_msg.c
Applying patch linux-6.11.patch...
patching file rc_init.c
Applying patch linux-6.14.patch...
patching file rc_init.c
Applying patch linux-6.15.patch...
patching file Makefile
patching file rc_msg.c
patching file rc_msg_platform.h
Applying patch linux-6.16.patch...
patching file rc_init.c
patching file rc_msg.c
Applying patch linux-6.18.patch...
patching file rc_init.c
------------------------------------------------------------
- building for kernel 6.18.3-2-cachyos
------------------------------------------------------------
make -C /lib/modules/6.18.3-2-cachyos/build M=/usr/src/rcraid/src/rcraid-17.2.1 modules
make[1]: Entering directory '/usr/lib/modules/6.18.3-2-cachyos/build'
make[2]: Entering directory '/usr/src/rcraid/src/rcraid-17.2.1'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: clang version 21.1.6
  You are using:           gcc (GCC) 15.2.1 20251112
  CC [M]  rc_init.o
  CC [M]  rc_msg.o
  CC [M]  rc_mem_ops.o
  CC [M]  rc_event.o
ln -sf `basename rcblob.x86_64.o .o` rcblob.x86_64.o
  CC [M]  rc_config.o
  CC [M]  vers.o
gcc: error: unrecognized command-line option ‘-mstack-alignment=8’
gcc: error: unrecognized command-line option ‘-mstack-alignment=8’
gcc: error: unrecognized command-line option ‘-mstack-alignment=8’
gcc: error: unrecognized command-line option ‘-mstack-alignment=8’
gcc: error: unrecognized command-line option ‘-mstack-alignment=8’
gcc: error: unrecognized command-line option ‘-mstack-alignment=8’
gcc: error: unrecognized command-line option ‘-mretpoline-external-thunk’
gcc: error: unrecognized command-line option ‘-mretpoline-external-thunk’
gcc: error: unrecognized command-line option ‘-mretpoline-external-thunk’
gcc: error: unrecognized command-line option ‘-mretpoline-external-thunk’
gcc: error: unrecognized command-line option ‘-mretpoline-external-thunk’
gcc: error: unrecognized command-line option ‘-fsplit-lto-unit’
make[4]: *** [/usr/lib/modules/6.18.3-2-cachyos/build/scripts/Makefile.build:287: rc_init.o] Error 1
make[4]: *** Waiting for unfinished jobs....
gcc: error: unrecognized command-line option ‘-fsplit-lto-unit’
make[4]: *** [/usr/lib/modules/6.18.3-2-cachyos/build/scripts/Makefile.build:287: rc_msg.o] Error 1
gcc: error: unrecognized command-line option ‘-fsplit-lto-unit’
make[4]: *** [/usr/lib/modules/6.18.3-2-cachyos/build/scripts/Makefile.build:287: rc_mem_ops.o] Error 1
gcc: error: unrecognized command-line option ‘-fsplit-lto-unit’
gcc: error: unrecognized command-line option ‘-mretpoline-external-thunk’
make[4]: *** [/usr/lib/modules/6.18.3-2-cachyos/build/scripts/Makefile.build:287: rc_event.o] Error 1
gcc: error: unrecognized command-line option ‘-fsplit-lto-unit’
make[4]: *** [/usr/lib/modules/6.18.3-2-cachyos/build/scripts/Makefile.build:287: rc_config.o] Error 1
gcc: error: unrecognized command-line option ‘-fsplit-lto-unit’
make[4]: *** [/usr/lib/modules/6.18.3-2-cachyos/build/scripts/Makefile.build:287: vers.o] Error 1
make[3]: *** [/usr/lib/modules/6.18.3-2-cachyos/build/Makefile:2016: .] Error 2
make[2]: *** [/usr/lib/modules/6.18.3-2-cachyos/build/Makefile:248: __sub-make] Error 2
make[2]: Leaving directory '/usr/src/rcraid/src/rcraid-17.2.1'
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.18.3-2-cachyos/build'
make: *** [Makefile:60: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Is it because of gcc mismatch? Do you know how can I force specific version or install it?

The old one is outdated and is leading to graphic drivers
@manio
Copy link
Author

manio commented Jan 5, 2026

Update:
never mind... I was able to compile it on Arch (with some relocation warnings), but the main problem is this:

❯ cat /proc/config.gz|gunzip|grep AHCI
CONFIG_SATA_AHCI=y

❯ modprobe -r ahci
modprobe: FATAL: Module ahci is builtin.

the AHCI is now builtin in Arch/CachyOS so cannot be even blacklisted in kernel cmdline without kernel recompilation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant