21.02 RC4, kirkwood, compile fails in mdio-network

Hi All,

I'm attempting to build a custom image for my Marvel kirkwood NAS devices.

Building Master and 19.07.08 complete fine. Attempting to build 21.02.rc4 results in errors in the mdio-network module - which kirkwood devices use for ethernet.

unselecting mdio-network in menuconfig allows the rc4 compile to complete successfully.

I want to use the rc4 branch to allow installs from the release repository without dependency issues.

error is;

rm -f /home/jdwl/github/openwrt/build_dir/target-arm_xscale_musl_eabi/linux-kirkwood/mdio-netlink-2021-07-19-65f6898f/.built
touch /home/jdwl/github/openwrt/build_dir/target-arm_xscale_musl_eabi/linux-kirkwood/mdio-netlink-2021-07-19-65f6898f/.built_check
make -C /home/jdwl/github/openwrt/build_dir/target-arm_xscale_musl_eabi/linux-kirkwood/linux-5.4.137 KCFLAGS="-ffile-prefix-map=/home/jdwl/github/openwrt/build_dir/target-arm_xscale_musl_eabi=target-arm_xscale_musl_eabi" HOSTCFLAGS="-O2 -I/home/jdwl/github/openwrt/staging_dir/host/include -I/home/jdwl/github/openwrt/staging_dir/hostpkg/include -I/home/jdwl/github/openwrt/staging_dir/target-arm_xscale_musl_eabi/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="arm-openwrt-linux-muslgnueabi-" ARCH="arm" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="builder" KBUILD_BUILD_HOST="buildhost" KBUILD_BUILD_TIMESTAMP="Sat Jul 31 17:21:01 2021" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/home/jdwl/github/openwrt/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/home/jdwl/github/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V=''  cmd_syscalls=  KERNELRELEASE=5.4.137 M=/home/jdwl/github/openwrt/build_dir/target-arm_xscale_musl_eabi/linux-kirkwood/mdio-netlink-2021-07-19-65f6898f/kernel modules
make[4]: Entering directory '/home/jdwl/github/openwrt/build_dir/target-arm_xscale_musl_eabi/linux-kirkwood/linux-5.4.137'
  CC [M]  /home/jdwl/github/openwrt/build_dir/target-arm_xscale_musl_eabi/linux-kirkwood/mdio-netlink-2021-07-19-65f6898f/kernel/mdio-netlink.o
/home/jdwl/github/openwrt/build_dir/target-arm_xscale_musl_eabi/linux-kirkwood/mdio-netlink-2021-07-19-65f6898f/kernel/mdio-netlink.c: In function 'mdio_nl_cmd_xfer':
/home/jdwl/github/openwrt/build_dir/target-arm_xscale_musl_eabi/linux-kirkwood/mdio-netlink-2021-07-19-65f6898f/kernel/mdio-netlink.c:447:14: error: implicit declaration of function 'mdio_find_bus'; did you mean 'mdio_nl_flush'? [-Werror=implicit-function-declaration]
  xfer.mdio = mdio_find_bus(nla_data(info->attrs[MDIO_NLA_BUS_ID]));
              ^~~~~~~~~~~~~
              mdio_nl_flush
/home/jdwl/github/openwrt/build_dir/target-arm_xscale_musl_eabi/linux-kirkwood/mdio-netlink-2021-07-19-65f6898f/kernel/mdio-netlink.c:447:12: warning: assignment to 'struct mii_bus *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  xfer.mdio = mdio_find_bus(nla_data(info->attrs[MDIO_NLA_BUS_ID]));
            ^
cc1: some warnings being treated as errors
make[5]: *** [scripts/Makefile.build:262: /home/jdwl/github/openwrt/build_dir/target-arm_xscale_musl_eabi/linux-kirkwood/mdio-netlink-2021-07-19-65f6898f/kernel/mdio-netlink.o] Error 1
make[4]: *** [Makefile:1734: /home/jdwl/github/openwrt/build_dir/target-arm_xscale_musl_eabi/linux-kirkwood/mdio-netlink-2021-07-19-65f6898f/kernel] Error 2
make[4]: Leaving directory '/home/jdwl/github/openwrt/build_dir/target-arm_xscale_musl_eabi/linux-kirkwood/linux-5.4.137'
make[3]: *** [Makefile:42: /home/jdwl/github/openwrt/build_dir/target-arm_xscale_musl_eabi/linux-kirkwood/mdio-netlink-2021-07-19-65f6898f/.built] Error 2
make[3]: Leaving directory '/home/jdwl/github/openwrt/feeds/packages/kernel/mdio-netlink'
time: package/feeds/packages/mdio-netlink/compile#0.88#0.29#1.17
    ERROR: package/feeds/packages/mdio-netlink failed to build.
make[2]: *** [package/Makefile:114: package/feeds/packages/mdio-netlink/compile] Error 1
make[2]: Leaving directory '/home/jdwl/github/openwrt'
make[1]: *** [package/Makefile:108: /home/jdwl/github/openwrt/staging_dir/target-arm_xscale_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/jdwl/github/openwrt'
make: *** [/home/jdwl/github/openwrt/include/toplevel.mk:230: world] Error 2

Can anyone suggest what could be going wrong?

Ok, I updated my feeds again and images are now creating successfully.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.