!kyXJonZuBXCGzVwuSn:nixos.org

Systems Programming

175 Members
Kernel, stdenv, low-level hacking, patchelf, … 62 Servers

Load older messages


SenderMessageTime
19 May 2024
@lunarequest:greyseal.eulunarequest ⚡️I missed adding a file i will add it and share the trace12:44:41
@lunarequest:greyseal.eulunarequest ⚡️https://0x0.st/XPLU.txt12:49:09
@lunarequest:greyseal.eulunarequest ⚡️ Full trace K900 12:49:18
@k900:0upti.meK900Oh wait12:54:27
@k900:0upti.meK900Where are you setting your kernel to that?12:54:32
@lunarequest:greyseal.eulunarequest ⚡️
In reply to @k900:0upti.me
Where are you setting your kernel to that?
To what?
12:55:19
@k900:0upti.meK900To your custom one12:56:09
@lunarequest:greyseal.eulunarequest ⚡️So I made some minor changes. I define my custom kernel here https://github.com/Lunarequest/nixos-luna-config/blob/bb403949cd82b332f9a849f2048e00c94d5eff05/hosts/lifrith/configuration.nix#L15 And set my it to my custom kernel here https://github.com/Lunarequest/nixos-luna-config/blob/bb403949cd82b332f9a849f2048e00c94d5eff05/hosts/lifrith/modules/kernel.nix#L812:57:27
@k900:0upti.meK900Yeah that's not valid12:57:42
@k900:0upti.meK900You need to define all of your overrides in one place12:57:49
@k900:0upti.meK900 And then do something like boot.kernelPackages = pkgs.linuxPackagesFor pkgs.luna_linux 12:58:03
@lunarequest:greyseal.eulunarequest ⚡️How do I set environment variables with/in linuxManualConfig?12:59:18
@k900:0upti.meK900 You might need overrideAttrs on top of that 13:00:01
@lunarequest:greyseal.eulunarequest ⚡️I don't follow how to set overrideAttrs here 13:02:46
@k900:0upti.meK900 luna_linux = (pkgs.linuxManualConfig { ... }).overrideAttrs(old: { FOO = 1; }) 13:03:17
@lunarequest:greyseal.eulunarequest ⚡️
In reply to @k900:0upti.me
luna_linux = (pkgs.linuxManualConfig { ... }).overrideAttrs(old: { FOO = 1; })
Okay now I'm getting further I have an error about unused CFLAGS now. More specifically about -fno-strict-overflow as far as I can tell this is set by nixos? How would I override them
13:17:11
@k900:0upti.meK900That shouldn't be an error13:17:56
@k900:0upti.meK900Can you post the exact error13:17:59
@lunarequest:greyseal.eulunarequest ⚡️ clang: error: argument unused during compilation: '-fno-strict-overflow' [-Werror,-Wunused-command-line-argument] > make[3]: *** [../scripts/Makefile.build:244: scripts/mod/empty.o] Error 1 > make[2]: *** [/build/linux-6.9/Makefile:1196: prepare0] Error 2 > make[1]: *** [/build/linux-6.9/Makefile:240: __sub-make] Error 2 > make[1]: Leaving directory '/build/linux-6.9/build' > make: *** [Makefile:240: __sub-make] Error 213:18:36
@k900:0upti.meK900Don't set -Werror13:19:27
@lunarequest:greyseal.eulunarequest ⚡️I looked into it. My kernel does not set `CONFIG_WERROR` and i never set -Werror in my cflags. 13:24:31
@lunarequest:greyseal.eulunarequest ⚡️I have no idea where these flags are set. 13:27:37
@k900:0upti.meK900 Try hardeningDisable = ["all"] 13:27:55
@lunarequest:greyseal.eulunarequest ⚡️Where should I add that?13:35:45
@k900:0upti.meK900 In overrideAttrs 13:39:17
@lunarequest:greyseal.eulunarequest ⚡️Thanks that worked!13:41:16
20 May 2024
@kamillaova:matrix.orgKamilla 'ova joined the room.23:24:39
22 May 2024
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.15:25:53
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.15:28:08
23 May 2024
@mall0c:matrix.org@mall0c:matrix.org removed their profile picture.00:27:56

Show newer messages


Back to Room ListRoom Version: 6