CI/CD failures on non-x86 platforms
Andrey Jr. Melnikov
temnota.am at gmail.com
Sat Oct 28 01:52:33 PDT 2023
Philip Prindeville <philipp_subx at redfish-solutions.com> wrote:
> Thought I sent this earlier but I see no trace of it, so here goes again.
> Here it is again with the link to the build and the extracted logs from one of the failing builds:
> https://github.com/openwrt/packages/actions/runs/6629645917/job/18009391257?pr=22359
> CFLAGS="-Os -pipe -mcpu=8548 -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -ffile-prefix-map=/builder/build_dir/target-powerpc_8548_musl/cligen-6.4.0=cligen-6.4.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/builder/staging_dir/toolchain-powerpc_8548_gcc-12.3.0_musl/usr/include -I/builder/staging_dir/toolchain-powerpc_8548_gcc-12.3.0_musl/include -I/builder/staging_dir/toolchain-powerpc_8548_gcc-12.3.0_musl/include/fortify " CXXFLAGS="-Os -pipe -mcpu=8548 -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -ffile-prefix-map=/builder/build_dir/target-powerpc_8548_musl/cligen-6.4.0=cligen-6.4.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/builder/staging_dir/toolchain-powerpc_8548_gcc-12.3.0_musl/usr/include -I/builder/staging_dir/toolchain-powerpc_8548_gcc-12.3.0_musl/include -I/builder/staging_dir/toolchain-powerpc_8548_gcc-12.3.0_musl/include/fortify " LDFLAGS="-L/builder/staging_dir/toolchain-powerpc_8548_gcc-12.3.0_musl/usr/lib -L/builder/staging_dir/toolchain-powerpc_8548_gcc-12.3.0_musl/lib -fuse-ld=bfd -znow -zrelro " make -C /builder/build_dir/target-powerpc_8548_musl/cligen-6.4.0/. AR="powerpc-openwrt-linux-musl-gcc-ar" AS="powerpc-openwrt-linux-musl-gcc -c -Os -pipe -mcpu=8548 -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -ffile-prefix-map=/builder/build_dir/target-powerpc_8548_musl/cligen-6.4.0=cligen-6.4.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD="powerpc-openwrt-linux-musl-ld.bfd" NM="powerpc-openwrt-linux-musl-gcc-nm" CC="powerpc-openwrt-linux-musl-gcc" GCC="powerpc-openwrt-linux-musl-gcc" CXX="powerpc-openwrt-linux-musl-g++" RANLIB="powerpc-openwrt-linux-musl-gcc-ranlib" STRIP=powerpc-openwrt-linux-musl-strip OBJCOPY=powerpc-openwrt-linux-musl-objcopy OBJDUMP=powerpc-openwrt-linux-musl-objdump SIZE=powerpc-openwrt-linux-musl-size CROSS="powerpc-openwrt-linux-musl-" ARCH="powerpc" DESTDIR="/builder/build_dir/target-powerpc_8548_musl/cligen-6.4.0/ipkg-install" install;
> make[3]: Entering directory '/builder/build_dir/target-powerpc_8548_musl/cligen-6.4.0'
> echo "/* This file is generated from the CLIgen Makefile */" > build.c;
> date +"const char CLIGEN_BUILDSTR[49]=\"%Y.%m.%d %H:%M by `whoami` on `hostname`"\"\; >> build.c;
> echo "const char CLIGEN_VERSION[64]=\"6.4.0\""\; >> build.c;
> powerpc-openwrt-linux-musl-gcc -I. -I. -DHAVE_CONFIG_H -I/builder/staging_dir/toolchain-powerpc_8548_gcc-12.3.0_musl/usr/include -I/builder/staging_dir/toolchain-powerpc_8548_gcc-12.3.0_musl/include -I/builder/staging_dir/toolchain-powerpc_8548_gcc-12.3.0_musl/include/fortify -fPIC -Os -pipe -mcpu=8548 -fno-caller-saves -fno-plt -fhonour-copts -msoft-float -ffile-prefix-map=/builder/build_dir/target-powerpc_8548_musl/cligen-6.4.0=cligen-6.4.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -c build.c
> powerpc-openwrt-linux-musl-gcc -shared -o libcligen.so.6.4 cligen_object.o cligen_callback.o cligen_parsetree.o cligen_pt_head.o cligen_handle.o cligen_cv.o cligen_match.o cligen_result.o cligen_read.o cligen_io.o cligen_expand.o cligen_syntax.o cligen_print.o cligen_cvec.o cligen_buf.o cligen_util.o cligen_history.o cligen_regex.o cligen_getline.o build.o lex.cligen_parse.o cligen_parse.tab.o -L/builder/staging_dir/toolchain-powerpc_8548_gcc-12.3.0_musl/usr/lib -L/builder/staging_dir/toolchain-powerpc_8548_gcc-12.3.0_musl/lib -fuse-ld=bfd -znow -zrelro -Wl,-soname=libcligen.so.6.4 -L.
> file libcligen.so.6.4
> libcligen.so.6.4: ELF 32-bit MSB shared object, PowerPC or cisco 4500, version 1 (SYSV), dynamically linked, with debug_info, not stripped
> /builder/staging_dir/host/bin/install -c -m 0755 -d /builder/build_dir/target-powerpc_8548_musl/cligen-6.4.0/ipkg-install/usr/lib
> /builder/staging_dir/host/bin/install -c -m 0644 -s libcligen.so.6.4 /builder/build_dir/target-powerpc_8548_musl/cligen-6.4.0/ipkg-install/usr/lib
> strip: Unable to recognise the format of the input file `/builder/build_dir/target-powerpc_8548_musl/cligen-6.4.0/ipkg-install/usr/lib/libcligen.so.6.4'
> /builder/staging_dir/host/bin/install: strip process terminated abnormally
> make[3]: *** [Makefile:158: install-lib] Error 1
/builder/staging_dir/host/bin/install is symlink to $(HOST)/usr/bin/install, default INSTALLFLAGS set in comfigure.ac to "-s" (strip).
You have two options:
1 - remove setting INSTALLFLAGS from configure.ac or Makefile.in
2 - tell install about rigth strip programm via '--strip-program=$STRIP'
More information about the openwrt-devel
mailing list