forked from systemofapwne/leetmouse
-
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Using the yeetmouse flake on a system with the Chaotic Nyx build of the CachyOS kernel built with LLVM/LTO fails. I get this build error:
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/0qkvdd2jj9nxvy4cq8ky94q5xkwki0ps-source
source root is /build/source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
build flags: SHELL=/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash CC=/nix/store/kzq78n13l8w24jn8bx4djj79k5j717f1-gcc-14.3.0/bin/gcc LD=/nix/store/dc9vaz50jg7mibk9xvqw5dqv89cxzla3-binutils-2.44/bin/ld AR=/nix/store/vr15iyyykg9zai6fpgvhcgyw7gckl78w-gcc-wrapper-14.3.0/bin/ar NM=/nix/store/vr15iyyykg9zai6fpgvhcgyw7gckl78w-gcc-wrapper-14.3.0/bin/nm STRIP=/nix/store/dc9vaz50jg7mibk9xvqw5dqv89cxzla3-binutils-2.44/bin/strip OBJCOPY=/nix/store/vr15iyyykg9zai6fpgvhcgyw7gckl78w-gcc-wrapper-14.3.0/bin/objcopy OBJDUMP=/nix/store/vr15iyyykg9zai6fpgvhcgyw7gckl78w-gcc-wrapper-14.3.0/bin/objdump READELF=/nix/store/vr15iyyykg9zai6fpgvhcgyw7gckl78w-gcc-wrapper-14.3.0/bin/readelf HOSTCC=/nix/store/vr15iyyykg9zai6fpgvhcgyw7gckl78w-gcc-wrapper-14.3.0/bin/cc HOSTCXX=/nix/store/vr15iyyykg9zai6fpgvhcgyw7gckl78w-gcc-wrapper-14.3.0/bin/c++ HOSTAR=/nix/store/xwydcyvlsa3cvssk0y5llgdhlhjvmqdm-binutils-wrapper-2.44/bin/ar HOSTLD=/nix/store/xwydcyvlsa3cvssk0y5llgdhlhjvmqdm-binutils-wrapper-2.44/bin/ld ARCH=x86_64 CROSS_COMPILE= KBUILD_OUTPUT=/nix/store/ydaj8kmad8kq4c6jgc1m1a7z3yx58w62-linux-6.12.58-dev/lib/modules/6.12.58/build KBUILD_OUTPUT=/nix/store/dv452w8rywrjj99l5xx9vh64azx8xsyl-linux-x86_64-unknown-linux-gnu-6.17.8-dev/lib/modules/6.17.8-cachyos/build -C /nix/store/dv452w8rywrjj99l5xx9vh64azx8xsyl-linux-x86_64-unknown-linux-gnu-6.17.8-dev/lib/modules/6.17.8-cachyos/build M=\$\(sourceRoot\)/driver modules
make: Entering directory '/nix/store/dv452w8rywrjj99l5xx9vh64azx8xsyl-linux-x86_64-unknown-linux-gnu-6.17.8-dev/lib/modules/6.17.8-cachyos/build'
make[1]: Entering directory '/build/source/driver'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: clang version 21.1.2
You are using: gcc (GCC) 14.3.0
CC [M] accel.o
gcc: error: unrecognized command-line option '-mretpoline-external-thunk'
gcc: error: unrecognized command-line option '-fsplit-lto-unit'
make[3]: *** [/nix/store/dv452w8rywrjj99l5xx9vh64azx8xsyl-linux-x86_64-unknown-linux-gnu-6.17.8-dev/lib/modules/6.17.8-cachyos/source/scripts/Makefile.build:287: accel.o] Error 1
make[2]: *** [/nix/store/dv452w8rywrjj99l5xx9vh64azx8xsyl-linux-x86_64-unknown-linux-gnu-6.17.8-dev/lib/modules/6.17.8-cachyos/source/Makefile:2016: .] Error 2
make[1]: *** [/nix/store/dv452w8rywrjj99l5xx9vh64azx8xsyl-linux-x86_64-unknown-linux-gnu-6.17.8-dev/lib/modules/6.17.8-cachyos/source/Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/build/source/driver'
make: *** [/nix/store/dv452w8rywrjj99l5xx9vh64azx8xsyl-linux-x86_64-unknown-linux-gnu-6.17.8-dev/lib/modules/6.17.8-cachyos/source/Makefile:248: __sub-make] Error 2
make: Leaving directory '/nix/store/dv452w8rywrjj99l5xx9vh64azx8xsyl-linux-x86_64-unknown-linux-gnu-6.17.8-dev/lib/modules/6.17.8-cachyos/build'
How I'm using it: https://github.com/keenanweaver/nix-config/blob/8c2e58ff2ca03ed02c26f2e34095458a3440f720/hosts/desktop/default.nix#L43
Their package is here: https://github.com/chaotic-cx/nyx/tree/main/pkgs/linux-cachyos
Building the system with linuxPackages_cachyos-gcc works, so I think the derivation should be changed here (assuming Yeetmouse works with non-GCC compiled kernels).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels