+ exec
+ rm -rf /rpmbuild
+ mkdir -p /rpmbuild
+ su -c 'rpmbuild -ba /builddir/build/SPECS/sysfsutils.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
warning: bogus date in %changelog: Mon Sep 29 2007 Jarod Wilson <jwilson@redhat.com> - 2.1.0-1
warning: bogus date in %changelog: Thu Sep 01 2004 AJ Lewis <alewis@redhat.com> 1.1.0-2
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.CB5zBX
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf sysfsutils-2.1.0
+ /usr/bin/tar -xof -
+ /usr/bin/gzip -dc /builddir/build/SOURCES/sysfsutils-2.1.0.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd sysfsutils-2.1.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (sysfsutils-2.0.0-redhatify.patch):'
Patch #0 (sysfsutils-2.0.0-redhatify.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .redhatify --fuzz=0
patching file COPYING
+ echo 'Patch #1 (sysfsutils-2.0.0-class-dup.patch):'
Patch #1 (sysfsutils-2.0.0-class-dup.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
patching file lib/sysfs_class.c
+ echo 'Patch #2 (sysfsutils-2.1.0-get_link.patch):'
Patch #2 (sysfsutils-2.1.0-get_link.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
patching file lib/sysfs_utils.c
+ echo 'Patch #3 (sysfsutils-2.1.0-manpages.patch):'
Patch #3 (sysfsutils-2.1.0-manpages.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
patching file systool.1
+ echo 'Patch #4 (sysfsutils-aarch64.patch):'
Patch #4 (sysfsutils-aarch64.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
patching file config.guess
patching file config.sub
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.7nK2ym
+ umask 022
+ cd /builddir/build/BUILD
+ cd sysfsutils-2.1.0
+ 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 --disable-static --libdir=/lib64
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... riscv64-redhat-linux-gnu
checking host system type... riscv64-redhat-linux-gnu
checking for style of include used by make... GNU
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 dependency style of gcc... none
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
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 how to run the C preprocessor... gcc -E
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 dependency style of g++... none
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
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 ANSI C... (cached) none needed
checking dependency style of gcc... (cached) none
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for riscv64-redhat-linux-gnu-ranlib... ranlib
checking for gawk... (cached) gawk
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether lstat accepts an empty string... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether stat accepts an empty string... no
checking for bzero... yes
checking for isascii... yes
checking for memset... yes
checking for strchr... yes
checking for strerror... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating cmd/Makefile
config.status: creating test/Makefile
config.status: creating config.h
config.status: executing depfiles commands
+ make -j4
cd . && /bin/sh /builddir/build/BUILD/sysfsutils-2.1.0/missing --run autoheader
/builddir/build/BUILD/sysfsutils-2.1.0/missing: line 46: autoheader: command not found
WARNING: `autoheader' is missing on your system.  You should only need it if
         you modified `acconfig.h' or `configure.ac'.  You might want
         to install the `Autoconf' and `GNU m4' packages.  Grab them
         from any GNU archive site.
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
make[1]: Entering directory '/builddir/build/BUILD/sysfsutils-2.1.0'
Making all in lib
make[2]: Entering directory '/builddir/build/BUILD/sysfsutils-2.1.0/lib'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include   -Wall -W -Wstrict-prototypes  -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  -c -o libsysfs_la-sysfs_utils.lo `test -f 'sysfs_utils.c' || echo './'`sysfs_utils.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include   -Wall -W -Wstrict-prototypes  -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  -c -o libsysfs_la-sysfs_attr.lo `test -f 'sysfs_attr.c' || echo './'`sysfs_attr.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include   -Wall -W -Wstrict-prototypes  -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  -c -o libsysfs_la-sysfs_class.lo `test -f 'sysfs_class.c' || echo './'`sysfs_class.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include   -Wall -W -Wstrict-prototypes  -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  -c -o libsysfs_la-dlist.lo `test -f 'dlist.c' || echo './'`dlist.c
mkdir .libs
mkdir .libs
mkdir: cannot create directory '.libs': File exists
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -W -Wstrict-prototypes -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 -c sysfs_utils.c  -fPIC -DPIC -o .libs/libsysfs_la-sysfs_utils.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -W -Wstrict-prototypes -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 -c sysfs_attr.c  -fPIC -DPIC -o .libs/libsysfs_la-sysfs_attr.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -W -Wstrict-prototypes -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 -c dlist.c  -fPIC -DPIC -o .libs/libsysfs_la-dlist.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -W -Wstrict-prototypes -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 -c sysfs_class.c  -fPIC -DPIC -o .libs/libsysfs_la-sysfs_class.o
dlist.c: In function '_dlist_swap':
dlist.c:649:32: warning: unused parameter 'list' [-Wunused-parameter]
 void _dlist_swap(struct dlist *list, struct dl_node *a, struct dl_node *b)
                                ^~~~
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include   -Wall -W -Wstrict-prototypes  -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  -c -o libsysfs_la-sysfs_device.lo `test -f 'sysfs_device.c' || echo './'`sysfs_device.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include   -Wall -W -Wstrict-prototypes  -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  -c -o libsysfs_la-sysfs_driver.lo `test -f 'sysfs_driver.c' || echo './'`sysfs_driver.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include   -Wall -W -Wstrict-prototypes  -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  -c -o libsysfs_la-sysfs_bus.lo `test -f 'sysfs_bus.c' || echo './'`sysfs_bus.c
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include   -Wall -W -Wstrict-prototypes  -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  -c -o libsysfs_la-sysfs_module.lo `test -f 'sysfs_module.c' || echo './'`sysfs_module.c
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -W -Wstrict-prototypes -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 -c sysfs_device.c  -fPIC -DPIC -o .libs/libsysfs_la-sysfs_device.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -W -Wstrict-prototypes -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 -c sysfs_driver.c  -fPIC -DPIC -o .libs/libsysfs_la-sysfs_driver.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -W -Wstrict-prototypes -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 -c sysfs_bus.c  -fPIC -DPIC -o .libs/libsysfs_la-sysfs_bus.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -Wall -W -Wstrict-prototypes -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 -c sysfs_module.c  -fPIC -DPIC -o .libs/libsysfs_la-sysfs_module.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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o libsysfs.la -rpath /lib64 -version-info 2:1:0 libsysfs_la-sysfs_utils.lo libsysfs_la-sysfs_attr.lo libsysfs_la-sysfs_class.lo libsysfs_la-dlist.lo libsysfs_la-sysfs_device.lo libsysfs_la-sysfs_driver.lo libsysfs_la-sysfs_bus.lo libsysfs_la-sysfs_module.lo  
gcc -shared  .libs/libsysfs_la-sysfs_utils.o .libs/libsysfs_la-sysfs_attr.o .libs/libsysfs_la-sysfs_class.o .libs/libsysfs_la-dlist.o .libs/libsysfs_la-sysfs_device.o .libs/libsysfs_la-sysfs_driver.o .libs/libsysfs_la-sysfs_bus.o .libs/libsysfs_la-sysfs_module.o  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z -Wl,relro -Wl,-soname -Wl,libsysfs.so.2 -o .libs/libsysfs.so.2.0.1
(cd .libs && rm -f libsysfs.so.2 && ln -s libsysfs.so.2.0.1 libsysfs.so.2)
(cd .libs && rm -f libsysfs.so && ln -s libsysfs.so.2.0.1 libsysfs.so)
creating libsysfs.la
(cd .libs && rm -f libsysfs.la && ln -s ../libsysfs.la libsysfs.la)
make[2]: Leaving directory '/builddir/build/BUILD/sysfsutils-2.1.0/lib'
Making all in cmd
make[2]: Entering directory '/builddir/build/BUILD/sysfsutils-2.1.0/cmd'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include   -Wall -W -Wstrict-prototypes -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -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  -c systool.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include   -Wall -W -Wstrict-prototypes -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -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  -c names.c
systool.c: In function 'show_device':
systool.c:271:23: warning: pointer targets in passing argument 2 of 'get_pciconfig_word' differ in signedness [-Wpointer-sign]
       (PCI_VENDOR_ID, attr->value);
                       ^~~~
systool.c:85:21: note: expected 'unsigned char *' but argument is of type 'char *'
 static unsigned int get_pciconfig_word(int offset, unsigned char *buf)
                     ^~~~~~~~~~~~~~~~~~
systool.c:273:23: warning: pointer targets in passing argument 2 of 'get_pciconfig_word' differ in signedness [-Wpointer-sign]
       (PCI_DEVICE_ID, attr->value);
                       ^~~~
names.c: In function 'parse_name_list':
systool.c:85:21: note: expected 'unsigned char *' but argument is of type 'char *'
 static unsigned int get_pciconfig_word(int offset, unsigned char *buf)
                     ^~~~~~~~~~~~~~~~~~
names.c:118:19: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
        if (strlen(q+2) < 3 ||
                   ^
systool.c:275:29: warning: pointer targets in passing argument 2 of 'pci_lookup_name' differ in signedness [-Wpointer-sign]
       pci_lookup_name(pacc, buf, 128,
                             ^~~
In file included from systool.c:33:0:
names.h:31:23: note: expected 'unsigned char *' but argument is of type 'char *'
 extern unsigned char *pci_lookup_name(struct pci_access *a, unsigned char *buf,
                       ^~~~~~~~~~~~~~~
In file included from names.c:13:0:
/usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *'
 extern size_t strlen (const char *__s)
               ^~~~~~
names.c:120:12: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign]
     sscanf(q+2, "%x", &id1) != 1)
            ^
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/stdio.h:402:12: note: expected 'const char * restrict' but argument is of type 'unsigned char *'
 extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s,
            ^
names.c:126:19: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
        if (strlen(q) < 5 ||
                   ^
In file included from names.c:13:0:
/usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *'
 extern size_t strlen (const char *__s)
               ^~~~~~
names.c:128:12: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign]
     sscanf(q, "%x", &id1) != 1)
            ^
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/stdio.h:402:12: note: expected 'const char * restrict' but argument is of type 'unsigned char *'
 extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s,
            ^
names.c:141:17: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign]
      if (sscanf(q, "%x", &id2) != 1 || q[4] != ' ')
                 ^
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/stdio.h:402:12: note: expected 'const char * restrict' but argument is of type 'unsigned char *'
 extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s,
            ^
names.c:150:17: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign]
      if (sscanf(q, "%x", &id2) != 1 || q[2] != ' ')
                 ^
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/stdio.h:402:12: note: expected 'const char * restrict' but argument is of type 'unsigned char *'
 extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s,
            ^
names.c:164:17: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign]
      if (sscanf(q, "%x%x", &id3, &id4) != 2 || q[9] != ' ')
                 ^
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/stdio.h:402:12: note: expected 'const char * restrict' but argument is of type 'unsigned char *'
 extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s,
            ^
names.c:172:17: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign]
      if (sscanf(q, "%x", &id3) != 1 || q[2] != ' ')
                 ^
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/stdio.h:402:12: note: expected 'const char * restrict' but argument is of type 'unsigned char *'
 extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s,
            ^
names.c: In function 'load_name_list':
names.c:202:13: warning: pointer targets in passing argument 1 of 'open' differ in signedness [-Wpointer-sign]
   fd = open(a->pci_id_file_name, O_RDONLY);
             ^
In file included from /usr/include/fcntl.h:313:0,
                 from names.c:14:
/usr/include/bits/fcntl2.h:41:1: note: expected 'const char *' but argument is of type 'unsigned char *'
 open (const char *__path, int __oflag, ...)
 ^~~~
names.c:209:22: warning: pointer targets in passing argument 2 of 'err_name_list' differ in signedness [-Wpointer-sign]
     err_name_list(a, "stat");
                      ^~~~~~
names.c:84:1: note: expected 'unsigned char *' but argument is of type 'char *'
 err_name_list(struct pci_access *a, unsigned char *msg)
 ^~~~~~~~~~~~~
names.c:212:22: warning: pointer targets in passing argument 2 of 'err_name_list' differ in signedness [-Wpointer-sign]
     err_name_list(a, "read");
                      ^~~~~~
names.c:84:1: note: expected 'unsigned char *' but argument is of type 'char *'
 err_name_list(struct pci_access *a, unsigned char *msg)
 ^~~~~~~~~~~~~
names.c: In function 'pci_lookup_name':
names.c:267:17: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]
  res = snprintf(buf, size, "%04x", arg1);
                 ^~~
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *'
 __NTH (snprintf (char *__restrict __s, size_t __n,
 ^
names.c:273:17: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]
  res = snprintf(buf, size, "%04x", arg2);
                 ^~~
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *'
 __NTH (snprintf (char *__restrict __s, size_t __n,
 ^
names.c:282:21: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]
      res = snprintf(buf, size, "Unknown device %04x:%04x", arg1, arg2);
                     ^~~
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *'
 __NTH (snprintf (char *__restrict __s, size_t __n,
 ^
names.c:284:21: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]
      res = snprintf(buf, size, "%s: Unknown device %04x", e->name, arg2);
                     ^~~
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *'
 __NTH (snprintf (char *__restrict __s, size_t __n,
 ^
names.c:286:21: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]
      res = snprintf(buf, size, "%s %s", e->name, e2->name);
                     ^~~
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *'
 __NTH (snprintf (char *__restrict __s, size_t __n,
 ^
names.c:289:17: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]
  res = snprintf(buf, size, "%04x:%04x", arg1, arg2);
                 ^~~
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *'
 __NTH (snprintf (char *__restrict __s, size_t __n,
 ^
names.c:295:17: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]
  res = snprintf(buf, size, "%04x", arg2);
                 ^~~
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *'
 __NTH (snprintf (char *__restrict __s, size_t __n,
 ^
names.c:303:17: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]
  res = snprintf(buf, size, "%04x", arg4);
                 ^~~
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *'
 __NTH (snprintf (char *__restrict __s, size_t __n,
 ^
names.c:315:21: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]
      res = snprintf(buf, size, "Unknown device %04x:%04x", arg3, arg4);
                     ^~~
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *'
 __NTH (snprintf (char *__restrict __s, size_t __n,
 ^
names.c:317:21: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]
      res = snprintf(buf, size, "%s: Unknown device %04x", e->name, arg4);
                     ^~~
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *'
 __NTH (snprintf (char *__restrict __s, size_t __n,
 ^
names.c:319:21: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]
      res = snprintf(buf, size, "%s %s", e->name, e2->name);
                     ^~~
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *'
 __NTH (snprintf (char *__restrict __s, size_t __n,
 ^
names.c:322:17: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]
  res = snprintf(buf, size, "%04x:%04x", arg3, arg4);
                 ^~~
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *'
 __NTH (snprintf (char *__restrict __s, size_t __n,
 ^
systool.c: In function 'main':
systool.c:751:27: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
    pacc->pci_id_file_name = pci_id_file;
                           ^
names.c:328:17: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]
  res = snprintf(buf, size, "%s [%04x]", n->name, arg1);
                 ^~~
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *'
 __NTH (snprintf (char *__restrict __s, size_t __n,
 ^
names.c:330:17: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]
  res = snprintf(buf, size, "Class %04x", arg1);
                 ^~~
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *'
 __NTH (snprintf (char *__restrict __s, size_t __n,
 ^
systool.c:692:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
    show_module = optarg;
    ~~~~~~~~~~~~^~~~~~~~
systool.c:693:3: note: here
   case 'p':
   ^~~~
names.c:340:19: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]
    res = snprintf(buf, size, "%s%s%s%s%s",
                   ^~~
In file included from /usr/include/features.h:428:0,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from names.c:11:
/usr/include/bits/stdio2.h:64:1: note: expected 'char * restrict' but argument is of type 'unsigned char *'
 __NTH (snprintf (char *__restrict __s, size_t __n,
 ^
names.c:352:14: warning: pointer targets in return differ in signedness [-Wpointer-sign]
       return "<pci_lookup_name: invalid request>";
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
names.c:355:14: warning: pointer targets in return differ in signedness [-Wpointer-sign]
       return "<too-large>";
              ^~~~~~~~~~~~~
/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -W -Wstrict-prototypes -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o systool  systool.o names.o ../lib/libsysfs.la 
mkdir .libs
gcc -Wall -W -Wstrict-prototypes -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/systool systool.o names.o  ../lib/.libs/libsysfs.so -Wl,--rpath -Wl,/lib64
creating systool
make[2]: Leaving directory '/builddir/build/BUILD/sysfsutils-2.1.0/cmd'
Making all in test
make[2]: Entering directory '/builddir/build/BUILD/sysfsutils-2.1.0/test'
./create-test
make  all-am
make[3]: Entering directory '/builddir/build/BUILD/sysfsutils-2.1.0/test'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include   -Wall -W -Wstrict-prototypes  -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  -c dlist_test.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include   -Wall -W -Wstrict-prototypes  -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  -c get_device.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include   -Wall -W -Wstrict-prototypes  -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  -c get_driver.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include   -Wall -W -Wstrict-prototypes  -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  -c get_module.c
dlist_test.c: In function 'main':
dlist_test.c:63:15: warning: unused parameter 'argc' [-Wunused-parameter]
 int main (int argc,char *argv[])
               ^~~~
dlist_test.c:63:26: warning: unused parameter 'argv' [-Wunused-parameter]
 int main (int argc,char *argv[])
                          ^~~~
get_driver.c: In function 'main':
get_driver.c:40:26: warning: unused variable 'attr' [-Wunused-variable]
  struct sysfs_attribute *attr = NULL;
                          ^~~~
/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -W -Wstrict-prototypes  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o get_device  get_device.o ../lib/libsysfs.la 
/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -W -Wstrict-prototypes  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o get_driver  get_driver.o ../lib/libsysfs.la 
/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -W -Wstrict-prototypes  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o get_module  get_module.o ../lib/libsysfs.la 
/bin/sh ../libtool --tag=CC --mode=link gcc -Wall -W -Wstrict-prototypes  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o dlist_test  dlist_test.o ../lib/libsysfs.la 
mkdir .libs
gcc -Wall -W -Wstrict-prototypes -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/get_device get_device.o  ../lib/.libs/libsysfs.so -Wl,--rpath -Wl,/lib64
gcc -Wall -W -Wstrict-prototypes -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/get_driver get_driver.o  ../lib/.libs/libsysfs.so -Wl,--rpath -Wl,/lib64
gcc -Wall -W -Wstrict-prototypes -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/get_module get_module.o  ../lib/.libs/libsysfs.so -Wl,--rpath -Wl,/lib64
creating get_device
creating get_driver
creating get_module
gcc -Wall -W -Wstrict-prototypes -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/dlist_test dlist_test.o  ../lib/.libs/libsysfs.so -Wl,--rpath -Wl,/lib64
creating dlist_test
make[3]: Leaving directory '/builddir/build/BUILD/sysfsutils-2.1.0/test'
make[2]: Leaving directory '/builddir/build/BUILD/sysfsutils-2.1.0/test'
make[2]: Entering directory '/builddir/build/BUILD/sysfsutils-2.1.0'
make[2]: Leaving directory '/builddir/build/BUILD/sysfsutils-2.1.0'
make[1]: Leaving directory '/builddir/build/BUILD/sysfsutils-2.1.0'
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.o3QKOQ
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64 '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64
++ dirname /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64
+ cd sysfsutils-2.1.0
+ rm -rf /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64
+ make DESTDIR=/builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64 install
Making install in lib
make[1]: Entering directory '/builddir/build/BUILD/sysfsutils-2.1.0/lib'
make[2]: Entering directory '/builddir/build/BUILD/sysfsutils-2.1.0/lib'
test -z "/lib64" || mkdir -p -- "/builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/lib64"
 /bin/sh ../libtool --mode=install /usr/bin/install -c  'libsysfs.la' '/builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/lib64/libsysfs.la'
/usr/bin/install -c .libs/libsysfs.so.2.0.1 /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/lib64/libsysfs.so.2.0.1
(cd /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/lib64 && { ln -s -f libsysfs.so.2.0.1 libsysfs.so.2 || { rm -f libsysfs.so.2 && ln -s libsysfs.so.2.0.1 libsysfs.so.2; }; })
(cd /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/lib64 && { ln -s -f libsysfs.so.2.0.1 libsysfs.so || { rm -f libsysfs.so && ln -s libsysfs.so.2.0.1 libsysfs.so; }; })
/usr/bin/install -c .libs/libsysfs.lai /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/lib64/libsysfs.la
libtool: install: warning: remember to run `libtool --finish /lib64'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/builddir/build/BUILD/sysfsutils-2.1.0/lib'
make[1]: Leaving directory '/builddir/build/BUILD/sysfsutils-2.1.0/lib'
Making install in cmd
make[1]: Entering directory '/builddir/build/BUILD/sysfsutils-2.1.0/cmd'
make[2]: Entering directory '/builddir/build/BUILD/sysfsutils-2.1.0/cmd'
test -z "/usr/bin" || mkdir -p -- "/builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin"
  /bin/sh ../libtool --mode=install /usr/bin/install -c 'systool' '/builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin/systool'
libtool: install: warning: `../lib/libsysfs.la' has not been installed in `/lib64'
/usr/bin/install -c .libs/systool /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin/systool
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/builddir/build/BUILD/sysfsutils-2.1.0/cmd'
make[1]: Leaving directory '/builddir/build/BUILD/sysfsutils-2.1.0/cmd'
Making install in test
make[1]: Entering directory '/builddir/build/BUILD/sysfsutils-2.1.0/test'
make  install-am
make[2]: Entering directory '/builddir/build/BUILD/sysfsutils-2.1.0/test'
make[3]: Entering directory '/builddir/build/BUILD/sysfsutils-2.1.0/test'
test -z "/usr/bin" || mkdir -p -- "/builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin"
  /bin/sh ../libtool --mode=install /usr/bin/install -c 'dlist_test' '/builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin/dlist_test'
libtool: install: warning: `../lib/libsysfs.la' has not been installed in `/lib64'
/usr/bin/install -c .libs/dlist_test /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin/dlist_test
  /bin/sh ../libtool --mode=install /usr/bin/install -c 'get_device' '/builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin/get_device'
libtool: install: warning: `../lib/libsysfs.la' has not been installed in `/lib64'
/usr/bin/install -c .libs/get_device /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin/get_device
  /bin/sh ../libtool --mode=install /usr/bin/install -c 'get_driver' '/builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin/get_driver'
libtool: install: warning: `../lib/libsysfs.la' has not been installed in `/lib64'
/usr/bin/install -c .libs/get_driver /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin/get_driver
  /bin/sh ../libtool --mode=install /usr/bin/install -c 'get_module' '/builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin/get_module'
libtool: install: warning: `../lib/libsysfs.la' has not been installed in `/lib64'
/usr/bin/install -c .libs/get_module /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin/get_module
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/builddir/build/BUILD/sysfsutils-2.1.0/test'
make[2]: Leaving directory '/builddir/build/BUILD/sysfsutils-2.1.0/test'
make[1]: Leaving directory '/builddir/build/BUILD/sysfsutils-2.1.0/test'
make[1]: Entering directory '/builddir/build/BUILD/sysfsutils-2.1.0'
make[2]: Entering directory '/builddir/build/BUILD/sysfsutils-2.1.0'
make[2]: Nothing to be done for 'install-exec-am'.
test -z "/usr/include/sysfs" || mkdir -p -- "/builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/include/sysfs"
 /usr/bin/install -c -m 644 'include/libsysfs.h' '/builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/include/sysfs/libsysfs.h'
 /usr/bin/install -c -m 644 'include/dlist.h' '/builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/include/sysfs/dlist.h'
test -z "/usr/share/man/man1" || mkdir -p -- "/builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/man/man1"
 /usr/bin/install -c -m 644 './systool.1' '/builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/man/man1/systool.1'
make[2]: Leaving directory '/builddir/build/BUILD/sysfsutils-2.1.0'
make[1]: Leaving directory '/builddir/build/BUILD/sysfsutils-2.1.0'
+ rm -f /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin/dlist_test /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin/get_bus_devices_list /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin/get_class_dev /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin/get_classdev_parent /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin/get_device /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin/get_driver /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin/testlibsysfs /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/bin/write_attr
+ rm -f /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/lib64/libsysfs.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: sysfsutils-2.1.0-22.fc28.riscv64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.lSmzTI
+ umask 022
+ cd /builddir/build/BUILD
+ cd sysfsutils-2.1.0
+ DOCDIR=/builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/sysfsutils
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/sysfsutils
+ cp -pr COPYING /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/sysfsutils
+ cp -pr AUTHORS /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/sysfsutils
+ cp -pr README /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/sysfsutils
+ cp -pr NEWS /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/sysfsutils
+ cp -pr CREDITS /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/sysfsutils
+ cp -pr ChangeLog /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/sysfsutils
+ cp -pr docs/libsysfs.txt /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/sysfsutils
+ cp -pr cmd/GPL /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/sysfsutils
+ exit 0
Provides: sysfsutils = 2.1.0-22.fc28 sysfsutils(riscv-64) = 2.1.0-22.fc28
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
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) libsysfs.so.2()(64bit) rtld(GNU_HASH)
Processing files: libsysfs-2.1.0-22.fc28.riscv64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.lVfBvK
+ umask 022
+ cd /builddir/build/BUILD
+ cd sysfsutils-2.1.0
+ DOCDIR=/builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/libsysfs
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/libsysfs
+ cp -pr COPYING /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/libsysfs
+ cp -pr AUTHORS /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/libsysfs
+ cp -pr README /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/libsysfs
+ cp -pr NEWS /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/libsysfs
+ cp -pr CREDITS /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/libsysfs
+ cp -pr ChangeLog /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/libsysfs
+ cp -pr docs/libsysfs.txt /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/libsysfs
+ cp -pr lib/LGPL /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64/usr/share/doc/libsysfs
+ exit 0
Provides: libsysfs = 2.1.0-22.fc28 libsysfs(riscv-64) = 2.1.0-22.fc28 libsysfs.so.2()(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) rtld(GNU_HASH)
Processing files: libsysfs-devel-2.1.0-22.fc28.riscv64
Provides: libsysfs-devel = 2.1.0-22.fc28 libsysfs-devel(riscv-64) = 2.1.0-22.fc28
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: libsysfs.so.2()(64bit)
Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64
Wrote: /builddir/build/SRPMS/sysfsutils-2.1.0-22.fc28.src.rpm
Wrote: /builddir/build/RPMS/riscv64/sysfsutils-2.1.0-22.fc28.riscv64.rpm
Wrote: /builddir/build/RPMS/riscv64/libsysfs-2.1.0-22.fc28.riscv64.rpm
Wrote: /builddir/build/RPMS/riscv64/libsysfs-devel-2.1.0-22.fc28.riscv64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.hUfKbs
+ umask 022
+ cd /builddir/build/BUILD
+ cd sysfsutils-2.1.0
+ rm -rf /builddir/build/BUILDROOT/sysfsutils-2.1.0-22.fc28.riscv64
+ exit 0
+ touch /buildok
+ cleanup
+ set +e
+ sync
+ sleep 5
+ sync
+ poweroff
Terminated
++ cleanup
++ set +e
++ sync
++ sleep 5
Terminated
+++ cleanup
+++ set +e
+++ sync
+++ sleep 5
+++ sync
+++ poweroff