+ exec
+ rm -rf /rpmbuild
+ mkdir -p /rpmbuild
+ su -c 'rpmbuild -ba /builddir/build/SPECS/libnatspec.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.wLUwO7
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf libnatspec-0.2.6
+ /usr/bin/bzip2 -dc /builddir/build/SOURCES/libnatspec-0.2.6.tar.bz2
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd libnatspec-0.2.6
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ chmod 644 profile/libnatspec.csh profile/libnatspec.sh
+ find examples -type f -exec chmod 644 '{}' ';'
+ pushd examples
~/build/BUILD/libnatspec-0.2.6/examples ~/build/BUILD/libnatspec-0.2.6
+ iconv -f KOI8-R catpkt-1.0-alt-natspec.patch -t UTF-8
+ mv catpkt-1.0-alt-natspec.patch.new catpkt-1.0-alt-natspec.patch
+ popd
~/build/BUILD/libnatspec-0.2.6
+ iconv -f KOI8-R -t UTF-8 ChangeLog
+ mv ChangeLog.new ChangeLog
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.jOxcfR
+ umask 022
+ cd /builddir/build/BUILD
+ cd libnatspec-0.2.6
+ autoreconf -fiv
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force 
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:6: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
configure.ac:6: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.ac:17: installing './compile'
configure.ac:6: installing './missing'
docs/Makefile.am:23: warning: shell find $(top_srcdir: non-POSIX variable name
docs/Makefile.am:23: (probably a GNU make extension)
lib/Makefile.am: installing './depcomp'
autoreconf: Leaving directory `.'
+ 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.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'
+ 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'
+ '[' 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 --with-i18n-file=/etc/locale.conf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for riscv64-redhat-linux-gnu-gcc... no
checking for gcc... 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... no
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 ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
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.exe... 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 dependency style of g++... none
checking for riscv64-redhat-linux-gnu-gcc... gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) none
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking build system type... riscv64-redhat-linux-gnu
checking host system type... riscv64-redhat-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert riscv64-redhat-linux-gnu file names to riscv64-redhat-linux-gnu format... func_convert_file_noop
checking how to convert riscv64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for riscv64-redhat-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for riscv64-redhat-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for riscv64-redhat-linux-gnu-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for riscv64-redhat-linux-gnu-strip... no
checking for strip... strip
checking for riscv64-redhat-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for riscv64-redhat-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
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 gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) 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
checking how to run the C++ preprocessor... g++ -E
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 -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for main in -lpopt... yes
checking for ANSI C header files... (cached) yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for nl_langinfo... yes
checking for setlocale... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strstr... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libnatspec.pc
config.status: creating natspec.m4
config.status: creating lib/Makefile
config.status: creating libhi/Makefile
config.status: creating src/Makefile
config.status: creating src/python/Makefile
config.status: creating docs/libnatspecDox.cfg
config.status: creating docs/Makefile
config.status: creating tests/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
+ make -j4
make  all-recursive
make[1]: Entering directory '/builddir/build/BUILD/libnatspec-0.2.6'
Making all in lib
make[2]: Entering directory '/builddir/build/BUILD/libnatspec-0.2.6/lib'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -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  -Wall -funsigned-char -c -o get_charset.lo get_charset.c
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -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  -Wall -funsigned-char -c -o get_locale.lo get_locale.c
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -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  -Wall -funsigned-char -c -o enrich_fs_options.lo enrich_fs_options.c
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -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  -Wall -funsigned-char -c -o convert.lo convert.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -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 -Wall -funsigned-char -c enrich_fs_options.c  -fPIC -DPIC -o .libs/enrich_fs_options.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -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 -Wall -funsigned-char -c get_locale.c  -fPIC -DPIC -o .libs/get_locale.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -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 -Wall -funsigned-char -c get_charset.c  -fPIC -DPIC -o .libs/get_charset.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -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 -Wall -funsigned-char -c convert.c  -fPIC -DPIC -o .libs/convert.o
convert.c: In function 'natspec_convert':
convert.c:166:9: warning: variable 'result' set but not used [-Wunused-but-set-variable]
  size_t result;
         ^~~~~~
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -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  -Wall -funsigned-char -c -o filesystem.lo filesystem.c
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -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  -Wall -funsigned-char -c -o detect.lo detect.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -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 -Wall -funsigned-char -c filesystem.c  -fPIC -DPIC -o .libs/filesystem.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -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 -Wall -funsigned-char -c detect.c  -fPIC -DPIC -o .libs/detect.o
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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  -Wall -funsigned-char  -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o libnatspec.la -rpath /usr/lib64 get_charset.lo get_locale.lo enrich_fs_options.lo convert.lo filesystem.lo detect.lo  
libtool: link: gcc -shared  -fPIC -DPIC  .libs/get_charset.o .libs/get_locale.o .libs/enrich_fs_options.o .libs/convert.o .libs/filesystem.o .libs/detect.o   -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -fstack-protector-strong -grecord-gcc-switches -Wl,-z -Wl,relro   -Wl,-soname -Wl,libnatspec.so.0 -o .libs/libnatspec.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libnatspec.so.0" && ln -s "libnatspec.so.0.0.0" "libnatspec.so.0")
libtool: link: (cd ".libs" && rm -f "libnatspec.so" && ln -s "libnatspec.so.0.0.0" "libnatspec.so")
libtool: link: ( cd ".libs" && rm -f "libnatspec.la" && ln -s "../libnatspec.la" "libnatspec.la" )
make[2]: Leaving directory '/builddir/build/BUILD/libnatspec-0.2.6/lib'
Making all in src
make[2]: Entering directory '/builddir/build/BUILD/libnatspec-0.2.6/src'
make[3]: Entering directory '/builddir/build/BUILD/libnatspec-0.2.6/src'
gcc -DHAVE_CONFIG_H -I. -I..    -I../lib -I../libhi -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  -Wall -funsigned-char -c -o natspec-natspec.o `test -f 'natspec.c' || echo './'`natspec.c
/bin/sh ../libtool  --tag=CC   --mode=link gcc -I../lib -I../libhi -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  -Wall -funsigned-char  -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o natspec natspec-natspec.o ../lib/libnatspec.la -lpopt 
libtool: link: gcc -I../lib -I../libhi -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 -Wall -funsigned-char -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/natspec natspec-natspec.o  ../lib/.libs/libnatspec.so -lpopt
make[3]: Leaving directory '/builddir/build/BUILD/libnatspec-0.2.6/src'
make[2]: Leaving directory '/builddir/build/BUILD/libnatspec-0.2.6/src'
Making all in tests
make[2]: Entering directory '/builddir/build/BUILD/libnatspec-0.2.6/tests'
gcc -DHAVE_CONFIG_H -I. -I..    -I../lib -pedantic -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  -Wall -funsigned-char -c -o test_get_charset-test_get_charset.o `test -f 'test_get_charset.c' || echo './'`test_get_charset.c
test_get_charset.c: In function 'test_for_convert':
test_get_charset.c:106:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  printf("Before natspec_iconv: it=%d, %s, len=%d\n", (int)it, toi, li);
                                                      ^
test_get_charset.c:106:48: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=]
  printf("Before natspec_iconv: it=%d, %s, len=%d\n", (int)it, toi, li);
                                               ~^
                                               %ld
test_get_charset.c:109:40: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=]
  printf("Result natspec_iconv: %s (lo=%d), with result=%d\n", to, lo, result);
                                       ~^
                                       %ld
test_get_charset.c:109:57: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=]
  printf("Result natspec_iconv: %s (lo=%d), with result=%d\n", to, lo, result);
                                                        ~^
                                                        %ld
In file included from test_get_charset.c:16:0:
test_get_charset.c: In function 'test_nls':
test_get_charset.c:122:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   assert (t=natspec_get_filename_encoding(locale));
           ^
test_get_charset.c: In function 'test_for_natspec_iconv':
test_get_charset.c:172:33: warning: format '%d' expects argument of type 'int', but argument 2 has type 'size_t {aka long unsigned int}' [-Wformat=]
  printf("natspec_iconv: insize=%d outsize=%d size=%d outbuf=%s\n", insize, outsize, size, buf);
                                ~^
                                %ld
test_get_charset.c:172:44: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t {aka long unsigned int}' [-Wformat=]
  printf("natspec_iconv: insize=%d outsize=%d size=%d outbuf=%s\n", insize, outsize, size, buf);
                                           ~^
                                           %ld
test_get_charset.c:172:52: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t {aka long unsigned int}' [-Wformat=]
  printf("natspec_iconv: insize=%d outsize=%d size=%d outbuf=%s\n", insize, outsize, size, buf);
                                                   ~^
                                                   %ld
/bin/sh ../libtool  --tag=CC   --mode=link gcc -I../lib -pedantic -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  -Wall -funsigned-char  -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o test_get_charset test_get_charset-test_get_charset.o ../lib/libnatspec.la 
libtool: link: gcc -I../lib -pedantic -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 -Wall -funsigned-char -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/test_get_charset test_get_charset-test_get_charset.o  ../lib/.libs/libnatspec.so
make[2]: Leaving directory '/builddir/build/BUILD/libnatspec-0.2.6/tests'
make[2]: Entering directory '/builddir/build/BUILD/libnatspec-0.2.6'
make[2]: Leaving directory '/builddir/build/BUILD/libnatspec-0.2.6'
make[1]: Leaving directory '/builddir/build/BUILD/libnatspec-0.2.6'
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.OjSEYG
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64 '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64
++ dirname /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64
+ cd libnatspec-0.2.6
+ make DESTDIR=/builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64 install
Making install in lib
make[1]: Entering directory '/builddir/build/BUILD/libnatspec-0.2.6/lib'
make[2]: Entering directory '/builddir/build/BUILD/libnatspec-0.2.6/lib'
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/lib64'
 /bin/sh ../libtool   --mode=install /usr/bin/install -c   libnatspec.la '/builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/lib64'
libtool: install: /usr/bin/install -c .libs/libnatspec.so.0.0.0 /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/lib64/libnatspec.so.0.0.0
libtool: install: (cd /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/lib64 && { ln -s -f libnatspec.so.0.0.0 libnatspec.so.0 || { rm -f libnatspec.so.0 && ln -s libnatspec.so.0.0.0 libnatspec.so.0; }; })
libtool: install: (cd /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/lib64 && { ln -s -f libnatspec.so.0.0.0 libnatspec.so || { rm -f libnatspec.so && ln -s libnatspec.so.0.0.0 libnatspec.so; }; })
libtool: install: /usr/bin/install -c .libs/libnatspec.lai /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/lib64/libnatspec.la
libtool: warning: remember to run 'libtool --finish /usr/lib64'
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/include'
 /usr/bin/install -c -m 644 natspec.h '/builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/include'
make[2]: Leaving directory '/builddir/build/BUILD/libnatspec-0.2.6/lib'
make[1]: Leaving directory '/builddir/build/BUILD/libnatspec-0.2.6/lib'
Making install in src
make[1]: Entering directory '/builddir/build/BUILD/libnatspec-0.2.6/src'
make[2]: Entering directory '/builddir/build/BUILD/libnatspec-0.2.6/src'
make[3]: Entering directory '/builddir/build/BUILD/libnatspec-0.2.6/src'
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/bin'
  /bin/sh ../libtool   --mode=install /usr/bin/install -c natspec '/builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/bin'
libtool: warning: '../lib/libnatspec.la' has not been installed in '/usr/lib64'
libtool: install: /usr/bin/install -c .libs/natspec /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/bin/natspec
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/builddir/build/BUILD/libnatspec-0.2.6/src'
make[2]: Leaving directory '/builddir/build/BUILD/libnatspec-0.2.6/src'
make[1]: Leaving directory '/builddir/build/BUILD/libnatspec-0.2.6/src'
Making install in tests
make[1]: Entering directory '/builddir/build/BUILD/libnatspec-0.2.6/tests'
make[2]: Entering directory '/builddir/build/BUILD/libnatspec-0.2.6/tests'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/builddir/build/BUILD/libnatspec-0.2.6/tests'
make[1]: Leaving directory '/builddir/build/BUILD/libnatspec-0.2.6/tests'
make[1]: Entering directory '/builddir/build/BUILD/libnatspec-0.2.6'
make[2]: Entering directory '/builddir/build/BUILD/libnatspec-0.2.6'
make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/share/aclocal'
 /usr/bin/install -c -m 644 natspec.m4 '/builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/share/aclocal'
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/share/man/man1'
 /usr/bin/install -c -m 644 man/natspec.1 '/builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/share/man/man1'
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/lib64/pkgconfig'
 /usr/bin/install -c -m 644 libnatspec.pc '/builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/lib64/pkgconfig'
make[2]: Leaving directory '/builddir/build/BUILD/libnatspec-0.2.6'
make[1]: Leaving directory '/builddir/build/BUILD/libnatspec-0.2.6'
+ rm -f /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/lib64/libnatspec.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: libnatspec-0.2.6-15.fc28.riscv64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.36U47I
+ umask 022
+ cd /builddir/build/BUILD
+ cd libnatspec-0.2.6
+ DOCDIR=/builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/share/doc/libnatspec
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/share/doc/libnatspec
+ cp -pr AUTHORS /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/share/doc/libnatspec
+ cp -pr README /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/share/doc/libnatspec
+ cp -pr ChangeLog /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/share/doc/libnatspec
+ cp -pr NEWS /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/share/doc/libnatspec
+ cp -pr TODO /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/share/doc/libnatspec
+ cp -pr README-ru.html /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/share/doc/libnatspec
+ exit 0
Provides: libnatspec = 0.2.6-15.fc28 libnatspec(riscv-64) = 0.2.6-15.fc28 libnatspec.so.0()(64bit)
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) libnatspec.so.0()(64bit) libpopt.so.0()(64bit) libpopt.so.0(LIBPOPT_0)(64bit) rtld(GNU_HASH)
Processing files: libnatspec-devel-0.2.6-15.fc28.riscv64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.B84Yft
+ umask 022
+ cd /builddir/build/BUILD
+ cd libnatspec-0.2.6
+ DOCDIR=/builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/share/doc/libnatspec-devel
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/share/doc/libnatspec-devel
+ cp -pr examples /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/share/doc/libnatspec-devel
+ cp -pr profile /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64/usr/share/doc/libnatspec-devel
+ exit 0
Provides: libnatspec-devel = 0.2.6-15.fc28 libnatspec-devel(riscv-64) = 0.2.6-15.fc28 pkgconfig(libnatspec) = 0.2.6
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /usr/bin/pkg-config libnatspec.so.0()(64bit)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/libnatspec-0.2.6-15.fc28.riscv64
Wrote: /builddir/build/SRPMS/libnatspec-0.2.6-15.fc28.src.rpm
Wrote: /builddir/build/RPMS/riscv64/libnatspec-0.2.6-15.fc28.riscv64.rpm
Wrote: /builddir/build/RPMS/riscv64/libnatspec-devel-0.2.6-15.fc28.riscv64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.mKvS1M
+ umask 022
+ cd /builddir/build/BUILD
+ cd libnatspec-0.2.6
+ /usr/bin/rm -rf /builddir/build/BUILDROOT/libnatspec-0.2.6-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