uboot-envtools build error in openwrt-21.02.

Etan Kissling etan_kissling at apple.com
Sat Feb 20 15:44:05 EST 2021



On 19.02.21, 22:46, "Ronny Kotzschmar" <ro.ok at me.com> wrote:

> diff --git a/package/boot/uboot-envtools/Makefile b/package/boot/uboot-envtools/Makefile
> index a9eccec0ce..0eb557bb06 100644
> --- a/package/boot/uboot-envtools/Makefile
> +++ b/package/boot/uboot-envtools/Makefile
> @@ -53,6 +53,7 @@ define Build/Configure
>  endef
>
>  MAKE_FLAGS += \
> +       HOSTOS="linux" \
>         TARGET_CFLAGS="$(TARGET_CFLAGS)" \
>         TARGET_LDFLAGS="$(TARGET_LDFLAGS)" \
>         no-dot-config-targets=envtools \

Thanks. With this patch, the build runs through. See log below.

Etan


make[3]: Entering directory '/***/openwrt/package/boot/uboot-envtools'
mkdir -p /***/openwrt/dl
SHELL= flock /***/openwrt/tmp/.u-boot-2021.01.tar.bz2.flock -c '  	/***/openwrt/scripts/download.pl "/***/openwrt/dl" "u-boot-2021.01.tar.bz2" "b407e1510a74e863b8b5cb42a24625344f0e0c2fc7582d8c866bd899367d0454" "" "https://ftp.denx.de/pub/u-boot" "https://mirror.cyberbits.eu/u-boot" "ftp://ftp.denx.de/pub/u-boot"    '
touch /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.prepared_044812006fe7e7c74344cb0bb59f942c_6664517399ebbbc92a37c5bb081b5c53_check
. /***/openwrt/include/shell.sh; bzcat /***/openwrt/dl/u-boot-2021.01.tar.bz2 | tar -C /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01

Applying ./patches/001-compile.patch using plaintext:
patching file tools/env/Makefile
touch /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.prepared_044812006fe7e7c74344cb0bb59f942c_6664517399ebbbc92a37c5bb081b5c53
rm -f /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.configured_*
rm -f /***/openwrt/staging_dir/target-arm_***_musl_eabi/stamp/.uboot-envtools_installed
touch /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/include/config.h
mkdir -p /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/include/config
touch /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/include/config/auto.conf
mkdir -p /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/include/generated
touch /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/include/generated/autoconf.h
touch /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.built
touch /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.built_check
CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -fmacro-prefix-map=/***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01=u-boot-2021.01 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/***/openwrt/staging_dir/toolchain-arm_***_gcc-8.4.0_musl_eabi/usr/include -I/***/openwrt/staging_dir/toolchain-arm_***_gcc-8.4.0_musl_eabi/include/fortify -I/***/openwrt/staging_dir/toolchain-arm_***_gcc-8.4.0_musl_eabi/include " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -fmacro-prefix-map=/***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01=u-boot-2021.01 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/***/openwrt/staging_dir/toolchain-arm_***_gcc-8.4.0_musl_eabi/usr/include -I/***/openwrt/staging_dir
make[4]: Entering directory '/***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01'
  HOSTCC  scripts/basic/fixdep
  UPD     include/config/uboot.release
  UPD     include/generated/version_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  COPY    tools/version.h
  LD      tools/env/built-in.o
  HOSTCC  tools/env/crc32.o
cc1: note: someone does not honour COPTS correctly, passed 0 times
  HOSTCC  tools/env/ctype.o
cc1: note: someone does not honour COPTS correctly, passed 0 times
  HOSTCC  tools/env/env_attr.o
cc1: note: someone does not honour COPTS correctly, passed 0 times
  HOSTCC  tools/env/env_flags.o
cc1: note: someone does not honour COPTS correctly, passed 0 times
  HOSTCC  tools/env/fw_env.o
cc1: note: someone does not honour COPTS correctly, passed 0 times
  HOSTCC  tools/env/linux_string.o
cc1: note: someone does not honour COPTS correctly, passed 0 times
  AR      tools/env/lib.a
  HOSTCC  tools/env/fw_env_main.o
cc1: note: someone does not honour COPTS correctly, passed 0 times
  HOSTLD  tools/env/fw_printenv
  STRIP   tools/env/fw_printenv
make[4]: Leaving directory '/***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01'
touch /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.built
rm -rf /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.pkgdir/uboot-envtools.installed /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.pkgdir/uboot-envtools
mkdir -p /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.pkgdir/uboot-envtools
install -d -m0755 /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.pkgdir/uboot-envtools/usr/sbin
install -m0755 /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/tools/env/fw_printenv /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.pkgdir/uboot-envtools/usr/sbin
ln -sf fw_printenv /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.pkgdir/uboot-envtools/usr/sbin/fw_setenv
install -d -m0755 /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.pkgdir/uboot-envtools/lib
install -m0644 ./files/uboot-envtools.sh /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.pkgdir/uboot-envtools/lib
install -d -m0755 /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.pkgdir/uboot-envtools/etc/uci-defaults
install -m0644 ./files/mvebu /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.pkgdir/uboot-envtools/etc/uci-defaults/30_uboot-envtools
touch /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.pkgdir/uboot-envtools.installed
mkdir -p /***/openwrt/staging_dir/target-arm_***_musl_eabi/root-mvebu/stamp
SHELL= flock /***/openwrt/tmp/.root-copy.flock -c 'cp -fpR /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.pkgdir/uboot-envtools/. /***/openwrt/staging_dir/target-arm_***_musl_eabi/root-mvebu/'
touch /***/openwrt/staging_dir/target-arm_***_musl_eabi/root-mvebu/stamp/.uboot-envtools_installed
mkdir -p /***/openwrt/bin/targets/mvebu/cortexa9/packages /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/ipkg-arm_cortex-a9_vfpv3-d16/uboot-envtools/CONTROL /***/openwrt/staging_dir/target-arm_***_musl_eabi/pkginfo
install -d -m0755 /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/ipkg-arm_cortex-a9_vfpv3-d16/uboot-envtools/usr/sbin
install -m0755 /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/tools/env/fw_printenv /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/ipkg-arm_cortex-a9_vfpv3-d16/uboot-envtools/usr/sbin
ln -sf fw_printenv /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/ipkg-arm_cortex-a9_vfpv3-d16/uboot-envtools/usr/sbin/fw_setenv
install -d -m0755 /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/ipkg-arm_cortex-a9_vfpv3-d16/uboot-envtools/lib
install -m0644 ./files/uboot-envtools.sh /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/ipkg-arm_cortex-a9_vfpv3-d16/uboot-envtools/lib
install -d -m0755 /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/ipkg-arm_cortex-a9_vfpv3-d16/uboot-envtools/etc/uci-defaults
install -m0644 ./files/mvebu /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/ipkg-arm_cortex-a9_vfpv3-d16/uboot-envtools/etc/uci-defaults/30_uboot-envtools
find /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/ipkg-arm_cortex-a9_vfpv3-d16/uboot-envtools -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
export CROSS="arm-openwrt-linux-muslgnueabi-"  NO_RENAME=1 ; NM="arm-openwrt-linux-muslgnueabi-nm" STRIP="/***/openwrt/staging_dir/host/bin/sstrip -z" STRIP_KMOD="/***/openwrt/scripts/strip-kmod.sh" PATCHELF="/***/openwrt/staging_dir/host/bin/patchelf" /***/openwrt/scripts/rstrip.sh /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/ipkg-arm_cortex-a9_vfpv3-d16/uboot-envtools
rstrip.sh: /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/ipkg-arm_cortex-a9_vfpv3-d16/uboot-envtools/usr/sbin/fw_printenv: executable
(cd /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/ipkg-arm_cortex-a9_vfpv3-d16/uboot-envtools/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; echo "$V_Package_uboot_envtools_conffiles" > conffiles;  )
install -d -m0755 /***/openwrt/bin/targets/mvebu/cortexa9/packages
/***/openwrt/staging_dir/host/bin/fakeroot /***/openwrt/scripts/ipkg-build -m "" /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/ipkg-arm_cortex-a9_vfpv3-d16/uboot-envtools /***/openwrt/bin/targets/mvebu/cortexa9/packages
find: '/***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/ipkg-arm_cortex-a9_vfpv3-d16/uboot-envtools/etc/config/ubootenv': No such file or directory
find: '/***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/ipkg-arm_cortex-a9_vfpv3-d16/uboot-envtools/etc/fw_env.config': No such file or directory
Packaged contents of /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/ipkg-arm_cortex-a9_vfpv3-d16/uboot-envtools into /***/openwrt/bin/targets/mvebu/cortexa9/packages/uboot-envtools_2021.01-1_arm_cortex-a9_vfpv3-d16.ipk
echo "uboot-envtools" >> /***/openwrt/staging_dir/target-arm_***_musl_eabi/pkginfo/uboot-envtools.default.install
make[3]: Leaving directory '/***/openwrt/package/boot/uboot-envtools'
time: package/boot/uboot-envtools/compile#4.27#4.37#8.20






More information about the openwrt-devel mailing list