+ exec
+ rm -rf /rpmbuild
+ mkdir -p /rpmbuild
+ su -c 'rpmbuild -ba /builddir/build/SPECS/pthsem.spec            --define "debug_package %{nil}"            --undefine _annotated_build            --define "_missing_doc_files_terminate_build %{nil}"            --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d"            --define "_emacs_sitelispdir /usr/share/emacs/site-lisp"            --nocheck   ' mockbuild
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fqvmcR
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf pthsem-2.0.7
+ /usr/bin/gzip -dc /builddir/build/SOURCES/pthsem_2.0.7.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd pthsem-2.0.7
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #1 (pth-2.0.7-dont-remove-gcc-g.patch):'
Patch #1 (pth-2.0.7-dont-remove-gcc-g.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .dont-remove-gcc-g --fuzz=0
patching file configure
Hunk #1 succeeded at 3050 (offset -4 lines).
+ echo 'Patch #2 (pth-2.0.7-config-script.patch):'
Patch #2 (pth-2.0.7-config-script.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .config-script --fuzz=0
patching file pth-config.in
+ for f in ChangeLog README THANKS
+ iconv -f ISO-8859-1 -t UTF-8 ChangeLog -o ChangeLog.new
+ mv ChangeLog.new ChangeLog
+ for f in ChangeLog README THANKS
+ iconv -f ISO-8859-1 -t UTF-8 README -o README.new
+ mv README.new README
+ for f in ChangeLog README THANKS
+ iconv -f ISO-8859-1 -t UTF-8 THANKS -o THANKS.new
+ mv THANKS.new THANKS
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.lMp5G1
+ umask 022
+ cd /builddir/build/BUILD
+ cd pthsem-2.0.7
+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 '
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 '
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
+ '[' 1 = 1 ']'
+++ dirname ./configure
++ find . -name config.guess -o -name config.sub
+ for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub)
++ basename ./config.guess
+ '[' -f /usr/lib/rpm/redhat/config.guess ']'
+ /usr/bin/rm -f ./config.guess
++ basename ./config.guess
+ /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess
'/usr/lib/rpm/redhat/config.guess' -> './config.guess'
+ for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub)
++ basename ./config.sub
+ '[' -f /usr/lib/rpm/redhat/config.sub ']'
+ /usr/bin/rm -f ./config.sub
++ basename ./config.sub
+ /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub
'/usr/lib/rpm/redhat/config.sub' -> './config.sub'
+ '[' 1 = 1 ']'
+ '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']'
++ find . -name ltmain.sh
+ for i in $(find . -name ltmain.sh)
+ /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ltmain.sh
+ ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-static ac_cv_func_sigstack=no
Configuring pthsem (Portable Threads), Version 2.0.7 (08-Jun-2006)
Copyright (c) 2005-2006 Martin Koegler <mkoegler@auto.tuwien.ac.at>
Copyright (c) 1999-2006 Ralf S. Engelschall <rse@engelschall.com>
Platform: riscv64-redhat-linux-gnu

Build Tools:
checking for riscv64-redhat-linux-gnu-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether make sets $(MAKE)... yes
checking for compilation debug mode... disabled
checking for compilation profile mode... disabled
checking for compilation optimization mode... disabled
checking build system type... riscv64-redhat-linux-gnu
checking host system type... riscv64-redhat-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for riscv64-redhat-linux-gnu-g++... no
checking for riscv64-redhat-linux-gnu-c++... no
checking for riscv64-redhat-linux-gnu-gpp... no
checking for riscv64-redhat-linux-gnu-aCC... no
checking for riscv64-redhat-linux-gnu-CC... no
checking for riscv64-redhat-linux-gnu-cxx... no
checking for riscv64-redhat-linux-gnu-cc++... no
checking for riscv64-redhat-linux-gnu-cl... no
checking for riscv64-redhat-linux-gnu-FCC... no
checking for riscv64-redhat-linux-gnu-KCC... no
checking for riscv64-redhat-linux-gnu-RCC... no
checking for riscv64-redhat-linux-gnu-xlC_r... no
checking for riscv64-redhat-linux-gnu-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for riscv64-redhat-linux-gnu-g77... no
checking for riscv64-redhat-linux-gnu-f77... no
checking for riscv64-redhat-linux-gnu-xlf... no
checking for riscv64-redhat-linux-gnu-frt... no
checking for riscv64-redhat-linux-gnu-pgf77... no
checking for riscv64-redhat-linux-gnu-fort77... no
checking for riscv64-redhat-linux-gnu-fl32... no
checking for riscv64-redhat-linux-gnu-af77... no
checking for riscv64-redhat-linux-gnu-f90... no
checking for riscv64-redhat-linux-gnu-xlf90... no
checking for riscv64-redhat-linux-gnu-pgf90... no
checking for riscv64-redhat-linux-gnu-epcf90... no
checking for riscv64-redhat-linux-gnu-f95... no
checking for riscv64-redhat-linux-gnu-fort... no
checking for riscv64-redhat-linux-gnu-xlf95... no
checking for riscv64-redhat-linux-gnu-ifc... no
checking for riscv64-redhat-linux-gnu-efc... no
checking for riscv64-redhat-linux-gnu-pgf95... no
checking for riscv64-redhat-linux-gnu-lf95... no
checking for riscv64-redhat-linux-gnu-gfortran... no
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for riscv64-redhat-linux-gnu-ar... no
checking for ar... ar
checking for riscv64-redhat-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for riscv64-redhat-linux-gnu-strip... no
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/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... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool

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... 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... 65
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 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... 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 gethostname in -lnsl... no
checking for gethostbyname in -lnsl... no
checking for accept in -lsocket... no
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... no
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 *__restrict
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... 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... no
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 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' pth-config
pth_cflags="-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 "
+ sed -i -e 's!-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 !!g' pth-config
+ make pth_p.h
./shtool scpp -o pth_p.h -t pth_p.h.in -Dcpp -Cintern -M '==#==' pth_compat.c pth_debug.c pth_syscall.c pth_errno.c pth_ring.c pth_mctx.c pth_uctx.c pth_clean.c pth_time.c pth_tcb.c pth_util.c pth_pqueue.c pth_event.c pth_sched.c pth_data.c pth_msg.c pth_cancel.c pth_sync.c pth_attr.c pth_lib.c pth_fork.c pth_high.c pth_ext.c pth_string.c pthread.c
+ make -j4
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_debug.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_ring.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_pqueue.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_time.c
In file included from pth_debug.c:29:0:
pth_debug.c: In function '__pth_debug':
pth_debug.c:75:16: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
         pth_sc(write)(STDERR_FILENO, str, n);
                ^
pth_syscall.c:79:22: note: in definition of macro 'pth_sc'
 /* no hard syscall mapping */
                      ^~~~
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_errno.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_mctx.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_uctx.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_tcb.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_sched.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_attr.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_lib.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_event.c
In file included from pth_sched.c:28:0:
pth_sched.c: In function '__pth_sched_eventmanager_sighandler':
pth_sched.c:862:12: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
     pth_sc(write)(pth_sigpipe[1], &c, sizeof(char));
            ^
pth_syscall.c:79:22: note: in definition of macro 'pth_sc'
 /* no hard syscall mapping */
                      ^~~~
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_data.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_clean.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_cancel.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_msg.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_sync.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_fork.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_util.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_high.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_syscall.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_ext.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_compat.c
./libtool --mode=compile --quiet gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  pth_string.c
gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  test_std.c
gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  test_common.c
gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  test_mp.c
gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  test_misc.c
gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  test_philo.c
gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  test_sig.c
gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  test_select.c
gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  test_httpd.c
gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  test_sfio.c
gcc -c -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1  test_uctx.c
test_uctx.c: In function 'worker':
test_uctx.c:45:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     volatile int n = (int)ctx;
                      ^
test_uctx.c: In function 'test_working':
test_uctx.c:71:61: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         pth_uctx_make(uctx[i], NULL, 32*1024, NULL, worker, (void *)i, uctx[0]);
                                                             ^
./libtool --mode=link --quiet gcc -o libpthsem.la pth_debug.lo pth_ring.lo pth_pqueue.lo pth_time.lo pth_errno.lo pth_mctx.lo pth_uctx.lo pth_tcb.lo pth_sched.lo pth_attr.lo pth_lib.lo pth_event.lo pth_data.lo pth_clean.lo pth_cancel.lo pth_msg.lo pth_sync.lo pth_fork.lo pth_util.lo pth_high.lo pth_syscall.lo pth_ext.lo pth_compat.lo pth_string.lo \
-rpath /usr/lib64 -version-info `./shtool version -lc -dlibtool pth_vers.c`
./libtool --mode=link --quiet gcc -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o test_std test_std.o test_common.o libpthsem.la -ldl 
./libtool --mode=link --quiet gcc -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o test_mp test_mp.o test_common.o libpthsem.la -ldl 
./libtool --mode=link --quiet gcc -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o test_misc test_misc.o test_common.o libpthsem.la -ldl 
./libtool --mode=link --quiet gcc -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o test_philo test_philo.o test_common.o libpthsem.la -ldl 
./libtool --mode=link --quiet gcc -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o test_sig test_sig.o test_common.o libpthsem.la -ldl 
./libtool --mode=link --quiet gcc -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o test_select test_select.o test_common.o libpthsem.la -ldl 
./libtool --mode=link --quiet gcc -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o test_httpd test_httpd.o test_common.o libpthsem.la -ldl 
./libtool --mode=link --quiet gcc -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o test_sfio test_sfio.o test_common.o libpthsem.la -ldl 
./libtool --mode=link --quiet gcc -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o test_uctx test_uctx.o test_common.o libpthsem.la -ldl 
make[1]: warning: -jN forced in submake: disabling jobserver mode.
make[1]: Entering directory '/builddir/build/BUILD/pthsem-2.0.7'

Now please type `make test' to run a quick test suite. Hope it works.

make[1]: Leaving directory '/builddir/build/BUILD/pthsem-2.0.7'
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.zD97c7
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64 '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64
++ dirname /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64
+ cd pthsem-2.0.7
+ rm -rf /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64
+ make DESTDIR=/builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64 install
make[1]: Entering directory '/builddir/build/BUILD/pthsem-2.0.7'
./shtool mkdir -f -p -m 755 /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr
./shtool mkdir -f -p -m 755 /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/bin
./shtool mkdir -f -p -m 755 /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/include
./shtool mkdir -f -p -m 755 /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/lib64
./shtool mkdir -f -p -m 755 /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/man/man1
./shtool mkdir -f -p -m 755 /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/man/man3
./shtool mkdir -f -p -m 755 /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/aclocal
./shtool install -c -m 755 pth-config /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/bin/pthsem-config
./shtool install -c -m 644 pth-config.1 /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/man/man1/pthsem-config.1
./shtool install -c -m 644 pth.3 /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/man/man3/pthsem.3
./shtool install -c -m 644 pth.m4 /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/aclocal/pthsem.m4
./shtool install -c -m 644 pth.h /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/include/pthsem.h
./shtool install -c .libs/libpthsem.so.20.0.27 /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/lib64/libpthsem.so.20.0.27
(cd /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/lib64 && { ln -s -f libpthsem.so.20.0.27 libpthsem.so.20 || { rm -f libpthsem.so.20 && ln -s libpthsem.so.20.0.27 libpthsem.so.20; }; })
(cd /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/lib64 && { ln -s -f libpthsem.so.20.0.27 libpthsem.so || { rm -f libpthsem.so && ln -s libpthsem.so.20.0.27 libpthsem.so; }; })
./shtool install -c .libs/libpthsem.lai /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/lib64/libpthsem.la
libtool: install: warning: remember to run `libtool --finish /usr/lib64'
make[1]: Leaving directory '/builddir/build/BUILD/pthsem-2.0.7'
make[1]: Entering directory '/builddir/build/BUILD/pthsem-2.0.7'

Now please type `make test' to run a quick test suite. Hope it works.

make[1]: Leaving directory '/builddir/build/BUILD/pthsem-2.0.7'
+ rm -f /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/lib64/libpthsem.la
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
/sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
+ /usr/lib/rpm/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
Processing files: pthsem-2.0.7-15.fc28.riscv64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.nVucZI
+ umask 022
+ cd /builddir/build/BUILD
+ cd pthsem-2.0.7
+ DOCDIR=/builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/doc/pthsem
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/doc/pthsem
+ cp -pr ANNOUNCE /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/doc/pthsem
+ cp -pr AUTHORS /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/doc/pthsem
+ cp -pr COPYING /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/doc/pthsem
+ cp -pr ChangeLog /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/doc/pthsem
+ cp -pr HISTORY /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/doc/pthsem
+ cp -pr NEWS /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/doc/pthsem
+ cp -pr PORTING /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/doc/pthsem
+ cp -pr README /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/doc/pthsem
+ cp -pr SUPPORT /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/doc/pthsem
+ cp -pr TESTS /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/doc/pthsem
+ cp -pr THANKS /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/doc/pthsem
+ cp -pr USERS /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/doc/pthsem
+ exit 0
Provides: libpthsem.so.20()(64bit) pthsem = 2.0.7-15.fc28 pthsem(riscv-64) = 2.0.7-15.fc28
Requires(interp): /sbin/ldconfig /sbin/ldconfig
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) rtld(GNU_HASH)
Processing files: pthsem-devel-2.0.7-15.fc28.riscv64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.9Cg2Ag
+ umask 022
+ cd /builddir/build/BUILD
+ cd pthsem-2.0.7
+ DOCDIR=/builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/doc/pthsem-devel
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/doc/pthsem-devel
+ cp -pr HACKING /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64/usr/share/doc/pthsem-devel
+ exit 0
Provides: pthsem-devel = 2.0.7-15.fc28 pthsem-devel(riscv-64) = 2.0.7-15.fc28
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /bin/sh libpthsem.so.20()(64bit)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64
Wrote: /builddir/build/SRPMS/pthsem-2.0.7-15.fc28.src.rpm
Wrote: /builddir/build/RPMS/riscv64/pthsem-2.0.7-15.fc28.riscv64.rpm
Wrote: /builddir/build/RPMS/riscv64/pthsem-devel-2.0.7-15.fc28.riscv64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.f4GZSH
+ umask 022
+ cd /builddir/build/BUILD
+ cd pthsem-2.0.7
+ rm -rf /builddir/build/BUILDROOT/pthsem-2.0.7-15.fc28.riscv64
+ exit 0
+ touch /buildok
+ cleanup
+ set +e
+ sync
+ sleep 5
+ sync
+ poweroff
Terminated
++ cleanup
++ set +e
++ sync
Terminated
+++ cleanup
+++ set +e
+++ sync
+++ sleep 5
+++ sync
+++ poweroff