Closed okibcn closed 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.
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.
Well, I was trying to isolate the issue by creating a clean openwrt structure, this is, taking the .config
in 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.
https://github.com/openwrt/packages/issues/17506
A quick fix with a single command;
make {toolchain,target,package/iproute2}/compile
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:
This is the diff .config used for this build run:
Note this commit solved in the past some problems detecting libbpf.
The libbpf was properly sourced and a simple
find . -name "*libbpf**"
on theopenwrt
folder returns this:So, most probably it is again a detection problem.