Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel 6.13 failed to build #77

Closed
celproject opened this issue Jan 23, 2025 · 9 comments · Fixed by #78
Closed

Kernel 6.13 failed to build #77

celproject opened this issue Jan 23, 2025 · 9 comments · Fixed by #78

Comments

@celproject
Copy link

Anyone had this error ?

sudo nixos-rebuild switch --flake .#nixos
building the system configuration...
error: builder for '/nix/store/x0dsy21j7j4bw2ljy0hnd5k21l6g99dc-linux-config-6.13.0.drv' failed with exit code 255;
last 25 log lines:
> error: unused option: PINCTRL_AMD
> error: unused option: RASPBERRYPI_FIRMWARE
> error: unused option: RASPBERRYPI_POWER
> warning: unused option: REISERFS_FS_POSIX_ACL
> warning: unused option: REISERFS_FS_SECURITY
> warning: unused option: REISERFS_FS_XATTR
> error: unused option: ROCKCHIP_DW_HDMI_QP
> error: unused option: RT2800USB_RT53XX
> error: unused option: RT2800USB_RT55XX
> error: unused option: RTW88
> error: unused option: RTW88_8822BE
> error: unused option: RTW88_8822CE
> error: unused option: SERIAL_8250_BCM2835AUX
> error: unused option: SND_AC97_POWER_SAVE
> error: unused option: SND_AC97_POWER_SAVE_DEFAULT
> error: unused option: SUN8I_DE2_CCU
> error: unused option: SUNRPC_DEBUG
> error: unused option: USB_XHCI_TEGRA
> warning: unused option: VBOXGUEST
> error: unused option: VIRTIO_MMIO_CMDLINE_DEVICES
> warning: unused option: XEN_HAVE_PVMMU
> warning: unused option: XEN_MCE_LOG
> warning: unused option: XEN_PVH
> warning: unused option: XEN_PVHVM
> warning: unused option: XEN_SAVE_RESTORE
For full logs, run 'nix log /nix/store/x0dsy21j7j4bw2ljy0hnd5k21l6g99dc-linux-config-6.13.0.drv'.
error: 1 dependencies of derivation '/nix/store/md17mb2mic28d0s6b4pfynafii8fqvqs-linux-6.13.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/nbx6v0094jf8d0rx8gia8ywrq4kz7yfk-nixos-system-nixos-25.05.20250123.d60d99a.drv' failed to build

@kuruczgy
Copy link
Owner

Yep, can reproduce with newer (4f570c5acd35e777e7f9f382f8cf2c141de85d0b) nixpkgs, looking into it now...

@kuruczgy
Copy link
Owner

Found it (bisecting took quite a bit longer than I expected), it's 37789d9eaa566f5d0bdeaaecd9cb3b0991dab6e9 from this PR: NixOS/nixpkgs#366004.

For now the workaround is obviously to just reenable ignoreConfigErrors (will try to do a PR tomorrow), and we should open an issue and later actually investigate the config errors and resolve them properly.

@kuruczgy kuruczgy mentioned this issue Jan 24, 2025
@kuruczgy
Copy link
Owner

Nevermind adding it was trivial, here is the PR: #78, you can try it already @celproject if you want, I haven't compiled the full kernel with it yet but it does build the config successfully so I would be surprised if it didn't work.

@celproject
Copy link
Author

hi, same :(

Unless Im doing something wrong

sudo nixos-rebuild switch --flake .#nixos
building the system configuration...
error: builder for '/nix/store/x0dsy21j7j4bw2ljy0hnd5k21l6g99dc-linux-config-6.13.0.drv' failed with exit code 255;
last 25 log lines:
> error: unused option: PINCTRL_AMD
> error: unused option: RASPBERRYPI_FIRMWARE
> error: unused option: RASPBERRYPI_POWER
> warning: unused option: REISERFS_FS_POSIX_ACL
> warning: unused option: REISERFS_FS_SECURITY
> warning: unused option: REISERFS_FS_XATTR
> error: unused option: ROCKCHIP_DW_HDMI_QP
> error: unused option: RT2800USB_RT53XX
> error: unused option: RT2800USB_RT55XX
> error: unused option: RTW88
> error: unused option: RTW88_8822BE
> error: unused option: RTW88_8822CE
> error: unused option: SERIAL_8250_BCM2835AUX
> error: unused option: SND_AC97_POWER_SAVE
> error: unused option: SND_AC97_POWER_SAVE_DEFAULT
> error: unused option: SUN8I_DE2_CCU
> error: unused option: SUNRPC_DEBUG
> error: unused option: USB_XHCI_TEGRA
> warning: unused option: VBOXGUEST
> error: unused option: VIRTIO_MMIO_CMDLINE_DEVICES
> warning: unused option: XEN_HAVE_PVMMU
> warning: unused option: XEN_MCE_LOG
> warning: unused option: XEN_PVH
> warning: unused option: XEN_PVHVM
> warning: unused option: XEN_SAVE_RESTORE
For full logs, run 'nix log /nix/store/x0dsy21j7j4bw2ljy0hnd5k21l6g99dc-linux-config-6.13.0.drv'.
error: 1 dependencies of derivation '/nix/store/md17mb2mic28d0s6b4pfynafii8fqvqs-linux-6.13.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/i7pwz25viaqxbw188yzsmpxv05jaj7fn-nixos-system-nixos-25.05.20250124.dcb7446.drv' failed to build

[user@nixos:~/flake]$

@kuruczgy
Copy link
Owner

@celproject Hm... are you sure you are referencing that PR properly and it's taking effect? You need to do something like

x1e-nixos-config.url = "github:kuruczgy/x1e-nixos-config?rev=884c7231b042572edb6cc65f88a2779c28045ee6";

in your flake.nix.

(I am suspicious because according to your logs you are still trying to build the same derivation.)

@celproject
Copy link
Author

Its possible that my config is bad

{
description = "NixOS configuration for X1e";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
x1e-nixos-config = {
url = "github:kuruczgy/x1e-nixos-config";
inputs.nixpkgs.follows = "nixpkgs";
};
treefmt-nix.url = "github:numtide/treefmt-nix";
};

outputs = { self, nixpkgs, x1e-nixos-config, treefmt-nix }: {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
x1e-nixos-config.nixosModules.x1e
({ pkgs, lib, ... }: {
networking.hostName = "nixos";
hardware.deviceTree.name = "qcom/x1e80100-lenovo-yoga-slim7x.dtb";
nixpkgs.pkgs = nixpkgs.legacyPackages.aarch64-linux;

      nix = {
        channel.enable = false;
        settings.experimental-features = [ "nix-command" "flakes" ];
      };

      # Your configuration starts here
      boot.loader.systemd-boot = {
        enable = true;
        configurationLimit = 2;
      };
      boot.initrd.systemd = {
        enable = true;
        emergencyAccess = true;
      };

      hardware.enableRedistributableFirmware = true;

      fileSystems = {
        "/" = {
          device = "/dev/disk/by-label/root";
          fsType = "ext4";
        };
        "/boot" = {
          device = "/dev/disk/by-label/SYSTEM_DRV";
          fsType = "vfat";
        };
      };

@kuruczgy
Copy link
Owner

@celproject the config seems fine, but if you want to try PR #78 (which has not been merged yet), you have to reference it explicitly by setting inputs.x1e-nixos-config.url = "github:kuruczgy/x1e-nixos-config?rev=884c7231b042572edb6cc65f88a2779c28045ee6"; temporarily.

@celproject
Copy link
Author

Hi, sorry for this.

I was able to compile thank you, and thank you for maintaining this.

@kuruczgy
Copy link
Owner

You are welcome :)

I merged the fix PR, so you should be able to remove the ?rev=... from your flake input reference now.

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 a pull request may close this issue.

2 participants