!kyXJonZuBXCGzVwuSn:nixos.org

Systems Programming

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

Load older messages


SenderMessageTime
11 May 2024
@woobilicious:matrix.orgwoobilicious I personally pin my NixOS config with flakes, and then I can just issue: nix eval self\#nixosConfigurations.<hostname>.config.boot.kernelPackages.kernel.version 06:48:58
15 May 2024
@joerg:thalheim.ioMic92 John Ericson: why do we actually put all libraries into rpath in the linker wrapper and not just the one that also are used by the -l flag? This is what guix is doing. 14:36:43
@joerg:thalheim.ioMic92Than we would not have to remove them in the fixup phase.14:37:02
@Ericson2314:matrix.orgJohn Ericson Mic92: sounds like a mass rebuild that no one ever bothered with? :D 14:37:28
@Ericson2314:matrix.orgJohn Ericsonwe need to make an ELF extension such that we can have an optional path per DT_NEEDED14:37:43
@Ericson2314:matrix.orgJohn Ericson(like absolute DT_NEEDED but not breaking LD_LIBRARY_PATH)14:37:55
@joerg:thalheim.ioMic92We could still use rpath for now? No?14:38:20
@joerg:thalheim.ioMic92DT_NEEDED sounds a bit like an optimization.14:38:31
@joerg:thalheim.ioMic92I guess one reason might want to write the ld wrapper in something that is not shell for performance?14:39:24
@joerg:thalheim.ioMic92In guix it is some guix code.14:39:35
@Ericson2314:matrix.orgJohn Ericson yeah I am just venting a longer-term thing :)\ 14:39:54
@Ericson2314:matrix.orgJohn Ericson * yeah I am just venting a longer-term thing :)14:39:57
@Ericson2314:matrix.orgJohn Ericsonre no more O(n^2)14:40:01
@joerg:thalheim.ioMic92 Yeah.14:40:07
@joerg:thalheim.ioMic92 John Ericson: We got prior art on the absolute path thing: https://github.com/spack/spack/pull/27566/files 14:59:31
@Ericson2314:matrix.orgJohn Ericsonoh cool!15:15:57
17 May 2024
@elvishjerricco:matrix.org@elvishjerricco:matrix.org left the room.20:20:08
19 May 2024
@lunarequest:greyseal.eulunarequest ⚡️I'm back with the building linux with clang and thinlto. I've come to the conclusion that it is not possible to enable thinlto within the current nix framework. Instead I need to use the manual config. I'm looking for some help with the following. 1. How do I set stdenv for linuxManual config. 2. With my current nixpkgs.overlay i get the error attribute extend is missing any help is appreciated This is the overlay I have ``` nixpkgs.overlays = [ (self: super: { luna_linux = let baseKernel = pkgs.linux_latest; in pkgs.linuxManualConfig { inherit (baseKernel) src modDirVersion; version = "${baseKernel.version}-luna"; configfile = ../../kernel/.config; allowImportFromDerivation = true; }; }) ]; ```12:25:48
@k900:0upti.meK900 You can use pkgs.linuxManualConfig.override { stdenv = ... } I believe 12:35:58
@k900:0upti.meK900And "attribute extend is missing" is probably because you've enabled the read-only nixpkgs module12:36:10
@lunarequest:greyseal.eulunarequest ⚡️How would I change that12:37:04
@k900:0upti.meK900Disable that module12:37:18
@lunarequest:greyseal.eulunarequest ⚡️So how would I then add my own kernel package?12:38:45
@k900:0upti.meK900Either you remove the read-only nixpkgs module12:39:17
@k900:0upti.meK900Or you add the overlay to the place where you're instantiating your nixpkgs12:39:26
@lunarequest:greyseal.eulunarequest ⚡️I'm using a flake. I've not explicitly enabled a readonly nixpkgs12:40:20
@k900:0upti.meK900Can you post your flake.nix then?12:40:42
@lunarequest:greyseal.eulunarequest ⚡️https://github.com/Lunarequest/nixos-luna-config12:42:04
@k900:0upti.meK900Hm, I don't see any obvious issues there12:43:17
@k900:0upti.meK900Can you post a full trace?12:43:21

Show newer messages


Back to Room ListRoom Version: 6