ntext.h... yes checking for makecontext... yes checking for swapcontext... yes checking for getcontext... yes checking for setcontext... yes checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... yes checking for signal.h... (cached) yes checking for sigsetjmp... no 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... (cached) no checking for signal-mask aware setjmp(3)/longjmp(3)... yes: sjljlx checking for typedef stack_t... (cached) yes checking for direction of stack growth... down checking for makecontext... (cached) yes checking for stack setup via makecontext... ok checking for sigaltstack... (cached) yes checking for typedef stack_t... (cached) yes checking for stack setup via sigaltstack... ok checking for sigstack... (cached) no checking for stack setup via sigstack... N.A. decision on mctx implementation... mcsc/sc/mc 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 dlsym in -ldl... yes checking for dlopen... yes checking for dlsym... yes checking for dlclose... yes checking for define RTLD_NEXT in dlfcn.h... yes checking for syscall dynamic libraries... checking whether soft system call mapping is used... no checking whether hard system call mapping is used... no Build Parameters: checking whether to activate batch build mode... no checking whether to activate maintainer build targets... no checking whether to activate test build targets... yes 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 pthread-config config.status: creating pthread.h config.status: creating pth-config config.status: creating pth.h config.status: creating pth_acmac.h config.status: creating pth_acdef.h config.status: executing default commands Now please type `make' to compile. Good luck. + '[' /usr/lib64 == /usr/lib64 ']' + grep -e '^pth_libdir="/usr/lib64"' pth-config pth_libdir="/usr/lib64" + sed -i -e 's!^pth_libdir="/usr/lib64"!pth_libdir="/usr/lib"!' pth-config + grep -e '-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer' pth-config + echo 'ERROR: Revisit the multiarch CFLAGS fix for pth-config!' ERROR: Revisit the multiarch CFLAGS fix for pth-config! + exit 1 error: Bad exit status from /var/tmp/rpm-tmp.fzUwfZ (%build) RPM build warnings: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.fzUwfZ (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/pthsem.spec