Build issues gcc10

Stefan Lippers-Hollmann s.l-h at gmx.de
Sun Sep 12 15:30:10 PDT 2021


Hi

On 2021-09-12, Adrian Schmutzler wrote:
> Hi,
>
> I'm having build issues with master and (default) gcc10 on ipq targets.

Just for reference, I've just (successfully) tried an ipq806x build on
a long-standing, but fully updated, Debian/ unstable host, using gcc-10
on the host

	$ gcc --version
	gcc (Debian 10.3.0-10) 10.3.0
	Copyright (C) 2020 Free Software Foundation, Inc.
	This is free software; see the source for copying conditions.  There is NO
	warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

and for the OpenWrt build

	$ grep CONFIG_GCC_VERSION .config
	CONFIG_GCC_VERSION="10.3.0"

$ git describe
reboot-17502-g0470159552

Rather minimal build-config (no feeds installed), roughly matching the
buildbot configs (just omitting the imagebuilder):

$ ./scripts/diffconfig.sh
CONFIG_TARGET_ipq806x=y
CONFIG_TARGET_ipq806x_generic=y
CONFIG_TARGET_MULTI_PROFILE=y
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_askey_rt4230w-rev6=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_askey_rt4230w-rev6=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_asrock_g10=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_asrock_g10=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_buffalo_wxr-2533dhp=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_buffalo_wxr-2533dhp=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_compex_wpq864=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_compex_wpq864=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_edgecore_ecw5410=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_edgecore_ecw5410=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_linksys_ea7500-v1=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_linksys_ea7500-v1=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_linksys_ea8500=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_linksys_ea8500=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_nec_wg2600hp=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_nec_wg2600hp=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_nec_wg2600hp3=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_nec_wg2600hp3=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_netgear_d7800=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_netgear_d7800=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_netgear_r7500=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_netgear_r7500=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_netgear_r7500v2=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_netgear_r7500v2=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_netgear_r7800=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_netgear_r7800=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_qcom_ipq8064-ap148-legacy=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_qcom_ipq8064-ap148-legacy=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_qcom_ipq8064-ap148=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_qcom_ipq8064-ap148=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_qcom_ipq8064-ap161=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_qcom_ipq8064-ap161=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_qcom_ipq8064-db149=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_qcom_ipq8064-db149=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_tplink_ad7200=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_tplink_ad7200=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_tplink_c2600=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_tplink_c2600=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_tplink_vr2600v=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_tplink_vr2600v=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_ubnt_unifi-ac-hd=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_ubnt_unifi-ac-hd=""
CONFIG_TARGET_DEVICE_ipq806x_generic_DEVICE_zyxel_nbg6817=y
CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_zyxel_nbg6817=""
CONFIG_ALL_KMODS=y
CONFIG_ALL_NONSHARED=y
CONFIG_DEVEL=y
CONFIG_TARGET_PER_DEVICE_ROOTFS=y
CONFIG_TARGET_ALL_PROFILES=y

$ ls -gG bin/targets/ipq806x/generic/
insgesamt 442620
-rw-r--r-- 1     3160 13. Sep 00:11 config.buildinfo
-rw-r--r-- 1      231 13. Sep 00:11 feeds.buildinfo
-rw-r--r-- 1  5892899 13. Sep 00:17 openwrt-ipq806x-generic-askey_rt4230w-rev6-initramfs-uImage
-rw-r--r-- 1  6564648 13. Sep 00:17 openwrt-ipq806x-generic-askey_rt4230w-rev6-squashfs-sysupgrade.bin
-rw-r--r-- 1  8314584 13. Sep 00:17 openwrt-ipq806x-generic-asrock_g10-initramfs-fit-uImage.itb
-rw-r--r-- 1  8388630 13. Sep 00:17 openwrt-ipq806x-generic-asrock_g10-squashfs-nand-factory.bin
-rw-r--r-- 1  7803672 13. Sep 00:17 openwrt-ipq806x-generic-asrock_g10-squashfs-nand-sysupgrade.bin
-rw-r--r-- 1  5894107 13. Sep 00:17 openwrt-ipq806x-generic-buffalo_wxr-2533dhp-initramfs-uImage
-rw-r--r-- 1  6523690 13. Sep 00:17 openwrt-ipq806x-generic-buffalo_wxr-2533dhp-squashfs-sysupgrade.bin
-rw-r--r-- 1  8317840 13. Sep 00:17 openwrt-ipq806x-generic-compex_wpq864-initramfs-fit-uImage.itb
-rw-r--r-- 1  7995392 13. Sep 00:17 openwrt-ipq806x-generic-compex_wpq864-squashfs-nand-factory.bin
-rw-r--r-- 1  7404318 13. Sep 00:17 openwrt-ipq806x-generic-compex_wpq864-squashfs-nand-sysupgrade.bin
-rw-r--r-- 1  8316476 13. Sep 00:17 openwrt-ipq806x-generic-edgecore_ecw5410-initramfs-fit-uImage.itb
-rw-r--r-- 1  8388608 13. Sep 00:17 openwrt-ipq806x-generic-edgecore_ecw5410-squashfs-nand-factory.bin
-rw-r--r-- 1  7834404 13. Sep 00:17 openwrt-ipq806x-generic-edgecore_ecw5410-squashfs-nand-sysupgrade.bin
-rw-r--r-- 1  5891822 13. Sep 00:17 openwrt-ipq806x-generic-linksys_ea7500-v1-initramfs-uImage
-rw-r--r-- 1  7602176 13. Sep 00:17 openwrt-ipq806x-generic-linksys_ea7500-v1-squashfs-factory.bin
-rw-r--r-- 1  6523686 13. Sep 00:17 openwrt-ipq806x-generic-linksys_ea7500-v1-squashfs-sysupgrade.bin
-rw-r--r-- 1  5892228 13. Sep 00:17 openwrt-ipq806x-generic-linksys_ea8500-initramfs-uImage
-rw-r--r-- 1  7602176 13. Sep 00:17 openwrt-ipq806x-generic-linksys_ea8500-squashfs-factory.bin
-rw-r--r-- 1  6523681 13. Sep 00:17 openwrt-ipq806x-generic-linksys_ea8500-squashfs-sysupgrade.bin
-rw-r--r-- 1     3323 13. Sep 00:17 openwrt-ipq806x-generic.manifest
-rw-r--r-- 1  5892964 13. Sep 00:17 openwrt-ipq806x-generic-nec_wg2600hp3-initramfs-uImage
-rw-r--r-- 1  6554402 13. Sep 00:17 openwrt-ipq806x-generic-nec_wg2600hp3-squashfs-sysupgrade.bin
-rw-r--r-- 1  5893043 13. Sep 00:17 openwrt-ipq806x-generic-nec_wg2600hp-initramfs-uImage
-rw-r--r-- 1  6554396 13. Sep 00:17 openwrt-ipq806x-generic-nec_wg2600hp-squashfs-sysupgrade.bin
-rw-r--r-- 1  5892388 13. Sep 00:17 openwrt-ipq806x-generic-netgear_d7800-initramfs-uImage
-rw-r--r-- 1  8650881 13. Sep 00:17 openwrt-ipq806x-generic-netgear_d7800-squashfs-factory.img
-rw-r--r-- 1  6523678 13. Sep 00:17 openwrt-ipq806x-generic-netgear_d7800-squashfs-sysupgrade.bin
-rw-r--r-- 1  5891972 13. Sep 00:17 openwrt-ipq806x-generic-netgear_r7500-initramfs-uImage
-rw-r--r-- 1  8388737 13. Sep 00:17 openwrt-ipq806x-generic-netgear_r7500-squashfs-factory.img
-rw-r--r-- 1  6288158 13. Sep 00:17 openwrt-ipq806x-generic-netgear_r7500-squashfs-sysupgrade.bin
-rw-r--r-- 1  5892345 13. Sep 00:17 openwrt-ipq806x-generic-netgear_r7500v2-initramfs-uImage
-rw-r--r-- 1  8781953 13. Sep 00:17 openwrt-ipq806x-generic-netgear_r7500v2-squashfs-factory.img
-rw-r--r-- 1  6697764 13. Sep 00:17 openwrt-ipq806x-generic-netgear_r7500v2-squashfs-sysupgrade.bin
-rw-r--r-- 1  5894575 13. Sep 00:17 openwrt-ipq806x-generic-netgear_r7800-initramfs-uImage
-rw-r--r-- 1  8650881 13. Sep 00:17 openwrt-ipq806x-generic-netgear_r7800-squashfs-factory.img
-rw-r--r-- 1  6564638 13. Sep 00:17 openwrt-ipq806x-generic-netgear_r7800-squashfs-sysupgrade.bin
-rw-r--r-- 1  4423096 13. Sep 00:17 openwrt-ipq806x-generic-qcom_ipq8064-ap148-fit-uImage.itb
-rw-r--r-- 1  8313920 13. Sep 00:17 openwrt-ipq806x-generic-qcom_ipq8064-ap148-initramfs-fit-uImage.itb
-rw-r--r-- 1  5889418 13. Sep 00:17 openwrt-ipq806x-generic-qcom_ipq8064-ap148-legacy-initramfs-uImage
-rw-r--r-- 1  7077888 13. Sep 00:17 openwrt-ipq806x-generic-qcom_ipq8064-ap148-legacy-squashfs-nand-factory.bin
-rw-r--r-- 1  6513443 13. Sep 00:17 openwrt-ipq806x-generic-qcom_ipq8064-ap148-legacy-squashfs-nand-sysupgrade.bin
-rw-r--r-- 1  8388608 13. Sep 00:17 openwrt-ipq806x-generic-qcom_ipq8064-ap148-squashfs-nand-factory.bin
-rw-r--r-- 1  7803683 13. Sep 00:17 openwrt-ipq806x-generic-qcom_ipq8064-ap148-squashfs-nand-sysupgrade.bin
-rw-r--r-- 1  4423400 13. Sep 00:17 openwrt-ipq806x-generic-qcom_ipq8064-ap161-fit-uImage.itb
-rw-r--r-- 1  8314224 13. Sep 00:17 openwrt-ipq806x-generic-qcom_ipq8064-ap161-initramfs-fit-uImage.itb
-rw-r--r-- 1  8388608 13. Sep 00:17 openwrt-ipq806x-generic-qcom_ipq8064-ap161-squashfs-nand-factory.bin
-rw-r--r-- 1  7803675 13. Sep 00:17 openwrt-ipq806x-generic-qcom_ipq8064-ap161-squashfs-nand-sysupgrade.bin
-rw-r--r-- 1  4423320 13. Sep 00:17 openwrt-ipq806x-generic-qcom_ipq8064-db149-fit-uImage.itb
-rw-r--r-- 1  8314144 13. Sep 00:17 openwrt-ipq806x-generic-qcom_ipq8064-db149-initramfs-fit-uImage.itb
-rw-r--r-- 1  7803675 13. Sep 00:17 openwrt-ipq806x-generic-qcom_ipq8064-db149-squashfs-sysupgrade.bin
-rw-r--r-- 1  5893921 13. Sep 00:17 openwrt-ipq806x-generic-tplink_ad7200-initramfs-uImage
-rw-r--r-- 1  6885026 13. Sep 00:17 openwrt-ipq806x-generic-tplink_ad7200-squashfs-factory.bin
-rw-r--r-- 1  7930658 13. Sep 00:17 openwrt-ipq806x-generic-tplink_ad7200-squashfs-sysupgrade.bin
-rw-r--r-- 1  5893791 13. Sep 00:17 openwrt-ipq806x-generic-tplink_c2600-initramfs-uImage
-rw-r--r-- 1  6557222 13. Sep 00:17 openwrt-ipq806x-generic-tplink_c2600-squashfs-factory.bin
-rw-r--r-- 1  7602977 13. Sep 00:17 openwrt-ipq806x-generic-tplink_c2600-squashfs-sysupgrade.bin
-rw-r--r-- 1  5892574 13. Sep 00:17 openwrt-ipq806x-generic-tplink_vr2600v-initramfs-uImage
-rw-r--r-- 1  6554407 13. Sep 00:17 openwrt-ipq806x-generic-tplink_vr2600v-squashfs-sysupgrade.bin
-rw-r--r-- 1  6047224 13. Sep 00:17 openwrt-ipq806x-generic-ubnt_unifi-ac-hd-initramfs-fit-uImage.itb
-rw-r--r-- 1  6751016 13. Sep 00:17 openwrt-ipq806x-generic-ubnt_unifi-ac-hd-squashfs-sysupgrade.bin
-rw-r--r-- 1  8388608 13. Sep 00:17 openwrt-ipq806x-generic-zyxel_nbg6817-initramfs-uImage
-rw-r--r-- 1 25696256 13. Sep 00:17 openwrt-ipq806x-generic-zyxel_nbg6817-squashfs-factory.bin
-rw-r--r-- 1  8336162 13. Sep 00:17 openwrt-ipq806x-generic-zyxel_nbg6817-squashfs-sysupgrade.bin
drwxr-xr-x 2    81920 13. Sep 00:17 packages
-rw-r--r-- 1    17816 13. Sep 00:17 profiles.json
-rw-r--r-- 1     8391 13. Sep 00:17 sha256sums
-rw-r--r-- 1       18 13. Sep 00:11 version.buildinfo

$ ls -1 bin/targets/ipq806x/generic/packages/kmod-* | cut -d_ -f2 | sort -u
5.10.63-1
5.10.63+1.11-ipq806x-1
5.10.63-2
5.10.63+2020-12-07-1e9689c8-1
5.10.63+2021-06-03-b44cd7b2-5
5.10.63+2021-06-24-9b3a8197-1
5.10.63+2021-07-15-bbebea7d-4
5.10.63-3
5.10.63+5.10.42-1-1
accel
accel-i2c
accel-spi

I can only assume that you're missing some build dependencies.

Regards
	Stefan Lippers-Hollmann



More information about the openwrt-devel mailing list