Closed mudrii closed 3 years ago
Fixed by https://github.com/NixOS/nixpkgs/pull/123904. It may take some time for this to be built by Hydra and the channel to be updated, until then you can rebuild from nixpkgs master.
I apologize for the failure. Should have done more ripgrepping :(
any workaround is available? As I am unable to install any app due to the error? @samuelgrf Please would you provide a timeline when we can expect the sync and issue fixed?
You can see the channel build status on https://status.nixos.org/ .
nixos-unstable is at rev 900115a4f7fd
right now which includes the fix, try updating your channels again.
FWIW this is the workaround I had in my configuration before https://github.com/NixOS/nixpkgs/pull/123904 , updating the channel should already fix the issue though:
nixpkgs.overlays = [
(_: prev: {
prev.linuxPackagesFor = kernel:
(prev.linuxPackagesFor kernel).extend (_: _: { ati_drivers_x11 = null; });
})
];
FWIW this is the workaround I had in my configuration before #123904 , updating the channel should already fix the issue though:
nixpkgs.overlays = [ (_: prev: { prev.linuxPackagesFor = kernel: (prev.linuxPackagesFor kernel).extend (_: _: { ati_drivers_x11 = null; }); }) ];
Workaround didn't work for me :( and Just syncup from and nofix yet in the channel. will; wait for a wile
@mudrii Just took a look at your config, the workaround isn't working because it isn't applied to the unstable channel that is imported here: https://github.com/mudrii/nixlenovodot/blob/master/configuration.nix#L9 . It should look like this:
let
unstable = import <unstable> {
config.allowUnfree = true;
overlays = [
(_: prev: {
prev.linuxPackagesFor = kernel:
(prev.linuxPackagesFor kernel).extend (_: _: { ati_drivers_x11 = null; });
})
];
};
in
Alos can you post the output of nix-shell -p nix-info --run "nix-info -m"
again (after updating yout channels), would be good to know what nixpkgs revision this happens on.
Thank you @samuelgrf I got confused on unstable part. made the change but the same error
head -18 /etc/nixos/configuration.nix
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ inputs, config, options, pkgs, lib, callPackage, ... }:
let
unstable = import <unstable> {
config.allowUnfree = true;
overlays = [
(_: prev: {
prev.linuxPackagesFor = kernel:
(prev.linuxPackagesFor kernel).extend (_: _: { ati_drivers_x11 = null; });
})
];
};
in
______________________________________________________________________________________________
sudo nixos-rebuild switch
building Nix...
building the system configuration...
error: ati drivers are no longer supported by any kernel >=4.1
(use '--show-trace' to show detailed location information)
______________________________________________________________________________________________
nix-shell -p nix-info --run "nix-info -m" 2409ms
- system: `"x86_64-linux"`
- host os: `Linux 5.11.21, NixOS, 20.09.4159.a7064e23973 (Nightingale)`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.4pre20210503_6d2553a`
- channels(root): `"home-manager-20.09, nixos-20.09.4169.ac60476ed94, unstable-21.05pre291486.900115a4f7f"`
- channels(mudrii): `""`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
______________________________________________________________________________________________
sudo cat /root/.nix-channels
https://github.com/rycee/home-manager/archive/release-20.09.tar.gz home-manager
https://nixos.org/channels/nixos-20.09 nixos
https://nixos.org/channels/nixos-unstable unstable
Note: IS the issue in any way related to unstable pointing to 21.05pre?
I made a mistake while searching through the git log, the fix is not included in the channel at the moment :(.
It would have been included in the latest Hydra evaluation but the tested build job has failed, see: https://hydra.nixos.org/job/nixos/trunk-combined/tested . The channel will only update when the tested build job succeeds on a future Hydra evaluation.
@mudrii As for the workaround, can you also add the overlay to home-manager.nix#L6 and any other import <unstable>
that I might have missed.
Thx @samuelgrf I tried all combinations and same results :(
@mudrii You should be able to override the channel with a local nixpkgs checkout including the fix by doing nixos-rebuild -I unstable=/path/to/nixpkgs
.
Yes I know but seems too much trouble :) I decided to revert back to a stable kernel until the issue is fixed and published into unstable
Appreciate your help
I'm pulling off master and am still encountering this issue when I try to build 5.11. Last commit ccb0f0080dbdb7155f45e107794f45a46b5a32ee.
Do you mind posting your configuration? If your modules and packages are being taken from master, this shouldn't occur
I had a line like:
boot.kernelPackages = pkgs.linuxPackages_latest;
Defined twice in two files (my configuration is splitted in different imports) and was getting the same error. If I pull either one off, then it builds fine.
(this worked fine before)
I'm starting to suspect that something is eagerly evaluating the entire package set. Which would force the throw
to be evaluated. Also doesn't help that there hasn't been another release since I put in the module fix https://status.nixos.org/
again this is running nixpkgs.git@master
not sure this is impacted by the release. Otherwise, yeah, I think the second line triggers the evaluation of the throw
for a reason I still can't understand.
@jonringer https://github.com/DieracDelta/flakes/blob/flakes/flake.nix with nix build .#nixosConfigurations.desktop.config.system.build.toplevel -L
. I apologize since my config files are pretty messy. The TLDR is that I am setting an overlay with the master's version of nixpkgs that generates a latest_kernel
package here: https://github.com/DieracDelta/flakes/blob/flakes/flake.nix#L194. Then I am importing https://github.com/DieracDelta/flakes/blob/flakes/hosts/hw/desktop.nix into my desktop configuration. This imports https://github.com/DieracDelta/flakes/blob/flakes/hosts/hw/shared.nix. None of these files seem particularly suspicious, and this was working on an earlier commit (before the ATI fix was pushed). I am not sure why it's failing. I'm also "pretty sure" that I'm not setting things twice. Perhaps I'm forcing a throw to be evaluated by setting something twice somewhere else. It is not boot.kernelPackages
, though as far as I can tell.
It's worth mentioning that you should be able to reproduce this without actually building anything by cloning the repo and running the build command. The ATI error happens immediately.
I can confirm this occurs when boot.kernelPackages is set twice. In my case it was in my own configuration.nix and in a nixos-hardware module.
In my case kernelPackages
set single for each machine config.
if i set unstable.linuxPackages_latest
i catching this issue. If i use kernel from nixos-small or stable i have other problem this nvidia driver on my laptop.
There shouldn't be a need to pick kernel packages from master.... as the kernel versions should be gettting updated in lockstep
[11:06:57] jon@jon-desktop /home/jon/projects/nixpkgs (master)
$ nix eval .#linuxPackages_5_10.kernel.version
"5.10.37
[11:07:30] jon@jon-desktop /home/jon/projects/nixpkgs (release-20.09)
$ nix eval .#linuxPackages_5_10.kernel.version
"5.10.37"
If a broken nvidia package is forcing people to choose, then we should fix that module.
@jonringer the reason I was pulling kernel packages from master was because on stable the specific versions of binutils and elfutils conflict with each other. Specifically, I was running into this issue when I was compiling the vendor-reset
kernel module. Master's stdenv had a more recent version of binutils, fixing this issue. Maybe binutils will be bumped in the next release (I have not checked on this).
If a broken nvidia package is forcing people to choose, then we should fix that module.
@jonringer - I broke that particular problem out into a separate issue; should have written it a long time ago but figured it'd be solved with 21.05 ;)
It should :), works on unstable
Just another "oh hey I'm fixed" voice chiming in to confirm that a single boot.kernelPackages = unstable.linuxPackages
was breaking on this and moving to stable.linuxPackages
got me rebuilding again.
FWIW this is the workaround I had in my configuration before #123904 , updating the channel should already fix the issue though:
nixpkgs.overlays = [ (_: prev: { prev.linuxPackagesFor = kernel: (prev.linuxPackagesFor kernel).extend (_: _: { ati_drivers_x11 = null; }); }) ];
It worked for me. Just had to change prev.linuxPackagesFor = kernel:
for linuxPackagesFor = kernel:
.
nixpkgs.overlays = [
(_: prev: {
linuxPackagesFor = kernel:
(prev.linuxPackagesFor kernel).extend (_: _: { ati_drivers_x11 = null; });
})
];
Any chance this would be fixed? Workarounds didn't worked for me.
@alsvartr the fix @jnetod proposed for @samuelgrf works for me https://github.com/mudrii/nixlenovodot/blob/master/configuration.nix#L9
Hmm, I have a suspicion that something is eagerly evaluating the package set, which causes the throw
to be evaluated. This shouldn't be the case... but it might be prudent to just remove the entry altogether.
I've been trying to understand what was evaluating it. The only guess I had was the apply
in the boot.kernelPackages
option, but I don't know how to verify that.
Post updating to 21.05 issue went away
FWIW, issue is still present on master
.
I suspect that ati module is not properly removed given running tab completion, ati_drivers_x11
appers.
[... /nixpkgs]$ nix eval .#linuxPackages_5_12.
Display all 106 possibilities? (y or n)
.#linuxPackages_5_12.__unfix__ .#linuxPackages_5_12.evdi .#linuxPackages_5_12.mwprocapture .#linuxPackages_5_12.r8125 .#linuxPackages_5_12.tmon
.#linuxPackages_5_12.acpi_call .#linuxPackages_5_12.exfat-nofuse .#linuxPackages_5_12.mxu11x0 .#linuxPackages_5_12.r8168 .#linuxPackages_5_12.tp_smapi
.#linuxPackages_5_12.akvcam .#linuxPackages_5_12.extend .#linuxPackages_5_12.ndiswrapper .#linuxPackages_5_12.recurseForDerivations .#linuxPackages_5_12.turbostat
.#linuxPackages_5_12.amdgpu-pro .#linuxPackages_5_12.facetimehd .#linuxPackages_5_12.netatop .#linuxPackages_5_12.rtl8192eu .#linuxPackages_5_12.tuxedo-keyboard
.#linuxPackages_5_12.anbox .#linuxPackages_5_12.fwts-efi-runtime .#linuxPackages_5_12.nvidiaPackages .#linuxPackages_5_12.rtl8723bs .#linuxPackages_5_12.usbip
.#linuxPackages_5_12.asus-wmi-sensors .#linuxPackages_5_12.gcadapter-oc-kmod .#linuxPackages_5_12.nvidia_x11 .#linuxPackages_5_12.rtl8812au .#linuxPackages_5_12.v4l2loopback
.#linuxPackages_5_12.ati_drivers_x11 .#linuxPackages_5_12.hid-nintendo .#linuxPackages_5_12.nvidia_x11_beta .#linuxPackages_5_12.rtl8814au .#linuxPackages_5_12.v86d
.#linuxPackages_5_12.batman_adv .#linuxPackages_5_12.hyperv-daemons .#linuxPackages_5_12.nvidia_x11_legacy340 .#linuxPackages_5_12.rtl8821au .#linuxPackages_5_12.vendor-reset
.#linuxPackages_5_12.bbswitch .#linuxPackages_5_12.intel-speed-select .#linuxPackages_5_12.nvidia_x11_legacy390 .#linuxPackages_5_12.rtl8821ce .#linuxPackages_5_12.vhba
.#linuxPackages_5_12.bcc .#linuxPackages_5_12.isHardened .#linuxPackages_5_12.nvidia_x11_vulkan_beta .#linuxPackages_5_12.rtl8821cu .#linuxPackages_5_12.virtualbox
.#linuxPackages_5_12.bpftrace .#linuxPackages_5_12.isLibre .#linuxPackages_5_12.nvidiabl .#linuxPackages_5_12.rtl88x2bu .#linuxPackages_5_12.virtualboxGuestAdditions
.#linuxPackages_5_12.broadcom_sta .#linuxPackages_5_12.isZen .#linuxPackages_5_12.oci-seccomp-bpf-hook .#linuxPackages_5_12.rtl88xxau-aircrack .#linuxPackages_5_12.wireguard
.#linuxPackages_5_12.callPackage .#linuxPackages_5_12.isgx .#linuxPackages_5_12.odp-dpdk .#linuxPackages_5_12.rtlwifi_new .#linuxPackages_5_12.x86_energy_perf_policy
.#linuxPackages_5_12.can-isotp .#linuxPackages_5_12.it87 .#linuxPackages_5_12.openafs .#linuxPackages_5_12.rtw88 .#linuxPackages_5_12.xpadneo
.#linuxPackages_5_12.chipsec .#linuxPackages_5_12.ixgbevf .#linuxPackages_5_12.openafs_1_8 .#linuxPackages_5_12.sch_cake .#linuxPackages_5_12.zenpower
.#linuxPackages_5_12.cpupower .#linuxPackages_5_12.jool .#linuxPackages_5_12.openafs_1_9 .#linuxPackages_5_12.stdenv .#linuxPackages_5_12.zfs
.#linuxPackages_5_12.cryptodev .#linuxPackages_5_12.kernel .#linuxPackages_5_12.openrazer .#linuxPackages_5_12.sysdig .#linuxPackages_5_12.zfsStable
.#linuxPackages_5_12.ddcci-driver .#linuxPackages_5_12.kernelAtLeast .#linuxPackages_5_12.perf .#linuxPackages_5_12.system76 .#linuxPackages_5_12.zfsUnstable
.#linuxPackages_5_12.digimend .#linuxPackages_5_12.kernelOlder .#linuxPackages_5_12.phc-intel .#linuxPackages_5_12.system76-acpi
.#linuxPackages_5_12.dpdk .#linuxPackages_5_12.lttng-modules .#linuxPackages_5_12.pktgen .#linuxPackages_5_12.system76-io
.#linuxPackages_5_12.e1000e .#linuxPackages_5_12.mba6x_bl .#linuxPackages_5_12.ply .#linuxPackages_5_12.systemtap
.#linuxPackages_5_12.ena .#linuxPackages_5_12.mbp2018-bridge-drv .#linuxPackages_5_12.prl-tools .#linuxPackages_5_12.tbs
Sure enough it fails to evaluate.
[... /nixpkgs]$ nix eval .#linuxPackages_5_12.ati_drivers_x11
error: ati drivers are no longer supported by any kernel >=4.1
Even though grep "./ati.nix" nixos/modules/module-list.nix
returns nothing.
Nixpkgs git commit ID: 3cf17240f014282a1f40bc27e5fc7b21868f517a
Describe the bug During system update with 'nixos-rebuild switch' getting the error
error: ati drivers are no longer supported by any kernel >=4.1
To Reproduce Steps to reproduce the behavior:
Expected behavior System update
Additional context No ati drivers installed or specified in configuration.nix Current systems is using Nvidia drivers configuration and no other changes for config was done prior to getting the error .
Metadata Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.show-trace