Broadcom wl module fails to load after upgrade to Fedora 40

When upgrading to Fedora 40 the Broadcom wl module failed to load. The fix from Broadcom wl module fails to load after upgrade to Fedora 38 worked, but I’m guessing the intended behavior is for the the module to build and load automatically after the upgrade. Is this worth filing a bug report for?

Note, I’m about to upgrade to F41 so I can gather needed info for the bug report prior to that upgrade.

Is the broadcom-wl package installed from rpmfusion? Please show us the output of dnf list --installed broadcom-wl

If it is and you fail to wait at least 5 minutes after an update before rebooting it seems likely that the build of the module may have been interrupted. Rebuilding it can be done with sudo akmods --force --rebuild

Problems after upgrades with modules for WiFi, bluetooth, ethernet, and sound are not unusual, so I find it important to have USB dongles that are well supported with linux kernel drivers to use while waiting for issues with out-of-kernel drivers to be fixed.

broadcom-wl contains support files.

There are build logs in /var/log/akmods. Here is what you see after recovering from a failed build:

tail /var/log/akmods/akmods.log
2024/12/17 21:25:49 akmods: Hint: Some kmods were ignored or failed to build or install.
2024/12/17 21:25:49 akmods: You can try to rebuild and install them by by calling
2024/12/17 21:25:49 akmods: '/usr/sbin/akmods --force' as root.
2024/12/18 08:42:37 akmods: Checking kmods exist for 6.12.4-200.fc41.x86_64
2024/12/18 08:42:37 akmods: Building and installing wl-kmod
2024/12/18 08:42:37 akmods: Building RPM using the command '/usr/sbin/akmodsbuild --kernels 6.12.4-200.fc41.x86_64 /usr/src/akmods/wl-kmod.latest'
2024/12/18 08:42:46 akmods: Installing newly built rpms
2024/12/18 08:42:46 akmods: DNF detected
2024/12/18 08:42:59 akmods: Successful.
2024/12/19 14:26:25 akmods: Checking kmods exist for 6.12.4-200.fc41.x86_64

Yes, it is.

$ dnf list --installed broadcom-wl
Installed Packages
broadcom-wl.noarch            6.30.223.271-23.fc40            @rpmfusion-nonfree

That could be the problem. I thought the akmods were built on boot (which I believe is how DKMS does it), so it wouldn’t have occurred to me to wait before rebooting.

I don’t see anything that looks like an error in /var/log/akmods/akmods.log:

2024/12/04 23:30:12 akmods: Checking kmods exist for 6.11.5-100.fc39.x86_64
2024/12/12 00:18:28 akmods: Checking kmods exist for 6.11.5-100.fc39.x86_64
2024/12/18 23:21:07 akmods: Checking kmods exist for 6.11.9-100.fc39.x86_64
2024/12/18 23:21:07 akmods: Building and installing wl-kmod
2024/12/18 23:21:07 akmods: Building RPM using the command '/usr/sbin/akmodsbuild --kernels 6.11.9-100.fc39.x86_64 /usr/src/akmods/wl-kmod.latest'
2024/12/18 23:21:24 akmods: Installing newly built rpms
2024/12/18 23:21:24 akmods: DNF detected
2024/12/18 23:21:45 akmods: Successful.
2024/12/18 23:30:24 akmods: Checking kmods exist for 6.11.9-100.fc39.x86_64
2024/12/19 00:50:55 akmods: Checking kmods exist for 6.12.4-100.fc40.x86_64
2024/12/19 00:50:55 akmods: Building and installing wl-kmod
2024/12/19 00:50:55 akmods: Building RPM using the command '/usr/sbin/akmodsbuild --kernels 6.12.4-100.fc40.x86_64 /usr/src/akmods/wl-kmod.latest'
2024/12/19 00:51:08 akmods: Installing newly built rpms
2024/12/19 00:51:08 akmods: DNF detected
2024/12/19 06:56:57 akmods: Checking kmods exist for 6.12.4-100.fc40.x86_64
2024/12/19 06:57:53 akmods: Checking kmods exist for 6.12.4-100.fc40.x86_64
2024/12/19 06:58:04 akmods: Checking kmods exist for 6.12.4-100.fc40.x86_64
2024/12/19 23:45:25 akmods: Checking kmods exist for 6.12.4-100.fc40.x86_64

The build logs are found in /var/cache/akmods/ in a subdirectory for each akmods package.

Here a sample of what’s in /var/cache/akmods/wl/.last.log (had to remove some portions to stay within the post length limit):

2024/12/19 00:50:55 akmods: Building RPM using the command '/usr/sbin/akmodsbuild --kernels 6.12.4-100.fc40.x86_64 /usr/src/akmods/wl-kmod.latest'
/tmp/akmods.caYc4WVa/results/kmod-wl-6.12.4-100.fc40.x86_64-6.30.223.271-54.fc40.x86_64.rpm
2024/12/19 00:51:08 akmodsbuild: * Rebuilding /usr/src/akmods/wl-kmod.latest for kernel(s) 6.12.4-100.fc40.x86_64: Installing /usr/src/akmods/wl-kmod.latest
2024/12/19 00:51:08 akmodsbuild: Building target platforms: x86_64
2024/12/19 00:51:08 akmodsbuild: Building for target x86_64
2024/12/19 00:51:08 akmodsbuild: setting SOURCE_DATE_EPOCH=1733788800
2024/12/19 00:51:08 akmodsbuild: Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.wqEcFj
2024/12/19 00:51:08 akmodsbuild: + umask 022
2024/12/19 00:51:08 akmodsbuild: + cd /tmp/akmodsbuild.Gb1yVVQX//BUILD
2024/12/19 00:51:08 akmodsbuild: + kmodtool --target x86_64 --repo rpmfusion --kmodname wl-kmod --filterfile /tmp/akmodsbuild.Gb1yVVQX/SOURCES/wl-kmod-kmodtool-excludekernel-filterfile --akmod --for-kernels 6.12.4-100.fc40.x86_64

<snip>

2024/12/19 00:51:08 akmodsbuild: + export LDFLAGS
2024/12/19 00:51:08 akmodsbuild: + LT_SYS_LIBRARY_PATH=/usr/lib64:
2024/12/19 00:51:08 akmodsbuild: + export LT_SYS_LIBRARY_PATH
2024/12/19 00:51:08 akmodsbuild: + CC=gcc
2024/12/19 00:51:08 akmodsbuild: + export CC
2024/12/19 00:51:08 akmodsbuild: + CXX=g++
2024/12/19 00:51:08 akmodsbuild: + export CXX
2024/12/19 00:51:08 akmodsbuild: + cd wl-kmod-6.30.223.271
2024/12/19 00:51:08 akmodsbuild: + for kernel_version in 6.12.4-100.fc40.x86_64___/usr/src/kernels/6.12.4-100.fc40.x86_64
2024/12/19 00:51:08 akmodsbuild: + pushd _kmod_build_6.12.4-100.fc40.x86_64
2024/12/19 00:51:08 akmodsbuild: /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271/_kmod_build_6.12.4-100.fc40.x86_64 /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271
2024/12/19 00:51:08 akmodsbuild: ++ pwd
2024/12/19 00:51:08 akmodsbuild: + make -C /usr/src/kernels/6.12.4-100.fc40.x86_64 M=/tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271/_kmod_build_6.12.4-100.fc40.x86_64 modules
2024/12/19 00:51:08 akmodsbuild: make: Entering directory '/usr/src/kernels/6.12.4-100.fc40.x86_64'
2024/12/19 00:51:08 akmodsbuild: CFG80211 API is prefered for this kernel version
2024/12/19 00:51:08 akmodsbuild: Using CFG80211 API
2024/12/19 00:51:08 akmodsbuild:   CC [M]  /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271/_kmod_build_6.12.4-100.fc40.x86_64/src/shared/linux_osl.o
2024/12/19 00:51:08 akmodsbuild:   CC [M]  /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271/_kmod_build_6.12.4-100.fc40.x86_64/src/wl/sys/wl_linux.o
2024/12/19 00:51:08 akmodsbuild: In file included from ./include/linux/srcu.h:21,
2024/12/19 00:51:08 akmodsbuild:                  from ./include/linux/notifier.h:16,
2024/12/19 00:51:08 akmodsbuild:                  from ./arch/x86/include/asm/uprobes.h:13,
2024/12/19 00:51:08 akmodsbuild:                  from ./include/linux/uprobes.h:50,
2024/12/19 00:51:08 akmodsbuild:                  from ./include/linux/mm_types.h:16,
2024/12/19 00:51:08 akmodsbuild:                  from ./include/linux/mmzone.h:22,
2024/12/19 00:51:08 akmodsbuild:                  from ./include/linux/gfp.h:7,
2024/12/19 00:51:08 akmodsbuild:                  from ./include/linux/umh.h:4,
2024/12/19 00:51:08 akmodsbuild:                  from ./include/linux/kmod.h:9,
2024/12/19 00:51:08 akmodsbuild:                  from ./include/linux/module.h:17,
2024/12/19 00:51:08 akmodsbuild:                  from /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271/_kmod_build_6.12.4-100.fc40.x86_64/src/include/linuxver.h:40,
2024/12/19 00:51:08 akmodsbuild:                  from /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271/_kmod_build_6.12.4-100.fc40.x86_64/src/wl/sys/wl_linux.c:27:
2024/12/19 00:51:08 akmodsbuild: /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271/_kmod_build_6.12.4-100.fc40.x86_64/src/wl/sys/wl_linux.c: In function ‘wl_down’:
2024/12/19 00:51:08 akmodsbuild: ./include/linux/workqueue.h:765:9: warning: call to ‘__warn_flushing_systemwide_wq’ declared with attribute warning: Please avoid flushing system-wide workqueues. [-Wattribute-warning]
2024/12/19 00:51:08 akmodsbuild:   765 |         __warn_flushing_systemwide_wq();                                \
2024/12/19 00:51:08 akmodsbuild:       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024/12/19 00:51:08 akmodsbuild: /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271/_kmod_build_6.12.4-100.fc40.x86_64/src/wl/sys/wl_linux.c:1499:25: note: in expansion of macro ‘flush_scheduled_work’
2024/12/19 00:51:08 akmodsbuild:  1499 |                         flush_scheduled_work();
2024/12/19 00:51:08 akmodsbuild:       |                         ^~~~~~~~~~~~~~~~~~~~
2024/12/19 00:51:08 akmodsbuild:   CC [M]  /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271/_kmod_build_6.12.4-100.fc40.x86_64/src/wl/sys/wl_iw.o
2024/12/19 00:51:08 akmodsbuild:   CC [M]  /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271/_kmod_build_6.12.4-100.fc40.x86_64/src/wl/sys/wl_cfg80211_hybrid.o
2024/12/19 00:51:08 akmodsbuild:   LD [M]  /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271/_kmod_build_6.12.4-100.fc40.x86_64/wl.o
2024/12/19 00:51:08 akmodsbuild: /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271/_kmod_build_6.12.4-100.fc40.x86_64/wl.o: warning: objtool: aes_cbc_encrypt_pad+0x4c: unannotated intra-function call
2024/12/19 00:51:08 akmodsbuild: CFG80211 API is prefered for this kernel version
2024/12/19 00:51:08 akmodsbuild: Using CFG80211 API
2024/12/19 00:51:08 akmodsbuild:   MODPOST /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271/_kmod_build_6.12.4-100.fc40.x86_64/Module.symvers
2024/12/19 00:51:08 akmodsbuild:   CC [M]  /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271/_kmod_build_6.12.4-100.fc40.x86_64/wl.mod.o
2024/12/19 00:51:08 akmodsbuild:   CC [M]  /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271/_kmod_build_6.12.4-100.fc40.x86_64/.module-common.o
2024/12/19 00:51:08 akmodsbuild:   LD [M]  /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271/_kmod_build_6.12.4-100.fc40.x86_64/wl.ko
2024/12/19 00:51:08 akmodsbuild:   BTF [M] /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271/_kmod_build_6.12.4-100.fc40.x86_64/wl.ko
2024/12/19 00:51:08 akmodsbuild: Skipping BTF generation for /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271/_kmod_build_6.12.4-100.fc40.x86_64/wl.ko due to unavailability of vmlinux
2024/12/19 00:51:08 akmodsbuild: make: Leaving directory '/usr/src/kernels/6.12.4-100.fc40.x86_64'
2024/12/19 00:51:08 akmodsbuild: + popd
2024/12/19 00:51:08 akmodsbuild: /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271
2024/12/19 00:51:08 akmodsbuild: + RPM_EC=0
2024/12/19 00:51:08 akmodsbuild: ++ jobs -p
2024/12/19 00:51:08 akmodsbuild: + exit 0
2024/12/19 00:51:08 akmodsbuild: Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.KQ0Rv5
2024/12/19 00:51:08 akmodsbuild: + umask 022
2024/12/19 00:51:08 akmodsbuild: + cd /tmp/akmodsbuild.Gb1yVVQX//BUILD
2024/12/19 00:51:08 akmodsbuild: + '[' /tmp/akmodsbuild.Gb1yVVQX/BUILDROOT/wl-kmod-6.30.223.271-54.fc40.x86_64 '!=' / ']'
2024/12/19 00:51:08 akmodsbuild: + rm -rf /tmp/akmodsbuild.Gb1yVVQX/BUILDROOT/wl-kmod-6.30.223.271-54.fc40.x86_64
2024/12/19 00:51:08 akmodsbuild: ++ dirname /tmp/akmodsbuild.Gb1yVVQX/BUILDROOT/wl-kmod-6.30.223.271-54.fc40.x86_64
2024/12/19 00:51:08 akmodsbuild: + mkdir -p /tmp/akmodsbuild.Gb1yVVQX/BUILDROOT
2024/12/19 00:51:08 akmodsbuild: + mkdir /tmp/akmodsbuild.Gb1yVVQX/BUILDROOT/wl-kmod-6.30.223.271-54.fc40.x86_64
2024/12/19 00:51:08 akmodsbuild: + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
2024/12/19 00:51:08 akmodsbuild: + export CFLAGS
2024/12/19 00:51:08 akmodsbuild: + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
2024/12/19 00:51:08 akmodsbuild: + export CXXFLAGS
2024/12/19 00:51:08 akmodsbuild: + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules '
2024/12/19 00:51:08 akmodsbuild: + export FFLAGS
2024/12/19 00:51:08 akmodsbuild: + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules '
2024/12/19 00:51:08 akmodsbuild: + export FCFLAGS
2024/12/19 00:51:08 akmodsbuild: + VALAFLAGS=-g
2024/12/19 00:51:08 akmodsbuild: + export VALAFLAGS
2024/12/19 00:51:08 akmodsbuild: + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn'
2024/12/19 00:51:08 akmodsbuild: + export RUSTFLAGS
2024/12/19 00:51:08 akmodsbuild: + LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '
2024/12/19 00:51:08 akmodsbuild: + export LDFLAGS
2024/12/19 00:51:08 akmodsbuild: + LT_SYS_LIBRARY_PATH=/usr/lib64:
2024/12/19 00:51:08 akmodsbuild: + export LT_SYS_LIBRARY_PATH
2024/12/19 00:51:08 akmodsbuild: + CC=gcc
2024/12/19 00:51:08 akmodsbuild: + export CC
2024/12/19 00:51:08 akmodsbuild: + CXX=g++
2024/12/19 00:51:08 akmodsbuild: + export CXX
2024/12/19 00:51:08 akmodsbuild: + cd wl-kmod-6.30.223.271
2024/12/19 00:51:08 akmodsbuild: + rm -rf /tmp/akmodsbuild.Gb1yVVQX/BUILDROOT/wl-kmod-6.30.223.271-54.fc40.x86_64
2024/12/19 00:51:08 akmodsbuild: + for kernel_version in 6.12.4-100.fc40.x86_64___/usr/src/kernels/6.12.4-100.fc40.x86_64
2024/12/19 00:51:08 akmodsbuild: + pushd _kmod_build_6.12.4-100.fc40.x86_64
2024/12/19 00:51:08 akmodsbuild: /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271/_kmod_build_6.12.4-100.fc40.x86_64 /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271
2024/12/19 00:51:08 akmodsbuild: + mkdir -p /tmp/akmodsbuild.Gb1yVVQX/BUILDROOT/wl-kmod-6.30.223.271-54.fc40.x86_64/lib/modules/6.12.4-100.fc40.x86_64/extra/wl/
2024/12/19 00:51:08 akmodsbuild: + install -m 0755 wl.ko /tmp/akmodsbuild.Gb1yVVQX/BUILDROOT/wl-kmod-6.30.223.271-54.fc40.x86_64/lib/modules/6.12.4-100.fc40.x86_64/extra/wl/
2024/12/19 00:51:08 akmodsbuild: + popd
2024/12/19 00:51:08 akmodsbuild: /tmp/akmodsbuild.Gb1yVVQX/BUILD/wl-kmod-6.30.223.271
2024/12/19 00:51:08 akmodsbuild: + chmod 0755 /tmp/akmodsbuild.Gb1yVVQX/BUILDROOT/wl-kmod-6.30.223.271-54.fc40.x86_64/lib/modules/6.12.4-100.fc40.x86_64/extra/wl/wl.ko
2024/12/19 00:51:08 akmodsbuild: + /usr/lib/rpm/check-buildroot
2024/12/19 00:51:08 akmodsbuild: + /usr/lib/rpm/redhat/brp-ldconfig
2024/12/19 00:51:08 akmodsbuild: + /usr/lib/rpm/brp-compress
2024/12/19 00:51:08 akmodsbuild: + /usr/lib/rpm/brp-strip /usr/bin/strip
2024/12/19 00:51:08 akmodsbuild: + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
2024/12/19 00:51:08 akmodsbuild: + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip
2024/12/19 00:51:08 akmodsbuild: + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
2024/12/19 00:51:08 akmodsbuild: + /usr/lib/rpm/check-rpaths
2024/12/19 00:51:08 akmodsbuild: + /usr/lib/rpm/redhat/brp-mangle-shebangs
2024/12/19 00:51:08 akmodsbuild: + /usr/lib/rpm/brp-remove-la-files
2024/12/19 00:51:08 akmodsbuild: + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j4
2024/12/19 00:51:08 akmodsbuild: + /usr/lib/rpm/redhat/brp-python-hardlink
2024/12/19 00:51:08 akmodsbuild: + '[' 1 -eq 1 ']'
2024/12/19 00:51:08 akmodsbuild: + '[' -x /usr/lib/rpm/brp-kmodsign ']'
2024/12/19 00:51:08 akmodsbuild: + '[' -e /etc/pki/akmods/private/private_key.priv ']'
2024/12/19 00:51:08 akmodsbuild: + '[' -e /etc/pki/akmods/certs/public_key.der ']'
2024/12/19 00:51:08 akmodsbuild: + /usr/lib/rpm/brp-kmodsign /etc/pki/akmods/private/private_key.priv /etc/pki/akmods/certs/public_key.der /tmp/akmodsbuild.Gb1yVVQX//BUILDROOT/wl-kmod-6.30.223.271-54.fc40.x86_64/lib/modules/6.12.4-100.fc40.x86_64/extra/wl/ /usr/src/kernels/6.12.4-100.fc40.x86_64
2024/12/19 00:51:08 akmodsbuild: + '[' 1 -eq 1 ']'
2024/12/19 00:51:08 akmodsbuild: + find /tmp/akmodsbuild.Gb1yVVQX//BUILDROOT/wl-kmod-6.30.223.271-54.fc40.x86_64/lib/modules/6.12.4-100.fc40.x86_64/extra/wl/ -type f -name '*.ko'
2024/12/19 00:51:08 akmodsbuild: + xargs xz
2024/12/19 00:51:08 akmodsbuild: Processing files: kmod-wl-6.12.4-100.fc40.x86_64-6.30.223.271-54.fc40.x86_64
2024/12/19 00:51:08 akmodsbuild: Provides: kernel-modules-for-kernel = 6.12.4-100.fc40.x86_64 kmod(wl.ko) kmod-wl-6.12.4-100.fc40.x86_64 = 6.30.223.271-54.fc40 kmod-wl-6.12.4-100.fc40.x86_64(x86-64) = 6.30.223.271-54.fc40 wl-kmod = 6.30.223.271-54.fc40
2024/12/19 00:51:08 akmodsbuild: Requires(interp): /bin/sh /bin/sh
2024/12/19 00:51:08 akmodsbuild: Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
2024/12/19 00:51:08 akmodsbuild: Requires(post): /bin/sh /usr/sbin/depmod
2024/12/19 00:51:08 akmodsbuild: Requires(postun): /bin/sh /usr/sbin/depmod
2024/12/19 00:51:08 akmodsbuild: Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/akmodsbuild.Gb1yVVQX/BUILDROOT/wl-kmod-6.30.223.271-54.fc40.x86_64
2024/12/19 00:51:08 akmodsbuild: Wrote: /tmp/akmodsbuild.Gb1yVVQX/RPMS/x86_64/kmod-wl-6.12.4-100.fc40.x86_64-6.30.223.271-54.fc40.x86_64.rpm
2024/12/19 00:51:08 akmodsbuild: Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.dJJbkI
2024/12/19 00:51:08 akmodsbuild: + umask 022
2024/12/19 00:51:08 akmodsbuild: + cd /tmp/akmodsbuild.Gb1yVVQX//BUILD
2024/12/19 00:51:08 akmodsbuild: + cd wl-kmod-6.30.223.271
2024/12/19 00:51:08 akmodsbuild: + /usr/bin/rm -rf /tmp/akmodsbuild.Gb1yVVQX/BUILDROOT/wl-kmod-6.30.223.271-54.fc40.x86_64
2024/12/19 00:51:08 akmodsbuild: + RPM_EC=0
2024/12/19 00:51:08 akmodsbuild: ++ jobs -p
2024/12/19 00:51:08 akmodsbuild: + exit 0
2024/12/19 00:51:08 akmodsbuild: Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.odPPsV
2024/12/19 00:51:08 akmodsbuild: + umask 022
2024/12/19 00:51:08 akmodsbuild: + cd /tmp/akmodsbuild.Gb1yVVQX//BUILD
2024/12/19 00:51:08 akmodsbuild: + rm -rf /tmp/akmodsbuild.Gb1yVVQX//BUILD/wl-kmod-6.30.223.271-SPECPARTS
2024/12/19 00:51:08 akmodsbuild: + rm -rf wl-kmod-6.30.223.271 wl-kmod-6.30.223.271.gemspec
2024/12/19 00:51:08 akmodsbuild: + RPM_EC=0
2024/12/19 00:51:08 akmodsbuild: ++ jobs -p
2024/12/19 00:51:08 akmodsbuild: + exit 0
2024/12/19 00:51:08 akmods: Installing newly built rpms
2024/12/19 00:51:08 akmods: DNF detected
Dependencies resolved.
================================================================================
 Package                        Arch   Version               Repository    Size
================================================================================
Installing:
 kmod-wl-6.12.4-100.fc40.x86_64 x86_64 6.30.223.271-54.fc40  @commandline 1.4 M

Transaction Summary
================================================================================
Install  1 Package

Total size: 1.4 M
Installed size: 1.4 M
Downloading Packages:
Running transaction check
Waiting for process with pid 2030 to finish.
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : kmod-wl-6.12.4-100.fc40.x86_64-6.30.223.271-54.fc40.   1/1 
  Running scriptlet: kmod-wl-6.12.4-100.fc40.x86_64-6.30.223.271-54.fc40.   1/1 
warning: %post(kmod-wl-6.12.4-100.fc40.x86_64-6.30.223.271-54.fc40.x86_64) scriptlet failed, signal 15

Error in POSTIN scriptlet in rpm package kmod-wl-6.12.4-100.fc40.x86_64
```d

The wl driver received a patch a couple of days ago in order to work with kernel 6.12.

Is sudo dnf upgrade --refresh proposing an update for broadcom-wl or akmod-wl packages? If yes, then run the upgrade, and wait for the driver modules to be built. You can check afterwards the output of dnf list installed kmod-wl. It should also present the package kmod-wl-6.12.4-100.fc40.x86_64, and WiFi should be working.

The latest version of the wl kernel module from rpmfusion is version 6.30.223.271 which @jhaiduce is already installing.

See https://koji.rpmfusion.org/koji/packageinfo?packageID=424

1 Like

This could be significant. In var/cache/dnf you will also find the rpm file and you could try to re-install that rpm.

Use rpm -qp --scripts <rpmfile> to see the scripts. I wonder if the POSTIN script does something that isn’t supported on F40.

For F41 I get:

% rpm -qp --scripts /var/cache/akmods/wl/kmod-wl-6.12.4-200.fc41.x86_64-6.30.223.271-54.fc41.x86_64.rpm
postinstall scriptlet (using /bin/sh):
if [ -f /boot/System.map-6.12.4-200.fc41.x86_64 ] ; then   /usr/sbin/depmod -aeF /boot/System.map-6.12.4-200.fc41.x86_64 6.12.4-200.fc41.x86_64 >/dev/null ; elif [ -f /lib/modules/6.12.4-200.fc41.x86_64/System.map ] ; then   /usr/sbin/depmod -aeF /lib/modules/6.12.4-200.fc41.x86_64/System.map 6.12.4-200.fc41.x86_64 >/dev/null ; else   /usr/sbin/depmod -a >/dev/null ; fi || :

The script got signal 15 aka SIGTERM, which is the polite signal for terminating a process. The impolite signal is signal 9 aka SIGKILL.

warning: %post(kmod-wl-6.12.4-100.fc40.x86_64-6.30.223.271-54.fc40.x86_64) scriptlet failed, signal 15

The depmod command in the script can take quite a while.

I get the following:

$ rpm -qp --scripts /var/cache/akmods/wl/kmod-wl-6.11.9-100.fc39.x86_64-6.30.223.271-53.fc39.x86_64.rpm 
postinstall scriptlet (using /bin/sh):
if [ -f /boot/System.map-6.11.9-100.fc39.x86_64 ] ; then   /usr/sbin/depmod -aeF /boot/System.map-6.11.9-100.fc39.x86_64 6.11.9-100.fc39.x86_64 >/dev/null ; elif [ -f /lib/modules/6.11.9-100.fc39.x86_64/System.map ] ; then   /usr/sbin/depmod -aeF /lib/modules/6.11.9-100.fc39.x86_64/System.map 6.11.9-100.fc39.x86_64 >/dev/null ; else   /usr/sbin/depmod -a >/dev/null ; fi || :
postuninstall scriptlet (using /bin/sh):
if [ -f /boot/System.map-6.11.9-100.fc39.x86_64 ] ; then   /usr/sbin/depmod -aeF /boot/System.map-6.11.9-100.fc39.x86_64 6.11.9-100.fc39.x86_64 >/dev/null ; elif [ -f /lib/modules/6.11.9-100.fc39.x86_64/System.map ] ; then   /usr/sbin/depmod -aeF /lib/modules/6.11.9-100.fc39.x86_64/System.map 6.11.9-100.fc39.x86_64 >/dev/null ; else   /usr/sbin/depmod -a >/dev/null ; fi || :

Nothing there that looks like an error, but I’ve had a successful installation since the failure so maybe the output containing the error message was deleted then?

That is because your are seeing the script that generated an error. Non-reproducible errors tend to be flaky hardware. You might want to run Fedora memtest86+ overnight.