uboot-envtools build error in openwrt-21.02.
Etan Kissling
etan_kissling at apple.com
Thu Feb 18 19:10:11 EST 2021
On 19.02.21, 00:11, "openwrt-devel on behalf of Hauke Mehrtens" <openwrt-devel-bounces at lists.openwrt.org on behalf of hauke at hauke-m.de> wrote:
> On 2/18/21 10:40 PM, Etan Kissling wrote:
> > When building openwrt-21.02 I encountered errors in uboot-envtools.
> >
> > The problem appears since a recent u-boot update.
> > https://github.com/u-boot/u-boot/commit/587e4a4296982f85b2a40fc8a704db65079e0aac
>
> I do not see an build problem in the build bots, could you please post
> your error message and your host operating system?
>
> Hauke
OpenWrt specific builds of u-boot versions before the referenced commit
work fine.
I am using macOS Big Sur 11.2.1 (20D74).
Error log:
touch /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.prepared_e2aad1e41fdd47db834d95447586b48e_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
/***/openwrt/staging_dir/toolchain-arm_***_gcc-8.4.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/8.4.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: cannot find -lgcc_s
/***/openwrt/staging_dir/toolchain-arm_***_gcc-8.4.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/8.4.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status
make[5]: *** [scripts/Makefile.host:104: tools/env/fw_printenv] Error 1
make[4]: *** [Makefile:1995: envtools] Error 2
make[4]: Leaving directory '/***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01'
make[3]: *** [Makefile:82: /***/openwrt/build_dir/target-arm_***_musl_eabi/u-boot-2021.01/.built] Error 2
make[3]: Leaving directory '/***/openwrt/package/boot/uboot-envtools'
time: package/boot/uboot-envtools/compile#4.31#3.50#7.75
ERROR: package/boot/uboot-envtools failed to build.
make[2]: *** [package/Makefile:114: package/boot/uboot-envtools/compile] Error 1
make[2]: Leaving directory '/***/openwrt'
make[1]: *** [package/Makefile:108: /***/openwrt/staging_dir/target-arm_***_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/***/openwrt'
make: *** [/***/openwrt/include/toplevel.mk:230: world] Error 2
make: Leaving directory '/***/openwrt'
Etan
More information about the openwrt-devel
mailing list