openwrt / packages

Community maintained packages for OpenWrt. Documentation for submitting pull requests is in CONTRIBUTING.md
GNU General Public License v2.0
4.01k stars 3.49k forks source link

IPROUTE2: ERROR: package/network/utils/iproute2 failed to build (build variant: tcfull). LIBBPF not found #18053

Closed okibcn closed 2 years ago

okibcn commented 2 years ago

Maintainer: @guidosarducci @hauke Environment: PROFILE="linksys_e8450-ubi" RELEASE="snapshots " TARGET="mediatek" ARCH="mt7622"

Description:

a package (openvpn maybe?) adds iproute2-tcfull module that requires the undetected library libbpf. The build process fails with this message:

make[4]: Entering directory '/home/oki/kk/myopenwrt/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/iproute2-tcfull/iproute2-5.15.0'
TC schedulers
 ATM    no
 IPT    using xtables
 IPSET  yes

iptables modules directory: /usr/lib/iptables
libc has setns: yes
libc has name_to_handle_at: yes
SELinux support: no
libbpf support: no
        LIBBPF_FORCE=on set, but couldn't find a usable libbpf
make[4]: *** [Makefile:84: config] Error 1
make[4]: Leaving directory '/home/oki/kk/myopenwrt/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/iproute2-tcfull/iproute2-5.15.0'
make[3]: *** [Makefile:271: /home/oki/kk/myopenwrt/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/iproute2-tcfull/iproute2-5.15.0/.built] Error 2
make[3]: Leaving directory '/home/oki/kk/myopenwrt/openwrt/package/network/utils/iproute2'
time: package/network/utils/iproute2/tcfull/compile#0.41#0.07#0.41
    ERROR: package/network/utils/iproute2 failed to build (build variant: tcfull).
make[2]: *** [package/Makefile:119: package/network/utils/iproute2/compile] Error 1
make[2]: Leaving directory '/home/oki/kk/myopenwrt/openwrt'
make[1]: *** [package/Makefile:110: /home/oki/kk/myopenwrt/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/oki/kk/myopenwrt/openwrt'
make: *** [/home/oki/kk/myopenwrt/openwrt/include/toplevel.mk:230: world] Error 2

This is the diff .config used for this build run:

CONFIG_DEVEL=y
CONFIG_BUSYBOX_CUSTOM=y
CONFIG_BUILD_LOG=y
CONFIG_BUSYBOX_CONFIG_FEATURE_EDITING_SAVEHISTORY=y
CONFIG_BUSYBOX_CONFIG_FEATURE_EDITING_SAVE_ON_EXIT=y
CONFIG_BUSYBOX_CONFIG_FEATURE_LESS_FLAGS=y
CONFIG_BUSYBOX_CONFIG_FEATURE_LESS_REGEXP=y
CONFIG_BUSYBOX_CONFIG_FEATURE_LESS_WINCH=y
CONFIG_BUSYBOX_DEFAULT_STAT=y
# CONFIG_BUSYBOX_DEFAULT_FEATURE_STAT_FORMAT is not set
# CONFIG_BUSYBOX_DEFAULT_FEATURE_STAT_FILESYSTEM is not set
CONFIG_DEBUG=y
CONFIG_DROPBEAR_ECC=y
CONFIG_IMAGEOPT=y
CONFIG_INCLUDE_CONFIG=y
CONFIG_LIBCURL_COOKIES=y
CONFIG_LIBCURL_FILE=y
CONFIG_LIBCURL_FTP=y
CONFIG_LIBCURL_HTTP=y
CONFIG_LIBCURL_NGHTTP2=y
CONFIG_LIBCURL_NO_SMB="!"
CONFIG_LIBCURL_OPENSSL=y
CONFIG_LIBCURL_PROXY=y
# CONFIG_LUCI_JSMIN is not set
CONFIG_OPENSSL_ENGINE=y
CONFIG_OPENSSL_WITH_ASM=y
CONFIG_OPENSSL_WITH_CHACHA_POLY1305=y
CONFIG_OPENSSL_WITH_CMS=y
CONFIG_OPENSSL_WITH_DEPRECATED=y
CONFIG_OPENSSL_WITH_ERROR_MESSAGES=y
CONFIG_OPENSSL_WITH_PSK=y
CONFIG_OPENSSL_WITH_SRP=y
CONFIG_OPENSSL_WITH_TLS13=y
CONFIG_PACKAGE_NTFS-3G_HAS_PROBE=y
CONFIG_PACKAGE_adblock=y
CONFIG_PACKAGE_block-mount=y
CONFIG_PACKAGE_ccrypt=y
CONFIG_PACKAGE_cgi-io=y
CONFIG_PACKAGE_collectd=y
CONFIG_PACKAGE_coreutils=y
CONFIG_PACKAGE_coreutils-sort=y
CONFIG_PACKAGE_curl=y
CONFIG_PACKAGE_ddns-scripts=y
CONFIG_PACKAGE_ddns-scripts-services=y
CONFIG_PACKAGE_diffutils=y
CONFIG_PACKAGE_gdbserver=y
CONFIG_PACKAGE_hostapd-utils=y
CONFIG_PACKAGE_iptables-mod-ipopt=y
CONFIG_PACKAGE_iptables-nft=y
CONFIG_PACKAGE_kmod-crypto-arc4=y
CONFIG_PACKAGE_kmod-crypto-des=y
CONFIG_PACKAGE_kmod-crypto-ecb=y
CONFIG_PACKAGE_kmod-crypto-kpp=y
CONFIG_PACKAGE_kmod-crypto-lib-blake2s=y
CONFIG_PACKAGE_kmod-crypto-lib-chacha20=y
CONFIG_PACKAGE_kmod-crypto-lib-chacha20poly1305=y
CONFIG_PACKAGE_kmod-crypto-lib-curve25519=y
CONFIG_PACKAGE_kmod-crypto-lib-poly1305=y
CONFIG_PACKAGE_kmod-crypto-md4=y
CONFIG_PACKAGE_kmod-crypto-md5=y
CONFIG_PACKAGE_kmod-crypto-sha1=y
CONFIG_PACKAGE_kmod-crypto-sha512=y
CONFIG_PACKAGE_kmod-fs-cifs=y
CONFIG_PACKAGE_kmod-fuse=y
CONFIG_PACKAGE_kmod-gre=y
CONFIG_PACKAGE_kmod-ifb=y
CONFIG_PACKAGE_kmod-ip6tables=y
CONFIG_PACKAGE_kmod-ipt-core=y
CONFIG_PACKAGE_kmod-ipt-ipopt=y
CONFIG_PACKAGE_kmod-iptunnel=y
CONFIG_PACKAGE_kmod-iptunnel4=y
CONFIG_PACKAGE_kmod-lib-crc16=y
CONFIG_PACKAGE_kmod-mppe=y
CONFIG_PACKAGE_kmod-nf-conntrack-netlink=y
CONFIG_PACKAGE_kmod-nf-ipt=y
CONFIG_PACKAGE_kmod-nf-ipt6=y
CONFIG_PACKAGE_kmod-nft-compat=y
CONFIG_PACKAGE_kmod-pptp=y
CONFIG_PACKAGE_kmod-sched-cake=y
CONFIG_PACKAGE_kmod-sched-core=y
CONFIG_PACKAGE_kmod-scsi-core=y
CONFIG_PACKAGE_kmod-sit=y
CONFIG_PACKAGE_kmod-tun=y
CONFIG_PACKAGE_kmod-udptunnel4=y
CONFIG_PACKAGE_kmod-udptunnel6=y
CONFIG_PACKAGE_kmod-wireguard=y
CONFIG_PACKAGE_libcap-ng=y
CONFIG_PACKAGE_libcurl=y
CONFIG_PACKAGE_libiptext=y
CONFIG_PACKAGE_libiptext-nft=y
CONFIG_PACKAGE_libiptext6=y
CONFIG_PACKAGE_libiwinfo-lua=y
CONFIG_PACKAGE_libltdl=y
CONFIG_PACKAGE_liblua=y
CONFIG_PACKAGE_liblucihttp=y
CONFIG_PACKAGE_liblucihttp-lua=y
CONFIG_PACKAGE_libncurses=y
CONFIG_PACKAGE_libnghttp2=y
CONFIG_PACKAGE_libopenssl=y
CONFIG_PACKAGE_libopenssl-conf=y
CONFIG_PACKAGE_liboping=y
CONFIG_PACKAGE_libpcap=y
CONFIG_PACKAGE_libpcre=y
CONFIG_PACKAGE_librrd1=y
CONFIG_PACKAGE_librt=y
CONFIG_PACKAGE_libubus-lua=y
CONFIG_PACKAGE_libuci-lua=y
CONFIG_PACKAGE_libuuid=y
# CONFIG_PACKAGE_libwolfssl is not set
CONFIG_PACKAGE_libxtables=y
CONFIG_PACKAGE_lua=y
CONFIG_PACKAGE_miniupnpd-nftables=y
CONFIG_PACKAGE_mtr=y
CONFIG_PACKAGE_nlbwmon=y
CONFIG_PACKAGE_openssl-util=y
CONFIG_PACKAGE_patch=y
CONFIG_PACKAGE_ppp-mod-pptp=y
CONFIG_PACKAGE_resolveip=y
CONFIG_PACKAGE_rpcd=y
CONFIG_PACKAGE_rpcd-mod-file=y
CONFIG_PACKAGE_rpcd-mod-iwinfo=y
CONFIG_PACKAGE_rpcd-mod-luci=y
CONFIG_PACKAGE_rpcd-mod-rrdns=y
CONFIG_PACKAGE_rrdtool1=y
CONFIG_PACKAGE_sqm-scripts=y
CONFIG_PACKAGE_tc-mod-iptables=y
CONFIG_PACKAGE_tc-tiny=y
CONFIG_PACKAGE_tcpdump-mini=y
CONFIG_PACKAGE_terminfo=y
CONFIG_PACKAGE_tree=y
CONFIG_PACKAGE_uhttpd=y
CONFIG_PACKAGE_uhttpd-mod-ubus=y
CONFIG_PACKAGE_wget-ssl=y
CONFIG_PACKAGE_wireguard-tools=y
CONFIG_PACKAGE_zlib=y
CONFIG_PREINITOPT=y
CONFIG_TARGET_PREINIT_TIMEOUT=5
# CONFIG_WPA_WOLFSSL is not set
# CONFIG_LUCI_CSSTIDY is not set#
# DEVICE INFO
#
CONFIG_TARGET_mediatek=y
CONFIG_TARGET_mediatek_mt7622=y
CONFIG_TARGET_mediatek_mt7622_DEVICE_linksys_e8450-ubi=y
#
# CUSTOM PACKAGE SET
#
CONFIG_PACKAGE_mc=y
CONFIG_PACKAGE_nano-plus=y
CONFIG_PACKAGE_htop=y
CONFIG_PACKAGE_ncdu=y
CONFIG_PACKAGE_iperf3=y
CONFIG_PACKAGE_irqbalance=y
CONFIG_PACKAGE_auc=y
CONFIG_PACKAGE_ca-certificates=y
# CONFIG_PACKAGE_wpad-basic-wolfssl is not set
# CONFIG_PACKAGE_libustream-wolfssl is not set
# CONFIG_PACKAGE_px5g-wolfssl is not set
CONFIG_PACKAGE_wpad-openssl=y
CONFIG_PACKAGE_libustream-openssl=y
CONFIG_PACKAGE_luci=y
CONFIG_PACKAGE_luci-compat=y
CONFIG_PACKAGE_luci-mod-dashboard=y
CONFIG_PACKAGE_luci-app-attendedsysupgrade=y
CONFIG_PACKAGE_luci-app-vnstat2=y
CONFIG_PACKAGE_luci-app-nlbwmon=y
CONFIG_PACKAGE_luci-app-adblock=y
CONFIG_PACKAGE_luci-app-banip=y
CONFIG_PACKAGE_luci-app-bcp38=y
CONFIG_PACKAGE_luci-app-commands=y
CONFIG_PACKAGE_luci-app-ddns=y
CONFIG_PACKAGE_ddns-scripts-noip=y
CONFIG_PACKAGE_luci-app-openvpn=y
# CONFIG_PACKAGE_luci-ssl-openssl is not set
CONFIG_PACKAGE_luci-app-sqm=y
CONFIG_PACKAGE_luci-app-wireguard=y
CONFIG_PACKAGE_luci-app-upnp=y
CONFIG_PACKAGE_luci-app-uhttpd=y
CONFIG_PACKAGE_luci-app-statistics=y
CONFIG_PACKAGE_collectd-mod-conntrack=y
CONFIG_PACKAGE_collectd-mod-cpu=y
CONFIG_PACKAGE_collectd-mod-cpufreq=y
CONFIG_PACKAGE_collectd-mod-dhcpleases=y
CONFIG_PACKAGE_collectd-mod-entropy=y
CONFIG_PACKAGE_collectd-mod-exec=y
CONFIG_PACKAGE_collectd-mod-interface=y
CONFIG_PACKAGE_collectd-mod-iwinfo=y
CONFIG_PACKAGE_collectd-mod-load=y
CONFIG_PACKAGE_collectd-mod-memory=y
CONFIG_PACKAGE_collectd-mod-network=y
CONFIG_PACKAGE_collectd-mod-ping=y
CONFIG_PACKAGE_collectd-mod-rrdtool=y
CONFIG_PACKAGE_collectd-mod-sqm=y
CONFIG_PACKAGE_collectd-mod-thermal=y
CONFIG_PACKAGE_collectd-mod-uptime=y
CONFIG_PACKAGE_collectd-mod-wireless=y
CONFIG_PACKAGE_blockd=y
CONFIG_PACKAGE_cryptsetup=y
CONFIG_PACKAGE_e2fsprogs=y
CONFIG_PACKAGE_f2fs-tools=y
CONFIG_PACKAGE_kmod-fs-exfat=y
CONFIG_PACKAGE_kmod-fs-ext4=y
CONFIG_PACKAGE_kmod-fs-f2fs=y
CONFIG_PACKAGE_kmod-fs-hfs=y
CONFIG_PACKAGE_kmod-fs-hfsplus=y
CONFIG_PACKAGE_kmod-fs-msdos=y
CONFIG_PACKAGE_kmod-fs-nfs=y
CONFIG_PACKAGE_kmod-fs-nfs-common=y
CONFIG_PACKAGE_kmod-fs-nfs-v3=y
CONFIG_PACKAGE_kmod-fs-nfs-v4=y
CONFIG_PACKAGE_kmod-fs-vfat=y
CONFIG_PACKAGE_kmod-nls-base=y
CONFIG_PACKAGE_kmod-nls-cp1250=y
CONFIG_PACKAGE_kmod-nls-cp437=y
CONFIG_PACKAGE_kmod-nls-cp850=y
CONFIG_PACKAGE_kmod-nls-iso8859-1=y
CONFIG_PACKAGE_kmod-nls-iso8859-15=y
CONFIG_PACKAGE_kmod-nls-utf8=y
CONFIG_PACKAGE_kmod-usb-storage=y
CONFIG_PACKAGE_kmod-usb-storage-uas=y
CONFIG_PACKAGE_libblkid=y
CONFIG_PACKAGE_ntfs-3g=y
CONFIG_PACKAGE_nfs-utils=y
CONFIG_PACKAGE_ip6tables-mod-nat=y
CONFIG_PACKAGE_6in4=y
CONFIG_PACKAGE_6rd=y
CONFIG_PACKAGE_6to4=y
CONFIG_PACKAGE_ip6tables-nft=y
CONFIG_PACKAGE_luci-theme-argon=y
CONFIG_PACKAGE_luci-app-argon-config=y
CONFIG_PACKAGE_luci-lib-ipkg=y
CONFIG_PACKAGE_luci-app-ttyd=y

Note this commit solved in the past some problems detecting libbpf.

The libbpf was properly sourced and a simple find . -name "*libbpf**" on the openwrtfolder returns this:

./build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/iproute2-tcfull/iproute2-5.15.0/lib/bpf_libbpf.c
./build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/linux-5.10.103/tools/lib/bpf/libbpf.c
./build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/linux-5.10.103/tools/lib/bpf/libbpf_probes.c
./build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/linux-5.10.103/tools/lib/bpf/libbpf.h
./build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/linux-5.10.103/tools/lib/bpf/libbpf_util.h
./build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/linux-5.10.103/tools/lib/bpf/libbpf.pc.template
./build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/linux-5.10.103/tools/lib/bpf/libbpf_errno.c
./build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/linux-5.10.103/tools/lib/bpf/libbpf.map./build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/linux-5.10.103/tools/lib/bpf/libbpf_common.h
./build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/linux-5.10.103/tools/lib/bpf/libbpf_internal.h
./build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/linux-5.10.103/tools/build/feature/test-libbpf.c
./build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/iproute2-iptiny/iproute2-5.15.0/lib/bpf_libbpf.c
./build_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/linux-5.10.103/tools/lib/bpf/libbpf.c
./build_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/linux-5.10.103/tools/lib/bpf/libbpf_probes.c
./build_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/linux-5.10.103/tools/lib/bpf/libbpf.h
./build_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/linux-5.10.103/tools/lib/bpf/libbpf_util.h
./build_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/linux-5.10.103/tools/lib/bpf/libbpf.pc.template./build_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/linux-5.10.103/tools/lib/bpf/libbpf_errno.c
./build_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/linux-5.10.103/tools/lib/bpf/libbpf.map
./build_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/linux-5.10.103/tools/lib/bpf/libbpf_common.h
./build_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/linux-5.10.103/tools/lib/bpf/libbpf_internal.h
./build_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/linux-5.10.103/tools/build/feature/test-libbpf.c

So, most probably it is again a detection problem.

okibcn commented 2 years ago

The failure is random. I thought the number of threads could play a role in that, but the failure happens even when using a single thread (-j1).

However, if just after the failure and without touching any file I do: make -j1 or even make -j(nproc)

Then, most of the time completes the process and the image is successfully created.

solidus1983 commented 2 years ago

I had a similar issue myself with Qosify when i was trying to compile it. Although it did download llvm-project-13.0.0.src.tar.xz it wouldn't compile because it didn't download also llvm-bpf-13.0.0.Linux-x86_64 and extract it to the /staging_dir/host/ directory. Took me a week to figure what was going on, if it wasn't because i noticed that the symlink was broken in /staging_dir/hosts/ i'd still be trying to fix it with clean installs of the OS and rebuilding the build enviroment.

okibcn commented 2 years ago

Well, I was trying to isolate the issue by creating a clean openwrt structure, this is, taking the .configin the opening post and doing a:

make defconfig && make toolchain/install
rm -rf bin tmp build_dir
make defconfig

under this situation, I test the problems with packages, missing dependencies most of the time. So I do a

make V=sc package/network/utils/iproute2/compile

and I got this output:

make[2]: Entering directory '/build/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/build/openwrt/scripts/config'
time: target/linux/prereq#0.11#0.01#0.11
make[1]: Entering directory '/build/openwrt'
make[2]: Entering directory '/build/openwrt/package/libs/toolchain'
touch /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.prepared_460486047fa77a68464b12034d1cfc84_6664517399ebbbc92a37c5bb081b5c53_check
mkdir -p /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain
touch /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.prepared_460486047fa77a68464b12034d1cfc84_6664517399ebbbc92a37c5bb081b5c53
rm -f /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.configured_*
rm -f /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.toolchain_installed
(cd /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/./; if [ -x ./configure ]; then find /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ -name config.guess | xargs -r chmod u+w; find /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ -name config.guess | xargs -r -n1 cp --remove-destination /build/openwrt/scripts/config.guess; find /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ -name config.sub | xargs -r chmod u+w; find /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ -name config.sub | xargs -r -n1 cp --remove-destination /build/openwrt/scripts/config.sub; AR="aarch64-openwrt-linux-musl-gcc-ar" AS="aarch64-openwrt-linux-musl-gcc -c -Os -pipe -mcpu=cortex-a53 -g3 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain=toolchain -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=aarch64-openwrt-linux-musl-ld NM="aarch64-openwrt-linux-musl-gcc-nm" CC="aarch64-openwrt-linux-musl-gcc" GCC="aarch64-openwrt-linux-musl-gcc" CXX="aarch64-openwrt-linux-musl-g++" RANLIB="aarch64-openwrt-linux-musl-gcc-ranlib" STRIP=aarch64-openwrt-linux-musl-strip OBJCOPY=aarch64-openwrt-linux-musl-objcopy OBJDUMP=aarch64-openwrt-linux-musl-objdump SIZE=aarch64-openwrt-linux-musl-size CFLAGS="-Os -pipe -mcpu=cortex-a53 -g3 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain=toolchain -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -mcpu=cortex-a53 -g3 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain=toolchain -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/usr/include -I/build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/include/fortify -I/build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/include " LDFLAGS="-L/build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/usr/lib -L/build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib -znow -zrelro "   ./configure --target=aarch64-openwrt-linux --host=aarch64-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls  ; fi; )
touch /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.built
touch /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.built_check
cp -fpR /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/libgcc_s.so.1 /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/
touch /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.built
rm -rf /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc.installed /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc
mkdir -p /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc
install -d -m0755 /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc/lib /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc/usr/bin
cp -fpR /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/ld-musl-*.so* /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc/lib/
cp -fpR /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/libc.so* /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc/lib/
ln -sf ../../lib/libc.so /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc/usr/bin/ldd
cp -fpR /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/libcrypt.a /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/libstdc++fs.a /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/libm.a /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/libresolv.a /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/libssp_nonshared.a /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/libatomic.a /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/libsupc++.a /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/libitm.a /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/libutil.a /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/libxnet.a /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/libpthread.a /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/libstdc++.a /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/librt.a /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/libc.a /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/libdl.a /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc/lib/
cp -fpR /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.2.0/libgcc_pic.a /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc/lib/libgcc_s_pic.a; cp -fpR /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.2.0/libgcc.map /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc/lib/libgcc_s_pic.map
touch /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc.installed
mkdir -p /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp
SHELL= flock /build/openwrt/tmp/.root-copy.flock -c 'cp -fpR /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libc/. /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/'
touch /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp/.libc_installed
mkdir -p /build/openwrt/bin/targets/mediatek/mt7622/packages /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libgcc/CONTROL /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo
install -d -m0755 /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libgcc/lib
cp -fpR /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/libgcc_s.so.* /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libgcc/lib/
find /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libgcc -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="aarch64-openwrt-linux-musl-"  NO_RENAME=1 ; NM="aarch64-openwrt-linux-musl-nm" STRIP="/build/openwrt/staging_dir/host/bin/sstrip -z" STRIP_KMOD="/build/openwrt/scripts/strip-kmod.sh" PATCHELF="/build/openwrt/staging_dir/host/bin/patchelf" /build/openwrt/scripts/rstrip.sh /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libgcc
rstrip.sh: /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libgcc/lib/libgcc_s.so.1: shared object
(cd /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libgcc/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm;  )
install -d -m0755 /build/openwrt/bin/targets/mediatek/mt7622/packages
/build/openwrt/staging_dir/host/bin/fakeroot /build/openwrt/staging_dir/host/bin/bash /build/openwrt/scripts/ipkg-build -m "" /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libgcc /build/openwrt/bin/targets/mediatek/mt7622/packages
Packaged contents of /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libgcc into /build/openwrt/bin/targets/mediatek/mt7622/packages/libgcc1_11.2.0-3_aarch64_cortex-a53.ipk
mkdir -p /build/openwrt/bin/targets/mediatek/mt7622/packages /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libc/CONTROL /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo
install -d -m0755 /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libc/lib /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libc/usr/bin
cp -fpR /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/ld-musl-*.so* /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libc/lib/
cp -fpR /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/libc.so* /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libc/lib/
ln -sf ../../lib/libc.so /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libc/usr/bin/ldd
find /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libc -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="aarch64-openwrt-linux-musl-"  NO_RENAME=1 ; NM="aarch64-openwrt-linux-musl-nm" STRIP="/build/openwrt/staging_dir/host/bin/sstrip -z" STRIP_KMOD="/build/openwrt/scripts/strip-kmod.sh" PATCHELF="/build/openwrt/staging_dir/host/bin/patchelf" /build/openwrt/scripts/rstrip.sh /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libc
rstrip.sh: /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libc/lib/libc.so: shared object
(cd /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libc/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm;  )
install -d -m0755 /build/openwrt/bin/targets/mediatek/mt7622/packages
/build/openwrt/staging_dir/host/bin/fakeroot /build/openwrt/staging_dir/host/bin/bash /build/openwrt/scripts/ipkg-build -m "" /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libc /build/openwrt/bin/targets/mediatek/mt7622/packages
Packaged contents of /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libc into /build/openwrt/bin/targets/mediatek/mt7622/packages/libc_1.2.2-3_aarch64_cortex-a53.ipk
mkdir -p /build/openwrt/bin/targets/mediatek/mt7622/packages /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libpthread/CONTROL /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo
install -d -m0755 /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libpthread/lib
find /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libpthread -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="aarch64-openwrt-linux-musl-"  NO_RENAME=1 ; NM="aarch64-openwrt-linux-musl-nm" STRIP="/build/openwrt/staging_dir/host/bin/sstrip -z" STRIP_KMOD="/build/openwrt/scripts/strip-kmod.sh" PATCHELF="/build/openwrt/staging_dir/host/bin/patchelf" /build/openwrt/scripts/rstrip.sh /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libpthread
(cd /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libpthread/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm;  )
install -d -m0755 /build/openwrt/bin/targets/mediatek/mt7622/packages
/build/openwrt/staging_dir/host/bin/fakeroot /build/openwrt/staging_dir/host/bin/bash /build/openwrt/scripts/ipkg-build -m "" /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libpthread /build/openwrt/bin/targets/mediatek/mt7622/packages
Packaged contents of /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/libpthread into /build/openwrt/bin/targets/mediatek/mt7622/packages/libpthread_1.2.2-3_aarch64_cortex-a53.ipk
mkdir -p /build/openwrt/bin/targets/mediatek/mt7622/packages /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/librt/CONTROL /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo
install -d -m0755 /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/librt/lib
find /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/librt -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="aarch64-openwrt-linux-musl-"  NO_RENAME=1 ; NM="aarch64-openwrt-linux-musl-nm" STRIP="/build/openwrt/staging_dir/host/bin/sstrip -z" STRIP_KMOD="/build/openwrt/scripts/strip-kmod.sh" PATCHELF="/build/openwrt/staging_dir/host/bin/patchelf" /build/openwrt/scripts/rstrip.sh /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/librt
(cd /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/librt/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo "[ -s "\${IPKG_INSTROOT}/lib/functions.sh" ] || exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm;  )
install -d -m0755 /build/openwrt/bin/targets/mediatek/mt7622/packages
/build/openwrt/staging_dir/host/bin/fakeroot /build/openwrt/staging_dir/host/bin/bash /build/openwrt/scripts/ipkg-build -m "" /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/librt /build/openwrt/bin/targets/mediatek/mt7622/packages
Packaged contents of /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/ipkg-aarch64_cortex-a53/librt into /build/openwrt/bin/targets/mediatek/mt7622/packages/librt_1.2.2-3_aarch64_cortex-a53.ipk
echo "libc" >> /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/toolchain.default.install
rm -rf /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libgcc.installed /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libgcc
mkdir -p /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libgcc
install -d -m0755 /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libgcc/lib
cp -fpR /build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/libgcc_s.so.* /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libgcc/lib/
touch /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libgcc.installed
rm -rf /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libpthread.installed /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libpthread
mkdir -p /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libpthread
install -d -m0755 /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libpthread/lib
touch /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libpthread.installed
rm -rf /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/librt.installed /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/librt
mkdir -p /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/librt
install -d -m0755 /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/librt/lib
touch /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/librt.installedmkdir -p /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp
echo '1' | cmp -s - /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/libgcc.version || { echo '1' > /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/libgcc.version;  }
SHELL= flock /build/openwrt/tmp/.root-copy.flock -c 'cp -fpR /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libgcc/. /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/'
touch /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp/.libgcc_installed
echo "libgcc" >> /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/toolchain.default.install
mkdir -p /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp
SHELL= flock /build/openwrt/tmp/.root-copy.flock -c 'cp -fpR /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/libpthread/. /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/'
touch /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp/.libpthread_installed
echo "libpthread" >> /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/toolchain.default.install
mkdir -p /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp
SHELL= flock /build/openwrt/tmp/.root-copy.flock -c 'cp -fpR /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/toolchain/.pkgdir/librt/. /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/'
touch /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/stamp/.librt_installed
echo "librt" >> /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/pkginfo/toolchain.default.install
make[2]: Leaving directory '/build/openwrt/package/libs/toolchain'
time: package/libs/toolchain/compile#0.48#0.43#0.84
make[2]: Entering directory '/build/openwrt/package/firmware/linux-firmware'
make[2]: Nothing to be done for 'compile'.
make[2]: Leaving directory '/build/openwrt/package/firmware/linux-firmware'
time: package/firmware/linux-firmware/compile#0.14#0.00#0.13
make[2]: Entering directory '/build/openwrt/package/firmware/prism54-firmware'
make[2]: Nothing to be done for 'compile'.
make[2]: Leaving directory '/build/openwrt/package/firmware/prism54-firmware'
time: package/firmware/prism54-firmware/compile#0.29#0.02#0.29
make[2]: Entering directory '/build/openwrt/package/kernel/gpio-button-hotplug'
touch /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/gpio-button-hotplug/.prepared_78472b6b11de300f4bad49f61cec3db4_6664517399ebbbc92a37c5bb081b5c53_check
true
[ ! -d ./src/ ] || cp -fpR ./src/. /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/gpio-button-hotplug
touch /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/gpio-button-hotplug/.prepared_78472b6b11de300f4bad49f61cec3db4_6664517399ebbbc92a37c5bb081b5c53
rm -f /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/gpio-button-hotplug/.configured_*
rm -f /build/openwrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.gpio-button-hotplug_installed
(cd /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/gpio-button-hotplug/./; if [ -x ./configure ]; then find /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/gpio-button-hotplug/ -name config.guess | xargs -r chmod u+w; find /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/gpio-button-hotplug/ -name config.guess | xargs -r -n1 cp --remove-destination /build/openwrt/scripts/config.guess; find /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/gpio-button-hotplug/ -name config.sub | xargs -r chmod u+w; find /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/gpio-button-hotplug/ -name config.sub | xargs -r -n1 cp --remove-destination /build/openwrt/scripts/config.sub; AR="aarch64-openwrt-linux-musl-gcc-ar" AS="aarch64-openwrt-linux-musl-gcc -c -Os -pipe -mcpu=cortex-a53 -g3 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/build/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/gpio-button-hotplug=gpio-button-hotplug -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=aarch64-openwrt-linux-musl-ld NM="aarch64-openwrt-linux-musl-gcc-nm" CC="aarch64-openwrt-linux-musl-gcc" GCC="aarch64-openwrt-linux-musl-gcc" CXX="aarch64-openwrt-linux-musl-g++" RANLIB="aarch64-openwrt-linux-musl-gcc-ranlib" STRIP=aarch64-openwrt-linux-musl-strip OBJCOPY=aarch64-openwrt-linux-musl-objcopy OBJDUMP=aarch64-openwrt-linux-musl-objdump SIZE=aarch64-openwrt-linux-musl-size CFLAGS="-Os -pipe -mcpu=cortex-a53 -g3 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/build/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/gpio-button-hotplug=gpio-button-hotplug -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -mcpu=cortex-a53 -g3 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/build/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/gpio-button-hotplug=gpio-button-hotplug -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/usr/include -I/build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/include/fortify -I/build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/include " LDFLAGS="-L/build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/usr/lib -L/build/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib -znow -zrelro "   ./configure --target=aarch64-openwrt-linux --host=aarch64-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls  ; fi; )
touch /build/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/gpio-button-hotplug/.configured_68b329da9893e34099c7d8ad5cb9c940
make[2]: *** No rule to make target '/build/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/linux-5.10.104/.config', needed by '/build/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_mt7622/gpio-button-hotplug/.built'.  Stop.
make[2]: Leaving directory '/build/openwrt/package/kernel/gpio-button-hotplug'
time: package/kernel/gpio-button-hotplug/compile#0.14#0.00#0.12
    ERROR: package/kernel/gpio-button-hotplug failed to build.
make[1]: *** [package/Makefile:116: package/kernel/gpio-button-hotplug/compile] Error 1
make[1]: Leaving directory '/build/openwrt'
make: *** [/build/openwrt/include/toplevel.mk:230: package/network/utils/iproute2/compile] Error 2
make[1]: Leaving directory '/build/openwrt'

I am lost here as it seems a missing dependency somewhere, but I can't track it. Any help is welcome.

erdoukki commented 2 years ago

https://github.com/openwrt/packages/issues/17506

A quick fix with a single command; make {toolchain,target,package/iproute2}/compile

okibcn commented 2 years ago

This issue is related to the main OpenWRT repo. I have created the issue in the right place.

This issue should be closed to avoid duplicities.