Applying ./patches/001-linux3x-fix.patch using plaintext: 
patching file acinclude.m4

Applying ./patches/002-fix-signal.h using plaintext: 
patching file pth.h.in
patching file pthread.h.in

Applying ./patches/003-linux4x-fix.patch using plaintext: 
patching file acinclude.m4
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-mips_4kec_musl/host/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/share/aclocal -I m4 -I . --force 
acinclude.m4:93: warning: underquoted definition of AC_ENABLESUBDIR
acinclude.m4:93:   run info Automake 'Extending aclocal'
acinclude.m4:93:   or see https://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
autoreconf: configure.ac: tracing
autoreconf: running: /builder/shared-workdir/build/sdk/staging_dir/host/bin/libtoolize --install --force
OpenWrt-libtoolize: putting auxiliary files in '.'.
OpenWrt-libtoolize: linking file './config.guess'
OpenWrt-libtoolize: linking file './config.sub'
OpenWrt-libtoolize: linking file './install-sh'
OpenWrt-libtoolize: linking file './ltmain.sh'
OpenWrt-libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
OpenWrt-libtoolize: and rerunning libtoolize and aclocal.
OpenWrt-libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
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-mips_4kec_musl/host/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/share/aclocal -I m4 -I . --force 
acinclude.m4:93: warning: underquoted definition of AC_ENABLESUBDIR
acinclude.m4:93:   run info Automake 'Extending aclocal'
acinclude.m4:93:   or see https://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
autoreconf: running: /builder/shared-workdir/build/sdk/staging_dir/host/bin/autoconf --include=/builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/host/share/aclocal --include=/builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal --include=/builder/shared-workdir/build/sdk/staging_dir/target-mips_4kec_musl/usr/share/aclocal --include=m4 --include=. --prepend-include=/builder/shared-workdir/build/sdk/staging_dir/host/share/aclocal --force
autom4te: error: /builder/shared-workdir/build/staging_dir/host/share/autoconf/autoconf/trailer.m4: no such file or directory
autoreconf: error: /builder/shared-workdir/build/sdk/staging_dir/host/bin/autoconf failed with exit status: 1
configure: WARNING: unrecognized options: --disable-nls
configure: loading site script /builder/shared-workdir/build/sdk/include/site/mips
checking for a BSD-compatible install... /builder/shared-workdir/build/sdk/staging_dir/host/bin/install -c
checking whether build environment is sane... yes
/bin/bash: /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/pthsem-2.0.8/missing: No such file or directory
configure: WARNING: `missing' script is too old or missing
checking for mips-openwrt-linux-strip... mips-openwrt-linux-musl-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
Configuring pthsem (Portable Threads), Version 2.0.8
Copyright (c) 2005-2009 Martin Koegler <mkoegler@auto.tuwien.ac.at>
Copyright (c) 1999-2006 Ralf S. Engelschall <rse@engelschall.com>
Platform: mips-openwrt-linux-gnu

Build Tools:
checking for mips-openwrt-linux-gcc... mips-openwrt-linux-musl-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mips-openwrt-linux-musl-gcc accepts -g... yes
checking for mips-openwrt-linux-musl-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of mips-openwrt-linux-musl-gcc... none
checking how to run the C preprocessor... mips-openwrt-linux-musl-gcc -E
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 whether make sets $(MAKE)... (cached) yes
checking for compilation debug mode... disabled
checking build system type... x86_64-pc-linux-gnu
checking host system type... mips-openwrt-linux-gnu
checking for a sed that does not truncate output... /builder/shared-workdir/build/sdk/staging_dir/host/bin/sed
checking for fgrep... /builder/shared-workdir/build/sdk/staging_dir/host/bin/grep -F
checking for ld used by mips-openwrt-linux-musl-gcc... mips-openwrt-linux-musl-ld
checking if the linker (mips-openwrt-linux-musl-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... mips-openwrt-linux-musl-gcc-nm
checking the name lister (mips-openwrt-linux-musl-gcc-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for mips-openwrt-linux-musl-ld option to reload object files... -r
checking for mips-openwrt-linux-objdump... mips-openwrt-linux-musl-objdump
checking how to recognize dependent libraries... pass_all
checking for mips-openwrt-linux-ar... mips-openwrt-linux-musl-gcc-ar
checking for mips-openwrt-linux-strip... (cached) mips-openwrt-linux-musl-strip
checking for mips-openwrt-linux-ranlib... mips-openwrt-linux-musl-gcc-ranlib
checking command to parse mips-openwrt-linux-musl-gcc-nm output from mips-openwrt-linux-musl-gcc object... ok
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if mips-openwrt-linux-musl-gcc supports -fno-rtti -fno-exceptions... no
checking for mips-openwrt-linux-musl-gcc option to produce PIC... -fPIC -DPIC
checking if mips-openwrt-linux-musl-gcc PIC flag -fPIC -DPIC works... yes
checking if mips-openwrt-linux-musl-gcc static flag -static works... yes
checking if mips-openwrt-linux-musl-gcc supports -c -o file.o... yes
checking if mips-openwrt-linux-musl-gcc supports -c -o file.o... (cached) yes
checking whether the mips-openwrt-linux-musl-gcc linker (mips-openwrt-linux-musl-ld) 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

Mandatory Platform Environment:
checking for ANSI C header files... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for string.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for unistd.h... (cached) yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking for sys/stat.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for gettimeofday... (cached) yes
checking for select... yes
checking for sigaction... yes
checking for sigprocmask... yes
checking for sigpending... yes
checking for sigsuspend... yes
decision on mandatory system headers and functions... all fine

Optional Platform Environment:
checking for number of signals... 32
checking for default value of FD_SETSIZE... 1024
checking for poll... yes
checking for define POLLIN in poll.h... yes
checking whether poll(2) facility has to be faked... no
checking for define CLOCK_MONOTONIC in time.h... yes
checking for define __NR_clock_gettime in sys/syscall.h... no
checking for library containing clock_gettime... none required
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking for readv... yes
checking for writev... yes
checking whether readv(2)/writev(2) facility has to be faked... no
checking for usleep... yes
checking for strerror... (cached) yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking net/errno.h usability... no
checking net/errno.h presence... no
checking for net/errno.h... no
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking for library containing gethostname... none required
checking for library containing accept... none required
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for typedef sig_atomic_t... yes
checking for typedef pid_t... yes
checking for typedef size_t... yes
checking for typedef ssize_t... yes
checking for typedef off_t... yes
checking for typedef stack_t... yes
checking for attribute ss_base in struct sigaltstack from sys/signal.h... no
checking for attribute ss_sp in struct sigaltstack from sys/signal.h... yes
checking for a single-argument based gettimeofday... no
checking for struct timespec... yes
checking for typedef socklen_t... yes
checking for type of argument 3 for accept()... socklen_t *
checking for fallback socklen_t... socklen_t
checking for typedef nfds_t... yes
checking for type of argument 2 for poll()... nfds_t
checking for fallback nfds_t... nfds_t
checking for built-in type long long... yes
checking for built-in type long double... yes

Machine Context Implementation:
checking for ucontext.h... yes
checking for makecontext... no
checking for swapcontext... no
checking for getcontext... no
checking for setcontext... no
checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... no
checking for signal.h... (cached) yes
checking for sigsetjmp... yes
checking for siglongjmp... yes
checking for setjmp... yes
checking for longjmp... yes
checking for _setjmp... yes
checking for _longjmp... yes
checking for sigaltstack... yes
checking for sigstack... no
checking for signal-mask aware setjmp(3)/longjmp(3)... (cached) yes: ssjlj
checking for typedef stack_t... (cached) yes
checking for direction of stack growth... down
checking for makecontext... (cached) no
checking for stack setup via makecontext... N.A.
checking for sigaltstack... (cached) yes
checking for typedef stack_t... (cached) yes
checking for stack setup via sigaltstack... guessed
checking for sigstack... (cached) no
checking for stack setup via sigstack... N.A.
decision on mctx implementation... sjlj/ssjlj/sas

System Call Mapping:
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking sys/socketcall.h usability... no
checking sys/socketcall.h presence... no
checking for sys/socketcall.h... no
checking for syscall... yes
checking for define SYS_read in sys/syscall.h... yes
checking for dlfcn.h... (cached) yes
checking for define RTLD_NEXT in dlfcn.h... yes
checking for syscall dynamic libraries... /builder/shared-workdir/build/sdk/staging_dir/toolchain-mips_4kec_gcc-12.2.0_musl/lib/libc.so
checking whether soft system call mapping is used... no
checking whether hard system call mapping is used... no

Build Parameters:
no
checking whether to build Pthread library... no
checking whether to build against external OSSP ex library... no
checking whether to build against external Sfio library... no
checking whether to build against external Dmalloc library... no

Output Substitution:
configure: creating ./config.status
config.status: creating Makefile
config.status: creating debian/Makefile
config.status: creating compat/Makefile
config.status: creating pthread-config
config.status: WARNING:  'pthread-config.in' seems to ignore the --datarootdir setting
config.status: creating pthread.h
config.status: creating compat/pth-config
config.status: creating pth-config
config.status: WARNING:  'pth-config.in' seems to ignore the --datarootdir setting
config.status: creating pthsem.pc
config.status: creating pth.h
config.status: creating pth_acmac.h
config.status: creating pth_acdef.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default commands
configure: WARNING: unrecognized options: --disable-nls
make[4]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/pthsem-2.0.8'
 cd . && automake-1.11 --gnu
/bin/bash: line 4: automake-1.11: command not found
make[4]: *** [Makefile:453: Makefile.in] Error 1
make[4]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/pthsem-2.0.8'
make[3]: *** [Makefile:69: /builder/shared-workdir/build/sdk/build_dir/target-mips_4kec_musl/pthsem-2.0.8/.built] Error 2
time: package/feeds/packages/pthsem/compile#13.74#3.18#26.60