[OpenWrt-Devel] broadcom-wl @ bcm63xx fails on kernel 4.19

mail at adrianschmutzler.de mail at adrianschmutzler.de
Thu Apr 2 11:18:43 EDT 2020


Hi all,

since bcm63xx still has 4.19 as testing kernel for five months already, I today tried to build it.

Interestingly, the build fails for package/kernel/broadcom-wl, and this issue persists even when I go back to the initial commit introducing 4.19 support (so, the problem is no regression).

For some reason, the problem seems to not affect bcm47xx, which uses kernel 4.19 as default ATM.

Since I have no idea what broadcom-wl does, I cannot provide much more than the build errors below.

Best

Adrian

---

# Compile the kernel part
make -C "/data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.19.81" KCFLAGS="-ffile-prefix-map=/data/openwrt/build_dir/target-mips_mips32_musl=target-mips_mips32_musl" HOSTCFLAGS="-O2 -I/data/openwrt/staging_dir/host/include -I/data/openwrt/staging_dir/hostpkg/include -I/data/openwrt/staging_dir/target-mips_mips32_musl/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mips-openwrt-linux-musl-" ARCH="mips" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Thu Apr  2 12:41:37 2020" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/data/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V=''  cmd_syscalls= KERNELRELEASE=4.19.81 PATH="/data/openwrt/staging_dir/toolchain-mips_mips32_gcc-8.3.0_musl/bin:/data/openwrt/staging_dir/toolchain-mips_mips32_gcc-8.3.0_musl/bin:/data/openwrt/staging_dir/host/bin:/data/openwrt/staging_dir/toolchain-mips_mips32_gcc-8.3.0_musl/bin:/data/openwrt/staging_dir/host/bin:/data/openwrt/staging_dir/host/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" SUBDIRS="/data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/broadcom-wl-5.10.56.27.3/kmod"  SUBDIRS="/data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/broadcom-wl-5.10.56.27.3/driver" MODFLAGS="-DMODULE -mlong-calls" KBUILD_EXTRA_SYMBOLS="/data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/broadcom-wl-5.10.56.27.3/glue/Module.symvers" modules
make[4]: Entering directory '/data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.19.81'
  CC [M]  /data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/broadcom-wl-5.10.56.27.3/driver/wl_iw.o
/data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/broadcom-wl-5.10.56.27.3/driver/wl_iw.c: In function 'wl_iw_set_freq':
/data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/broadcom-wl-5.10.56.27.3/driver/wl_iw.c:389:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (fwrq->m > 4000 && fwrq->m < 5000)
  ^~
/data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/broadcom-wl-5.10.56.27.3/driver/wl_iw.c:392:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   chan = wf_mhz2channel(fwrq->m, sf);
   ^~~~
/data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/broadcom-wl-5.10.56.27.3/driver/wl_iw.c: In function 'wl_iw_get_range':
/data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/broadcom-wl-5.10.56.27.3/driver/wl_iw.c:622:1: warning: the frame size of 1168 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 }
 ^
  CC [M]  /data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/broadcom-wl-5.10.56.27.3/driver/wl_linux.o
/data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/broadcom-wl-5.10.56.27.3/driver/wl_linux.c: In function 'wl_init_timer':
/data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/broadcom-wl-5.10.56.27.3/driver/wl_linux.c:2576:2: error: implicit declaration of function 'init_timer'; did you mean 'init_timers'? [-Werror=implicit-function-declaration]
  init_timer(&t->timer);
  ^~~~~~~~~~
  init_timers
/data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/broadcom-wl-5.10.56.27.3/driver/wl_linux.c:2577:10: error: 'struct timer_list' has no member named 'data'
  t->timer.data = (ulong) t;
          ^
/data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/broadcom-wl-5.10.56.27.3/driver/wl_linux.c:2578:20: error: assignment to 'void (*)(struct timer_list *)' from incompatible pointer type 'void (*)(ulong)' {aka 'void (*)(long unsigned int)'} [-Werror=incompatible-pointer-types]
  t->timer.function = wl_timer;
                    ^
cc1: some warnings being treated as errors
make[5]: *** [scripts/Makefile.build:304: /data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/broadcom-wl-5.10.56.27.3/driver/wl_linux.o] Error 1
make[4]: *** [Makefile:1517: _module_/data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/broadcom-wl-5.10.56.27.3/driver] Error 2
make[4]: Leaving directory '/data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/linux-4.19.81'
make[3]: *** [Makefile:187: /data/openwrt/build_dir/target-mips_mips32_musl/linux-brcm63xx_generic/broadcom-wl-5.10.56.27.3/.built] Error 2
make[3]: Leaving directory '/data/openwrt/package/kernel/broadcom-wl'
time: package/kernel/broadcom-wl/compile#3.53#0.86#4.27
make[2]: *** [package/Makefile:113: package/kernel/broadcom-wl/compile] Error 2
make[2]: Leaving directory '/data/openwrt'
make[1]: *** [package/Makefile:107: /data/openwrt/staging_dir/target-mips_mips32_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/data/openwrt'
make: *** [/data/openwrt/include/toplevel.mk:227: world] Error 2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20200402/8c540967/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list