Applying /builder/shared-workdir/build/sdk/feeds/base/package/libs/libunwind/patches/002-fix-building-getcontext_S.patch using plaintext: patching file src/mips/getcontext.S Applying /builder/shared-workdir/build/sdk/feeds/base/package/libs/libunwind/patches/003-fix-missing-ef_reg-defs-with-musl.patch using plaintext: patching file include/libunwind-mips.h Applying /builder/shared-workdir/build/sdk/feeds/base/package/libs/libunwind/patches/004-ppc-musl.patch using plaintext: patching file include/libunwind-ppc32.h patching file include/libunwind-ppc64.h patching file src/ppc32/Ginit.c patching file src/ppc32/ucontext_i.h Applying /builder/shared-workdir/build/sdk/feeds/base/package/libs/libunwind/patches/005-loongarch64-musl.pattch using plaintext: patching file src/loongarch64/getcontext.S autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: configure.ac: not using Gettext autoreconf: running: /builder/shared-workdir/build/sdk/staging_dir/host/bin/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/target-powerpc_464fp_musl/host/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/target-powerpc_464fp_musl/usr/share/aclocal -I m4 -I . --force -I m4 autoreconf: configure.ac: tracing autoreconf: running: /builder/shared-workdir/build/sdk/staging_dir/host/bin/libtoolize --install --copy --force OpenWrt-libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'. OpenWrt-libtoolize: copying file 'config/config.guess' OpenWrt-libtoolize: copying file 'config/config.sub' OpenWrt-libtoolize: copying file 'config/install-sh' OpenWrt-libtoolize: copying file 'config/ltmain.sh' OpenWrt-libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. OpenWrt-libtoolize: copying file 'm4/libtool.m4' OpenWrt-libtoolize: You should add the contents of 'm4/libtool.m4' to 'aclocal.m4'. OpenWrt-libtoolize: copying file 'm4/ltoptions.m4' OpenWrt-libtoolize: copying file 'm4/ltsugar.m4' OpenWrt-libtoolize: copying file 'm4/ltversion.m4' OpenWrt-libtoolize: copying file 'm4/lt~obsolete.m4' autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: /builder/shared-workdir/build/sdk/staging_dir/host/bin/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/target-powerpc_464fp_musl/host/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/target-powerpc_464fp_musl/usr/share/aclocal -I m4 -I . --force -I m4 autoreconf: running: /builder/shared-workdir/build/sdk/staging_dir/host/bin/autoconf --include=/builder/shared-workdir/build/sdk/staging_dir/target-powerpc_464fp_musl/host/share/aclocal --include=/builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal --include=/builder/shared-workdir/build/sdk/staging_dir/target-powerpc_464fp_musl/usr/share/aclocal --include=m4 --include=. --prepend-include=/builder/shared-workdir/build/sdk/staging_dir/host/share/aclocal --force autoreconf: running: /builder/shared-workdir/build/sdk/staging_dir/host/bin/autoheader --include=/builder/shared-workdir/build/sdk/staging_dir/target-powerpc_464fp_musl/host/share/aclocal --include=/builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal --include=/builder/shared-workdir/build/sdk/staging_dir/target-powerpc_464fp_musl/usr/share/aclocal --include=m4 --include=. --prepend-include=/builder/shared-workdir/build/sdk/staging_dir/host/share/aclocal --force autoreconf: running: /builder/shared-workdir/build/sdk/staging_dir/host/bin/automake --add-missing --copy --force-missing configure.ac:44: installing 'config/compile' configure.ac:38: installing 'config/missing' src/Makefile.am: installing 'config/depcomp' autoreconf: 'config/config.sub' is updated autoreconf: 'config/config.guess' is updated autoreconf: 'config/install-sh' is updated autoreconf: Leaving directory '.' configure: WARNING: unrecognized options: --disable-nls configure: loading site script /builder/shared-workdir/build/sdk/include/site/powerpc checking build system type... x86_64-pc-linux-gnu checking host system type... powerpc-openwrt-linux-gnu checking target system type... powerpc-openwrt-linux-gnu checking for a BSD-compatible install... /builder/shared-workdir/build/sdk/staging_dir/host/bin/install -c checking whether build environment is sane... yes checking for powerpc-openwrt-linux-strip... powerpc-openwrt-linux-musl-strip checking for a race-free mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking whether to enable maintainer-specific portions of Makefiles... no checking for powerpc-openwrt-linux-gcc... powerpc-openwrt-linux-musl-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether powerpc-openwrt-linux-musl-gcc accepts -g... yes checking for powerpc-openwrt-linux-musl-gcc option to enable C11 features... none needed checking whether powerpc-openwrt-linux-musl-gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of powerpc-openwrt-linux-musl-gcc... none checking whether the compiler supports GNU C++... yes checking whether powerpc-openwrt-linux-musl-g++ accepts -g... yes checking for powerpc-openwrt-linux-musl-g++ option to enable C++11 features... none needed checking dependency style of powerpc-openwrt-linux-musl-g++... none checking whether make sets $(MAKE)... (cached) yes checking for powerpc-openwrt-linux-ar... powerpc-openwrt-linux-musl-gcc-ar checking the archiver (powerpc-openwrt-linux-musl-gcc-ar) interface... ar checking how to print strings... printf checking for a sed that does not truncate output... /builder/shared-workdir/build/sdk/staging_dir/host/bin/sed checking for grep that handles long lines and -e... /builder/shared-workdir/build/sdk/staging_dir/host/bin/grep checking for egrep... /builder/shared-workdir/build/sdk/staging_dir/host/bin/grep -E checking for fgrep... /builder/shared-workdir/build/sdk/staging_dir/host/bin/grep -F checking for ld used by powerpc-openwrt-linux-musl-gcc... powerpc-openwrt-linux-musl-ld.bfd checking if the linker (powerpc-openwrt-linux-musl-ld.bfd) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... powerpc-openwrt-linux-musl-gcc-nm checking the name lister (powerpc-openwrt-linux-musl-gcc-nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to powerpc-openwrt-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for powerpc-openwrt-linux-musl-ld.bfd option to reload object files... -r checking for powerpc-openwrt-linux-file... no checking for file... file configure: WARNING: using cross tools not prefixed with host triplet checking for powerpc-openwrt-linux-objdump... powerpc-openwrt-linux-musl-objdump checking how to recognize dependent libraries... pass_all checking for powerpc-openwrt-linux-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for powerpc-openwrt-linux-ar... (cached) powerpc-openwrt-linux-musl-gcc-ar checking for archiver @FILE support... @ checking for powerpc-openwrt-linux-strip... (cached) powerpc-openwrt-linux-musl-strip checking for powerpc-openwrt-linux-ranlib... powerpc-openwrt-linux-musl-gcc-ranlib checking command to parse powerpc-openwrt-linux-musl-gcc-nm output from powerpc-openwrt-linux-musl-gcc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for powerpc-openwrt-linux-mt... no checking for mt... no checking if : is a manifest tool... no checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if powerpc-openwrt-linux-musl-gcc supports -fno-rtti -fno-exceptions... no checking for powerpc-openwrt-linux-musl-gcc option to produce PIC... -fPIC -DPIC checking if powerpc-openwrt-linux-musl-gcc PIC flag -fPIC -DPIC works... yes checking if powerpc-openwrt-linux-musl-gcc static flag -static works... yes checking if powerpc-openwrt-linux-musl-gcc supports -c -o file.o... yes checking if powerpc-openwrt-linux-musl-gcc supports -c -o file.o... (cached) yes checking whether the powerpc-openwrt-linux-musl-gcc linker (powerpc-openwrt-linux-musl-ld.bfd) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking how to run the C++ preprocessor... powerpc-openwrt-linux-musl-g++ -E checking for ld used by powerpc-openwrt-linux-musl-g++... powerpc-openwrt-linux-musl-ld.bfd checking if the linker (powerpc-openwrt-linux-musl-ld.bfd) is GNU ld... yes checking whether the powerpc-openwrt-linux-musl-g++ linker (powerpc-openwrt-linux-musl-ld.bfd) supports shared libraries... yes checking for powerpc-openwrt-linux-musl-g++ option to produce PIC... -fPIC -DPIC checking if powerpc-openwrt-linux-musl-g++ PIC flag -fPIC -DPIC works... yes checking if powerpc-openwrt-linux-musl-g++ static flag -static works... yes checking if powerpc-openwrt-linux-musl-g++ supports -c -o file.o... yes checking if powerpc-openwrt-linux-musl-g++ supports -c -o file.o... (cached) yes checking whether the powerpc-openwrt-linux-musl-g++ linker (powerpc-openwrt-linux-musl-ld.bfd) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking dependency style of powerpc-openwrt-linux-musl-gcc... none checking for an ANSI C-conforming const... yes checking for inline... inline checking for size_t... yes checking size of off_t... (cached) 8 configure: --- Checking for header files --- checking for asm/ptrace_offsets.h... no checking for asm/ptrace.h... yes checking for asm/vsyscall.h... no checking for endian.h... yes checking for sys/endian.h... no checking for sys/param.h... yes checking for execinfo.h... no checking for ia64intrin.h... no checking for sys/uc_access.h... no checking for unistd.h... (cached) yes checking for signal.h... yes checking for sys/types.h... (cached) yes checking for sys/procfs.h... yes checking for sys/ptrace.h... yes checking for sys/syscall.h... yes checking for byteswap.h... yes checking for elf.h... yes checking for sys/elf.h... no checking for link.h... yes checking for sys/link.h... no configure: --- Checking for available types --- checking for struct dl_phdr_info.dlpi_subs... yes checking for struct elf_prstatus... yes checking for struct prstatus... no checking for procfs_status... no checking for elf_fpregset_t... yes configure: --- Checking for libraries --- checking for library containing _Unwind_Resume... -lgcc_s checking for library containing __uc_get_grs... no checking for dl_iterate_phdr... yes checking for dl_phdr_removals_counter... no checking for dlmodinfo... no checking for getunwind... no checking for ttrace... no checking for mincore... yes checking for pipe2... yes checking for sigaltstack... yes checking for execvpe... yes checking if building with AltiVec... no checking if libunwind-coredump should be built... no checking if libunwind-ptrace should be built... yes checking for powerpc-openwrt-linux-musl-gcc options needed to detect all undeclared functions... none needed configure: --- Checking for ptrace symbols --- checking whether PTRACE_POKEUSER is declared... yes checking whether PTRACE_POKEDATA is declared... yes checking whether PTRACE_SETREGSET is declared... yes checking whether PTRACE_TRACEME is declared... yes checking whether PTRACE_CONT is declared... yes checking whether PTRACE_SINGLESTEP is declared... yes checking whether PTRACE_SYSCALL is declared... yes checking whether PT_IO is declared... no checking whether PT_GETREGS is declared... yes checking whether PT_GETFPREGS is declared... yes checking whether PT_CONTINUE is declared... yes checking whether PT_TRACE_ME is declared... yes checking whether PT_STEP is declared... yes checking whether PT_SYSCALL is declared... yes checking if libunwind-nto should be built... checking for sys/neutrino.h... no no checking if libunwind-setjmp should be built... yes checking if weak-backtrace is enabled... yes checking if unwind.h should be exported... yes checking whether to support UNW_CACHE_PER_THREAD... no checking if testsuite should be built... no checking if debug support should be built... no checking if C++ exception support should be built... yes checking if documentation should be built... no checking for latex2man... no checking if we should enable unw_resume tests... yes checking for build architecture... x86_64 checking for host architecture... ppc32 checking for target architecture... ppc32 checking for target operating system... linux-gnu checking for ELF helper width... 32 checking whether to include DWARF support... yes checking whether to restrict build to remote support... no checking whether to load .debug_frame sections... no checking whether to block signals during mutex ops... yes checking whether to validate memory addresses before use... yes checking whether to enable msabi support... checking whether to support LZMA-compressed symbol tables... no checking whether to support ZLIB-compressed symbol tables... auto checking for uncompress in -lz... yes checking for Intel compiler... no checking if building on Solaris then define __EXTENSIONS__ macro... yes checking for QCC compiler... no checking if compiler supports -march=armv8-a+sve... no checking for __builtin___clear_cache... yes checking for __builtin_unreachable... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating include/libunwind-common.h config.status: creating include/libunwind.h config.status: creating include/tdep/libunwind_i.h config.status: creating src/unwind/libunwind.pc config.status: creating src/coredump/libunwind-coredump.pc config.status: creating src/ptrace/libunwind-ptrace.pc config.status: creating src/setjmp/libunwind-setjmp.pc config.status: creating src/libunwind-generic.pc config.status: creating include/config.h config.status: executing depfiles commands config.status: executing libtool commands configure: WARNING: unrecognized options: --disable-nls make[4]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-powerpc_464fp_musl/libunwind-1.8.1' Making all in src make[5]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-powerpc_464fp_musl/libunwind-1.8.1/src' make all-am make[6]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-powerpc_464fp_musl/libunwind-1.8.1/src' CC os-linux.lo CC dl-iterate-phdr.lo CC mi/_ReadULEB.lo CC mi/_ReadSLEB.lo CC mi/backtrace.lo In file included from ../include/libunwind.h:17, from mi/backtrace.c:29: mi/backtrace.c: In function 'unw_backtrace': ../include/libunwind-ppc32.h:278:57: warning: right-hand operand of comma expression has no effect [-Wunused-value] 278 | #define unw_tdep_getcontext(uc) (getcontext (uc), 0) | ~~~~~~~~~~~~~~~~^~~~ ../include/libunwind-common.h:127:41: note: in expansion of macro 'unw_tdep_getcontext' 127 | #define unw_getcontext(uc) unw_tdep_getcontext(uc) | ^~~~~~~~~~~~~~~~~~~ ../include/tdep-ppc32/libunwind_i.h:254:41: note: in expansion of macro 'unw_getcontext' 254 | #define tdep_getcontext_trace unw_getcontext | ^~~~~~~~~~~~~~ mi/backtrace.c:65:3: note: in expansion of macro 'tdep_getcontext_trace' 65 | tdep_getcontext_trace (&uc); | ^~~~~~~~~~~~~~~~~~~~~ ../include/libunwind-ppc32.h:278:57: warning: right-hand operand of comma expression has no effect [-Wunused-value] 278 | #define unw_tdep_getcontext(uc) (getcontext (uc), 0) | ~~~~~~~~~~~~~~~~^~~~ ../include/libunwind-common.h:127:41: note: in expansion of macro 'unw_tdep_getcontext' 127 | #define unw_getcontext(uc) unw_tdep_getcontext(uc) | ^~~~~~~~~~~~~~~~~~~ mi/backtrace.c:72:7: note: in expansion of macro 'unw_getcontext' 72 | unw_getcontext (&uc); | ^~~~~~~~~~~~~~ CC mi/dyn-cancel.lo CC mi/dyn-info-list.lo CC mi/dyn-register.lo CC mi/Laddress_validator.lo CC mi/Ldestroy_addr_space.lo CC mi/Ldyn-extract.lo CC mi/Lfind_dynamic_proc_info.lo CC mi/Lget_accessors.lo CC mi/Lget_fpreg.lo CC mi/Lset_fpreg.lo CC mi/Lget_proc_info_by_ip.lo CC mi/Lget_proc_name.lo CC mi/Lget_reg.lo CC mi/Lput_dynamic_unwind_info.lo CC mi/Lset_cache_size.lo CC mi/Lset_caching_policy.lo CC mi/Lset_iterate_phdr_function.lo CC mi/Lset_reg.lo CC mi/Lget_elf_filename.lo CC ppc32/Lapply_reg_state.lo CC ppc32/Lcreate_addr_space.lo CC ppc32/Lglobal.lo CC ppc32/Linit.lo In file included from ppc32/Linit.c:4: ppc32/Ginit.c: In function 'access_mem': ppc32/Ginit.c:144:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 144 | memcpy ((void *) addr, val, sizeof(unw_word_t)); | ^ ppc32/Ginit.c:148:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 148 | memcpy (val, (void *) addr, sizeof(unw_word_t)); | ^ CC ppc32/Lregs.lo CC ppc32/Lreg_states_iterate.lo CC ppc32/Lresume.lo CC ppc32/Lstep.lo CC elf32.lo In file included from elf32.c:3: elfxx.c: In function '_Uelf32_lookup_symbol_from_dynamic': elfxx.c:205:44: error: passing argument 3 of '_Uppc32_get_func_addr' from incompatible pointer type [-Wincompatible-pointer-types] 205 | if (tdep_get_func_addr (as, val, &val) < 0) | ^~~~ | | | Elf32_Addr * {aka unsigned int *} In file included from ../include/tdep/libunwind_i.h:17, from ../include/libunwind_i.h:422, from elfxx.h:33, from elf32.h:7, from elf32.c:2: ../include/tdep-ppc32/libunwind_i.h:312:44: note: expected 'unw_word_t *' {aka 'long long unsigned int *'} but argument is of type 'Elf32_Addr *' {aka 'unsigned int *'} 312 | unw_word_t *entry_point); | ~~~~~~~~~~~~^~~~~~~~~~~ elfxx.c: In function '_Uelf32_lookup_symbol_closeness': elfxx.c:279:52: error: passing argument 3 of '_Uppc32_get_func_addr' from incompatible pointer type [-Wincompatible-pointer-types] 279 | if (tdep_get_func_addr (as, val, &val) < 0) | ^~~~ | | | Elf32_Addr * {aka unsigned int *} ../include/tdep-ppc32/libunwind_i.h:312:44: note: expected 'unw_word_t *' {aka 'long long unsigned int *'} but argument is of type 'Elf32_Addr *' {aka 'unsigned int *'} 312 | unw_word_t *entry_point); | ~~~~~~~~~~~~^~~~~~~~~~~ elfxx.c: In function '_Uelf32_get_proc_ip_range_in_image': elfxx.c:664:59: error: passing argument 5 of '_Uelf32_lookup_ip_range' from incompatible pointer type [-Wincompatible-pointer-types] 664 | ret = elf_w (lookup_ip_range) (as, ip, ei, load_offset, start, end, &min_dist); | ^~~~~ | | | unw_word_t * {aka long long unsigned int *} elfxx.c:387:65: note: expected 'Elf32_Addr *' {aka 'unsigned int *'} but argument is of type 'unw_word_t *' {aka 'long long unsigned int *'} 387 | Elf_W (Addr) load_offset, Elf_W (Addr) *start_ip, elfxx.c:664:66: error: passing argument 6 of '_Uelf32_lookup_ip_range' from incompatible pointer type [-Wincompatible-pointer-types] 664 | ret = elf_w (lookup_ip_range) (as, ip, ei, load_offset, start, end, &min_dist); | ^~~ | | | unw_word_t * {aka long long unsigned int *} elfxx.c:388:39: note: expected 'Elf32_Addr *' {aka 'unsigned int *'} but argument is of type 'unw_word_t *' {aka 'long long unsigned int *'} 388 | Elf_W (Addr) *end_ip, Elf_W (Addr) *min_dist) elfxx.c:671:73: error: passing argument 5 of '_Uelf32_lookup_ip_range' from incompatible pointer type [-Wincompatible-pointer-types] 671 | int ret_mdi = elf_w (lookup_ip_range) (as, ip, &mdi, load_offset, start, | ^~~~~ | | | unw_word_t * {aka long long unsigned int *} elfxx.c:387:65: note: expected 'Elf32_Addr *' {aka 'unsigned int *'} but argument is of type 'unw_word_t *' {aka 'long long unsigned int *'} 387 | Elf_W (Addr) load_offset, Elf_W (Addr) *start_ip, elfxx.c:672:46: error: passing argument 6 of '_Uelf32_lookup_ip_range' from incompatible pointer type [-Wincompatible-pointer-types] 672 | end, &min_dist); | ^~~ | | | unw_word_t * {aka long long unsigned int *} elfxx.c:388:39: note: expected 'Elf32_Addr *' {aka 'unsigned int *'} but argument is of type 'unw_word_t *' {aka 'long long unsigned int *'} 388 | Elf_W (Addr) *end_ip, Elf_W (Addr) *min_dist) make[6]: *** [Makefile:4800: elf32.lo] Error 1 make[6]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-powerpc_464fp_musl/libunwind-1.8.1/src' make[5]: *** [Makefile:2913: all] Error 2 make[5]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-powerpc_464fp_musl/libunwind-1.8.1/src' make[4]: *** [Makefile:619: all-recursive] Error 1 make[4]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-powerpc_464fp_musl/libunwind-1.8.1' make[3]: *** [Makefile:65: /builder/shared-workdir/build/sdk/build_dir/target-powerpc_464fp_musl/libunwind-1.8.1/.built] Error 2 time: package/feeds/base/libunwind/compile#38.90#9.69#53.20