NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.48k stars 14.4k forks source link

Build failure: linuxPackages_latest.broadcom_sta #359375

Closed bbigras closed 1 week ago

bbigras commented 2 weeks ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. build linuxPackages_latest.broadcom_sta

Build log

Build Log ``` Running phase: configurePhase no configure script, doing nothing Running phase: buildPhase build flags: SHELL=/nix/store/0irlcqx2n3qm6b1pc9rsd2i8qpvcccaj-bash-5.2p37/bin/bash KBASE=/nix/store/69rmkmic4ifh9xbv6m23cxa8kp7l0328-linux-6.12.1-dev/lib/modules/6.12.1 KBUILD_NOPEDANTIC=1 make -C /nix/store/69rmkmic4ifh9xbv6m23cxa8kp7l0328-linux-6.12.1-dev/lib/modules/6.12.1/build M=`pwd` make[1]: Entering directory '/nix/store/69rmkmic4ifh9xbv6m23cxa8kp7l0328-linux-6.12.1-dev/lib/modules/6.12.1/build' CFG80211 API is prefered for this kernel version Using CFG80211 API CC [M] /build/broadcom-sta/src/shared/linux_osl.o CC [M] /build/broadcom-sta/src/wl/sys/wl_linux.o /build/broadcom-sta/src/wl/sys/wl_linux.c:59:10: fatal error: asm/unaligned.h: No such file or directory 59 | #include | ^~~~~~~~~~~~~~~~~ compilation terminated. make[3]: *** [/nix/store/69rmkmic4ifh9xbv6m23cxa8kp7l0328-linux-6.12.1-dev/lib/modules/6.12.1/source/scripts/Makefile.build:229: /build/broadcom-sta/src/wl/sys/wl_linux.o] Error 1 make[2]: *** [/nix/store/69rmkmic4ifh9xbv6m23cxa8kp7l0328-linux-6.12.1-dev/lib/modules/6.12.1/source/Makefile:1936: /build/broadcom-sta] Error 2 make[1]: *** [/nix/store/69rmkmic4ifh9xbv6m23cxa8kp7l0328-linux-6.12.1-dev/lib/modules/6.12.1/source/Makefile:224: __sub-make] Error 2 make[1]: Leaving directory '/nix/store/69rmkmic4ifh9xbv6m23cxa8kp7l0328-linux-6.12.1-dev/lib/modules/6.12.1/build' make: *** [Makefile:173: all] Error 2 error: builder for '/nix/store/w2wqw6ra75saj7f78n94zg8gk68lwyk1-broadcom-sta-6.30.223.271-6.12.1.drv' failed with exit code 2; last 25 log lines: > patching file src/wl/sys/wl_iw.c > applying patch /nix/store/6xlyf3j0nv4ai7771hf0kbwsvdjl6hmb-source/wl-kmod-026_kernel_6.10_fix_empty_body_in_if_warning.patch > patching file src/wl/sys/wl_linux.c > applying patch /nix/store/6xlyf3j0nv4ai7771hf0kbwsvdjl6hmb-source/wl-kmod-027_wpa_supplicant-2.11_add_max_scan_ie_len.patch > patching file src/wl/sys/wl_cfg80211_hybrid.c > Running phase: updateAutotoolsGnuConfigScriptsPhase > Running phase: configurePhase > no configure script, doing nothing > Running phase: buildPhase > build flags: SHELL=/nix/store/0irlcqx2n3qm6b1pc9rsd2i8qpvcccaj-bash-5.2p37/bin/bash KBASE=/nix/store/69rmkmic4ifh9xbv6m23cxa8kp7l0328-linux-6.12.1-dev/lib/modules/6.12.1 > KBUILD_NOPEDANTIC=1 make -C /nix/store/69rmkmic4ifh9xbv6m23cxa8kp7l0328-linux-6.12.1-dev/lib/modules/6.12.1/build M=`pwd` > make[1]: Entering directory '/nix/store/69rmkmic4ifh9xbv6m23cxa8kp7l0328-linux-6.12.1-dev/lib/modules/6.12.1/build' > CFG80211 API is prefered for this kernel version > Using CFG80211 API > CC [M] /build/broadcom-sta/src/shared/linux_osl.o > CC [M] /build/broadcom-sta/src/wl/sys/wl_linux.o > /build/broadcom-sta/src/wl/sys/wl_linux.c:59:10: fatal error: asm/unaligned.h: No such file or directory > 59 | #include > | ^~~~~~~~~~~~~~~~~ > compilation terminated. > make[3]: *** [/nix/store/69rmkmic4ifh9xbv6m23cxa8kp7l0328-linux-6.12.1-dev/lib/modules/6.12.1/source/scripts/Makefile.build:229: /build/broadcom-sta/src/wl/sys/wl_linux.o] Error 1 > make[2]: *** [/nix/store/69rmkmic4ifh9xbv6m23cxa8kp7l0328-linux-6.12.1-dev/lib/modules/6.12.1/source/Makefile:1936: /build/broadcom-sta] Error 2 > make[1]: *** [/nix/store/69rmkmic4ifh9xbv6m23cxa8kp7l0328-linux-6.12.1-dev/lib/modules/6.12.1/source/Makefile:224: __sub-make] Error 2 > make[1]: Leaving directory '/nix/store/69rmkmic4ifh9xbv6m23cxa8kp7l0328-linux-6.12.1-dev/lib/modules/6.12.1/build' > make: *** [Makefile:173: all] Error 2 For full logs, run 'nix log /nix/store/w2wqw6ra75saj7f78n94zg8gk68lwyk1-broadcom-sta-6.30.223.271-6.12.1.drv'. ```

Additional context

Metadata

Notify maintainers


Note for maintainers: Please tag this issue in your PR.


Add a :+1: reaction to issues you find important.

j0hax commented 2 weeks ago

This is due to https://github.com/torvalds/linux/commit/5f60d5f6bbc1. I am currently playing around with patches from other distros, such as this one from Manjaro. Will open a pull request once I get 6.12 working on my MacBook 😄