Mock Version: 1.4.9 Mock Version: 1.4.9 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/sigar.spec'], chrootPath='/var/lib/mock/f29-build-6333-1542/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=995gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/sigar.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/sigar-1.6.5-0.20.git58097d9.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/sigar.spec'], chrootPath='/var/lib/mock/f29-build-6333-1542/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=995gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/sigar.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.hkABH8 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sigar-1.6.5 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/sigar-1.6.5-58097d9.tbz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd sigar-1.6.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #100 (bz714249-1-cpu-count.patch):' Patch #100 (bz714249-1-cpu-count.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/os/linux/linux_sigar.c + echo 'Patch #101 (bz746288-1-cpu-count-arch.patch):' Patch #101 (bz746288-1-cpu-count-arch.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/os/linux/linux_sigar.c + echo 'Patch #120 (sigar-1.6.5-java_build.patch):' Patch #120 (sigar-1.6.5-java_build.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file bindings/java/build.xml patching file bindings/java/hyperic_jni/jni-build.xml + echo 'Patch #130 (aarch64-no-m64.patch):' Patch #130 (aarch64-no-m64.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file bindings/java/hyperic_jni/src/org/hyperic/jni/ArchNameTask.java + find . -name '*.class' -delete + find . -name '*.jar' -delete + cp -p /builddir/build/SOURCES/sigar-template-pom.xml bindings/java/pom.xml + sed -i 's|@VERSION@|1.6.5|' bindings/java/pom.xml + sed -i.log4j12 's|log4j.jar|log4j12-1.2.17.jar|' bindings/java/build.xml + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Hi3V1b + umask 022 + cd /builddir/build/BUILD + cd sigar-1.6.5 + sed -i 's|DESTINATION lib|DESTINATION lib64|' src/CMakeLists.txt + mkdir build + pushd build ~/build/BUILD/sigar-1.6.5/build ~/build/BUILD/sigar-1.6.5 + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection --std=gnu89' + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection --std=gnu89' + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + /usr/bin/cmake -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON .. -- The C compiler identification is GNU 8.1.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- CMAKE_SYSTEM_NAME is Linux -- CMAKE_SYSTEM_NAME is Linux -- Configuring done -- Generating done BUILDSTDERR: CMake Warning: BUILDSTDERR: Manually-specified variables were not used by the project: BUILDSTDERR: CMAKE_CXX_FLAGS_RELEASE BUILDSTDERR: CMAKE_C_FLAGS_RELEASE BUILDSTDERR: CMAKE_Fortran_FLAGS_RELEASE BUILDSTDERR: INCLUDE_INSTALL_DIR BUILDSTDERR: LIB_INSTALL_DIR BUILDSTDERR: LIB_SUFFIX BUILDSTDERR: SHARE_INSTALL_PREFIX BUILDSTDERR: SYSCONF_INSTALL_DIR -- Build files have been written to: /builddir/build/BUILD/sigar-1.6.5/build + make -j4 /usr/bin/cmake -H/builddir/build/BUILD/sigar-1.6.5 -B/builddir/build/BUILD/sigar-1.6.5/build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /builddir/build/BUILD/sigar-1.6.5/build/CMakeFiles /builddir/build/BUILD/sigar-1.6.5/build/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory '/builddir/build/BUILD/sigar-1.6.5/build' make -f build-src/CMakeFiles/sigar.dir/build.make build-src/CMakeFiles/sigar.dir/depend make[2]: Entering directory '/builddir/build/BUILD/sigar-1.6.5/build' cd /builddir/build/BUILD/sigar-1.6.5/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/sigar-1.6.5 /builddir/build/BUILD/sigar-1.6.5/src /builddir/build/BUILD/sigar-1.6.5/build /builddir/build/BUILD/sigar-1.6.5/build/build-src /builddir/build/BUILD/sigar-1.6.5/build/build-src/CMakeFiles/sigar.dir/DependInfo.cmake --color= Scanning dependencies of target sigar make[2]: Leaving directory '/builddir/build/BUILD/sigar-1.6.5/build' make -f build-src/CMakeFiles/sigar.dir/build.make build-src/CMakeFiles/sigar.dir/build make[2]: Entering directory '/builddir/build/BUILD/sigar-1.6.5/build' [ 2%] Building C object build-src/CMakeFiles/sigar.dir/sigar_fileinfo.c.o cd /builddir/build/BUILD/sigar-1.6.5/build/build-src && /usr/bin/cc -Dsigar_EXPORTS -I/builddir/build/BUILD/sigar-1.6.5/src/../include -I/builddir/build/BUILD/sigar-1.6.5/src/os/linux -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection --std=gnu89 -fPIC -o CMakeFiles/sigar.dir/sigar_fileinfo.c.o -c /builddir/build/BUILD/sigar-1.6.5/src/sigar_fileinfo.c [ 8%] Building C object build-src/CMakeFiles/sigar.dir/os/linux/linux_sigar.c.o [ 8%] Building C object build-src/CMakeFiles/sigar.dir/sigar.c.o cd /builddir/build/BUILD/sigar-1.6.5/build/build-src && /usr/bin/cc -Dsigar_EXPORTS -I/builddir/build/BUILD/sigar-1.6.5/src/../include -I/builddir/build/BUILD/sigar-1.6.5/src/os/linux -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection --std=gnu89 -fPIC -o CMakeFiles/sigar.dir/sigar.c.o -c /builddir/build/BUILD/sigar-1.6.5/src/sigar.c cd /builddir/build/BUILD/sigar-1.6.5/build/build-src && /usr/bin/cc -Dsigar_EXPORTS -I/builddir/build/BUILD/sigar-1.6.5/src/../include -I/builddir/build/BUILD/sigar-1.6.5/src/os/linux -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection --std=gnu89 -fPIC -o CMakeFiles/sigar.dir/os/linux/linux_sigar.c.o -c /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c [ 11%] Building C object build-src/CMakeFiles/sigar.dir/sigar_cache.c.o cd /builddir/build/BUILD/sigar-1.6.5/build/build-src && /usr/bin/cc -Dsigar_EXPORTS -I/builddir/build/BUILD/sigar-1.6.5/src/../include -I/builddir/build/BUILD/sigar-1.6.5/src/os/linux -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection --std=gnu89 -fPIC -o CMakeFiles/sigar.dir/sigar_cache.c.o -c /builddir/build/BUILD/sigar-1.6.5/src/sigar_cache.c BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/sigar.c: In function 'proc_net_interface_list_get': BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/sigar.c:1832:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(buffer, sizeof(buffer), fp); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/sigar.c:1833:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(buffer, sizeof(buffer), fp); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c: In function 'sigar_os_proc_list_get': BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:624:5: warning: 'readdir_r' is deprecated [-Wdeprecated-declarations] BUILDSTDERR: while (readdir_r(dirp, &dbuf, &ent) == 0) { BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:19: BUILDSTDERR: /usr/include/dirent.h:183:12: note: declared here BUILDSTDERR: extern int readdir_r (DIR *__restrict __dirp, BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c: In function 'get_iostat_proc_dstat': BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1156:22: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] BUILDSTDERR: #define ST_MAJOR(sb) major((sb).st_rdev) BUILDSTDERR: ^~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1232:26: note: in expansion of macro 'ST_MAJOR' BUILDSTDERR: ST_MAJOR(sb), ST_MINOR(sb)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1157:22: warning: implicit declaration of function 'minor'; did you mean 'mknod'? [-Wimplicit-function-declaration] BUILDSTDERR: #define ST_MINOR(sb) minor((sb).st_rdev) BUILDSTDERR: ^~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1232:40: note: in expansion of macro 'ST_MINOR' BUILDSTDERR: ST_MAJOR(sb), ST_MINOR(sb)); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1156:22: error: called object 'major' is not a function or function pointer BUILDSTDERR: #define ST_MAJOR(sb) major((sb).st_rdev) BUILDSTDERR: ^~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1245:23: note: in expansion of macro 'ST_MAJOR' BUILDSTDERR: if ((major == ST_MAJOR(sb)) && BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1240:23: note: declared here BUILDSTDERR: unsigned long major, minor; BUILDSTDERR: ^~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1157:22: error: called object 'minor' is not a function or function pointer BUILDSTDERR: #define ST_MINOR(sb) minor((sb).st_rdev) BUILDSTDERR: ^~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1246:24: note: in expansion of macro 'ST_MINOR' BUILDSTDERR: ((minor == ST_MINOR(sb)) || (minor == 0))) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1240:30: note: declared here BUILDSTDERR: unsigned long major, minor; BUILDSTDERR: ^~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1157:22: error: called object 'minor' is not a function or function pointer BUILDSTDERR: #define ST_MINOR(sb) minor((sb).st_rdev) BUILDSTDERR: ^~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1297:26: note: in expansion of macro 'ST_MINOR' BUILDSTDERR: if (minor == ST_MINOR(sb)) { BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1240:30: note: declared here BUILDSTDERR: unsigned long major, minor; BUILDSTDERR: ^~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c: In function 'get_iostat_procp': BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1156:22: error: called object 'major' is not a function or function pointer BUILDSTDERR: #define ST_MAJOR(sb) major((sb).st_rdev) BUILDSTDERR: ^~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1348:23: note: in expansion of macro 'ST_MAJOR' BUILDSTDERR: if ((major == ST_MAJOR(sb)) && (minor == ST_MINOR(sb))) { BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1343:23: note: declared here BUILDSTDERR: unsigned long major, minor; BUILDSTDERR: ^~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1157:22: error: called object 'minor' is not a function or function pointer BUILDSTDERR: #define ST_MINOR(sb) minor((sb).st_rdev) BUILDSTDERR: ^~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1348:50: note: in expansion of macro 'ST_MINOR' BUILDSTDERR: if ((major == ST_MAJOR(sb)) && (minor == ST_MINOR(sb))) { BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1343:30: note: declared here BUILDSTDERR: unsigned long major, minor; BUILDSTDERR: ^~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c: In function 'sigar_proc_port_get': BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:2585:5: warning: 'readdir_r' is deprecated [-Wdeprecated-declarations] BUILDSTDERR: while (readdir_r(dirp, &dbuf, &ent) == 0) { BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:19: BUILDSTDERR: /usr/include/dirent.h:183:12: note: declared here BUILDSTDERR: extern int readdir_r (DIR *__restrict __dirp, BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:2626:9: warning: 'readdir_r' is deprecated [-Wdeprecated-declarations] BUILDSTDERR: while (readdir_r(fd_dirp, &fd_dbuf, &fd_ent) == 0) { BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:19: BUILDSTDERR: /usr/include/dirent.h:183:12: note: declared here BUILDSTDERR: extern int readdir_r (DIR *__restrict __dirp, BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c: In function 'sigar_cpu_list_get': BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:460:11: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: (void)fgets(cpu_total, sizeof(cpu_total), fp); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c: In function 'get_iostat_procp': BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1341:11: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: (void)fgets(buffer, sizeof(buffer), fp); /* skip header */ BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c: In function 'sigar_net_route_list_get': BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1814:11: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: (void)fgets(buffer, sizeof(buffer), fp); /* skip header */ BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c: In function 'sigar_net_interface_stat_get': BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1857:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(buffer, sizeof(buffer), fp); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:1858:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(buffer, sizeof(buffer), fp); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c: In function 'proc_net_read': BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:2022:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(buffer, sizeof(buffer), fp); /* skip header */ BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c: In function 'sigar_arp_list_get': BUILDSTDERR: /builddir/build/BUILD/sigar-1.6.5/src/os/linux/linux_sigar.c:2503:11: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: (void)fgets(buffer, sizeof(buffer), fp); /* skip header */ BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: make[2]: *** [build-src/CMakeFiles/sigar.dir/build.make:66: build-src/CMakeFiles/sigar.dir/os/linux/linux_sigar.c.o] Error 1 BUILDSTDERR: make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/builddir/build/BUILD/sigar-1.6.5/build' make[1]: Leaving directory '/builddir/build/BUILD/sigar-1.6.5/build' BUILDSTDERR: make[1]: *** [CMakeFiles/Makefile2:985: build-src/CMakeFiles/sigar.dir/all] Error 2 BUILDSTDERR: make: *** [Makefile:166: all] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.Hi3V1b (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.Hi3V1b (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/sigar.spec