palik
December 19, 2024, 8:27am
1
nixos-rebuild switch --upgrade
fails with error message
error: Package ‘ipu6-drivers-unstable-2024-10-10’ in /nix/store/7l0qs803mn9m9pxzwj883fdlmlh37w71-nixos-24.11/nixos/pkgs/os-specific/linux/ipu6-drivers/default.nix:49 is marked as broken, refusing to evaluate.
With NIXPKGS_ALLOW_BROKEN=1
rebuild fails presumably because header files are missing
trying https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_131.0.6778.139-1_amd64.deb
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
/build/source/drivers/media/pci/intel/ipu6/../ipu-trace.c:15:10: fatal error: ipu-platform-regs.h: No such file or directory
15 | #include "ipu-platform-regs.h"
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Same issue was reported on the gist NixOS config on Dell XPS 13 Plus 9320 .
I would appreciate any help
1 Like
NixOS:master
← flokli:ipu6-6.12
opened 06:39PM - 18 Nov 24 UTC
There's been some header files being moved around, and these paches are necessar… y to build on Linux >= 6.12.
Tested compilation with 6.11 and 6.12.
<!--
^ Please summarise the changes you have done and explain why they are necessary here ^
For package updates please link to a changelog or describe changes, this helps your fellow maintainers discover breaking updates.
For new packages please briefly describe the package or provide a link to its homepage.
-->
## Things done
- Built on platform(s)
- [x] x86_64-linux
- [ ] aarch64-linux
- [ ] x86_64-darwin
- [ ] aarch64-darwin
- For non-Linux: Is sandboxing enabled in `nix.conf`? (See [Nix manual](https://nixos.org/manual/nix/stable/command-ref/conf-file.html))
- [ ] `sandbox = relaxed`
- [ ] `sandbox = true`
- [ ] Tested, as applicable:
- [NixOS test(s)](https://nixos.org/manual/nixos/unstable/index.html#sec-nixos-tests) (look inside [nixos/tests](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests))
- and/or [package tests](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#package-tests)
- or, for functions and "core" functionality, tests in [lib/tests](https://github.com/NixOS/nixpkgs/blob/master/lib/tests) or [pkgs/test](https://github.com/NixOS/nixpkgs/blob/master/pkgs/test)
- made sure NixOS tests are [linked](https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#linking-nixos-module-tests-to-a-package) to the relevant packages
- [ ] Tested compilation of all packages that depend on this change using `nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"`. Note: all changes have to be committed, also see [nixpkgs-review usage](https://github.com/Mic92/nixpkgs-review#usage)
- [ ] Tested basic functionality of all binary files (usually in `./result/bin/`)
- [25.05 Release Notes](https://github.com/NixOS/nixpkgs/blob/master/nixos/doc/manual/release-notes/rl-2505.section.md) (or backporting [24.11](https://github.com/NixOS/nixpkgs/blob/master/nixos/doc/manual/release-notes/rl-2411.section.md) and [25.05](https://github.com/NixOS/nixpkgs/blob/master/nixos/doc/manual/release-notes/rl-2505.section.md) Release notes)
- [ ] (Package updates) Added a release notes entry if the change is major or breaking
- [ ] (Module updates) Added a release notes entry if the change is significant
- [ ] (Module addition) Added a release notes entry if adding a new NixOS module
- [x] Fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md).
<!--
To help with the large amounts of pull requests, we would appreciate your
reviews of other pull requests, especially simple package updates. Just leave a
comment describing what you have tested in the relevant package/service.
Reviewing helps to reduce the average time-to-merge for everyone.
Thanks a lot if you do!
List of open PRs: https://github.com/NixOS/nixpkgs/pulls
Reviewing guidelines: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#reviewing-contributions
-->
---
Add a :+1: [reaction] to [pull requests you find important].
[reaction]: https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/
[pull requests you find important]: https://github.com/NixOS/nixpkgs/pulls?q=is%3Aopen+sort%3Areactions-%2B1-desc
It was fixed a month ago, update your inputs?
1 Like
palik
December 21, 2024, 8:39am
3
Thank you @waffle8946 , that patch is not available for the 24.11 channel. However rebuild on unstable channel went faultlessly.
$ nix-info -m
- system: `"x86_64-linux"`
- host os: `Linux 6.12.5, NixOS, 25.05 (Warbler), 25.05beta723344.d3c42f187194`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.24.11`
- channels(root): `"nixos"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
However there is a followup issue with the camera.
[ 25.769288] ------------[ cut here ]------------
[ 25.769291] WARNING: CPU: 9 PID: 723 at kernel/dma/mapping.c:597 dma_alloc_attrs+0x14e/0x160
[ 25.769297] Modules linked in: snd_sof_utils snd_soc_acpi_intel_match soundwire_generic_allocation snd_soc_acpi xt_pkttype soundwire_bus xt_LOG intel_ipu6_psys(O+) xe nf_log_syslog snd_soc_avs xt_tcpudp intel_ipu6_isys mac80211 nft_compat snd_soc_hda_codec videobuf2_dma_sg snd_hda_ext_core videobuf2_memops videobuf2_v4l2 snd_soc_core videobuf2_common snd_compress ac97_bus snd_pcm_dmaengine ivsc_csi snd_hda_intel ptp ivsc_ace snd_intel_dspcfg pps_core snd_intel_sdw_acpi libarc4 snd_hda_codec nf_tables intel_uncore_frequency intel_uncore_frequency_common sch_fq_codel snd_hda_core cmdlinepart nls_iso8859_1 drm_gpuvm snd_hwdep x86_pkg_temp_thermal iTCO_wdt iwlwifi intel_powerclamp spi_pxa2xx_platform spi_nor processor_thermal_device_pci btusb nls_cp437 intel_pmc_bxt drm_exec snd_pcm dw_dmac processor_thermal_device dw_dmac_core coretemp mtd processor_thermal_wt_hint dell_pc cdc_ncm(+) vfat gpu_sched mei_hdcp watchdog btrtl processor_thermal_rfim snd_timer tpm_crb intel_ish_ipc(+) spi_pxa2xx_core crct10dif_pclmul
[ 25.769336] platform_profile mei_pxp ucsi_acpi dell_wmi 8250_dw processor_thermal_rapl crc32_pclmul fat mei_vsc intel_rapl_msr spi_ljca i2c_ljca gpio_ljca snd_ctl_led cfg80211 dell_laptop v4l2loopback(O) polyval_clmulni snd intel_ipu6 cdc_ether btintel typec_ucsi intel_rapl_common polyval_generic spi_intel_pci intel_ishtp drm_suballoc_helper mei_me i2c_i801 intel_lpss_pci usbnet dell_smbios processor_thermal_wt_req ghash_clmulni_intel igen6_edac btbcm intel_lpss i2c_mux processor_thermal_power_floor btmtk rapl dcdbas idma64 tiny_power_button intel_cstate bluetooth intel_uncore psmouse dell_wmi_sysman dell_wmi_ddv dell_smm_hwmon typec ov01a10(O) tpm_tis firmware_attributes_class dell_wmi_descriptor mii wmi_bmof mei usb_ljca soundcore i2c_smbus mousedev spi_intel joydev virt_dma 8250_pci rfkill edac_core ipu_bridge drm_ttm_helper tpm_tis_core processor_thermal_mbox roles button loop battery cpufreq_powersave v4l2_fwnode intel_skl_int3472_tps68470 xt_nat v4l2_async int3403_thermal tps68470_regulator nf_nat
[ 25.769378] int340x_thermal_zone clk_tps68470 mei_vsc_hw i2c_hid_acpi videodev intel_pmc_core i2c_hid rtc_cmos nf_conntrack mc intel_vsec int3400_thermal intel_skl_int3472_discrete intel_hid intel_skl_int3472_common acpi_thermal_rel pmt_telemetry sparse_keymap acpi_pad pinctrl_tigerlake pmt_class nf_defrag_ipv6 acpi_tad nf_defrag_ipv4 libcrc32c evdev ac mac_hid br_netfilter veth tun serio_raw tap macvlan bridge stp llc kvm_intel kvm fuse efi_pstore configfs nfnetlink efivarfs dmi_sysfs ip_tables x_tables autofs4 ext4 crc32c_generic crc16 mbcache jbd2 dm_crypt cbc encrypted_keys trusted asn1_encoder tee tpm rng_core libaescfb ecdh_generic ecc hid_generic usbhid hid i915 input_leds led_class atkbd i2c_algo_bit drm_buddy libps2 crc32c_intel ttm sha512_ssse3 sha256_ssse3 xhci_pci vivaldi_fmap nvme intel_gtt thunderbolt sha1_ssse3 xhci_hcd drm_display_helper nvme_core aesni_intel gf128mul crypto_simd cryptd video cec nvme_auth i8042 wmi serio backlight dm_mod dax
[ 25.769427] CPU: 9 UID: 0 PID: 723 Comm: (udev-worker) Tainted: G U O 6.12.5 #1-NixOS
[ 25.769430] Tainted: [U]=USER, [O]=OOT_MODULE
[ 25.769431] Hardware name: Dell Inc. XPS 9320/0CW9KM, BIOS 2.14.0 07/09/2024
[ 25.769433] RIP: 0010:dma_alloc_attrs+0x14e/0x160
[ 25.769435] Code: ff ff 90 0f 0b 90 45 31 ff 5b 5d 4c 89 f8 41 5c 41 5d 41 5e 41 5f 31 d2 31 c9 31 f6 31 ff 45 31 c0 45 31 c9 c3 cc cc cc cc 90 <0f> 0b 90 e9 e9 fe ff ff 45 31 ff e9 1e ff ff ff 66 90 90 90 90 90
[ 25.769437] RSP: 0018:ffffb1c780ae7be0 EFLAGS: 00010246
[ 25.769439] RAX: 0000000000000000 RBX: ffff8e3a81aeac00 RCX: 0000000000000cc0
[ 25.769441] RDX: ffff8e3a93f75018 RSI: 0000000000002000 RDI: ffff8e3a81aeac00
[ 25.769442] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
[ 25.769443] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000002000
[ 25.769445] R13: ffff8e3a93f75018 R14: 0000000000000000 R15: ffff8e3a93f8d028
[ 25.769446] FS: 00007eff3bf8d680(0000) GS:ffff8e41ef680000(0000) knlGS:0000000000000000
[ 25.769448] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 25.769449] CR2: 000000000042b120 CR3: 0000000107fa0000 CR4: 0000000000f52ef0
[ 25.769451] PKRU: 55555554
[ 25.769452] Call Trace:
[ 25.769454] <TASK>
[ 25.769457] ? __warn+0x89/0x130
[ 25.769460] ? dma_alloc_attrs+0x14e/0x160
[ 25.769462] ? report_bug+0x172/0x1a0
[ 25.769465] ? handle_bug+0x61/0xb0
[ 25.769468] ? exc_invalid_op+0x17/0x80
[ 25.769470] ? asm_exc_invalid_op+0x1a/0x20
[ 25.769474] ? dma_alloc_attrs+0x14e/0x160
[ 25.769477] ipu6_psys_probe+0x321/0x640 [intel_ipu6_psys]
[ 25.769488] ? __pfx_ipu6_psys_probe+0x10/0x10 [intel_ipu6_psys]
[ 25.769496] auxiliary_bus_probe+0x3f/0xa0
[ 25.769500] really_probe+0xd3/0x3a0
[ 25.769503] ? __pfx___driver_attach+0x10/0x10
[ 25.769506] __driver_probe_device+0x78/0x160
[ 25.769509] driver_probe_device+0x1f/0xa0
[ 25.769512] __driver_attach+0xea/0x1e0
[ 25.769515] bus_for_each_dev+0x89/0xe0
[ 25.769518] bus_add_driver+0x14d/0x280
[ 25.769521] driver_register+0x5d/0x120
[ 25.769523] __auxiliary_driver_register+0x72/0xf0
[ 25.769526] ? __pfx_ipu6_psys_aux_driver_init+0x10/0x10 [intel_ipu6_psys]
[ 25.769534] do_one_initcall+0x58/0x330
[ 25.769538] do_init_module+0x90/0x280
[ 25.769542] __do_sys_init_module+0x18a/0x1c0
[ 25.769546] do_syscall_64+0xb7/0x210
[ 25.769550] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 25.769553] RIP: 0033:0x7eff3c11891e
[ 25.769572] Code: 48 8b 0d f5 84 0d 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 af 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d c2 84 0d 00 f7 d8 64 89 01 48
[ 25.769573] RSP: 002b:00007ffd45ab2e48 EFLAGS: 00000246 ORIG_RAX: 00000000000000af
[ 25.769588] RAX: ffffffffffffffda RBX: 000055af48e38900 RCX: 00007eff3c11891e
[ 25.769589] RDX: 00007eff3b8de304 RSI: 000000000026d6d8 RDI: 00007eff3a30b010
[ 25.769590] RBP: 00007eff3a30b010 R08: 0000000000000000 R09: 0000000000000000
[ 25.769591] R10: 0000000000000000 R11: 0000000000000246 R12: 00007eff3b8de304
[ 25.769592] R13: 0000000000020000 R14: 000055af48e33270 R15: 0000000000000000
[ 25.769595] </TASK>
[ 25.769596] ---[ end trace 0000000000000000 ]---
I see, then it should likely be backported, which could be requested for on the nixpkgs github repo
palik
January 13, 2025, 3:14pm
6
Opened an issue kernel intel_ipu6_psys bug for the kernel trace
1 Like