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/openvas-scanner.spec'], chrootPath='/var/lib/mock/f29-build-13337-6061/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'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/openvas-scanner.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'} and shell False BUILDSTDERR: warning: Macro expanded in comment on line 210: %{_sbindir}/openvas-nvt-sync BUILDSTDERR: warning: Macro expanded in comment on line 214: %{_mandir}/man1/*.1.* Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/openvas-scanner-5.1.1-4.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/openvas-scanner.spec'], chrootPath='/var/lib/mock/f29-build-13337-6061/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'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/openvas-scanner.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'} and shell False BUILDSTDERR: warning: Macro expanded in comment on line 210: %{_sbindir}/openvas-nvt-sync BUILDSTDERR: warning: Macro expanded in comment on line 214: %{_mandir}/man1/*.1.* Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.lDoDca + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf openvas-scanner-5.1.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/openvas-scanner-5.1.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd openvas-scanner-5.1.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #5 (openvas-scanner-gcc7.patch):' Patch #5 (openvas-scanner-gcc7.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .gcc7 --fuzz=0 patching file src/pluginscheduler.c + for i in CHANGES ChangeLog + iconv -f iso8859-1 -t utf-8 CHANGES + touch -r CHANGES CHANGES.utf8 + mv -f CHANGES.utf8 CHANGES + for i in CHANGES ChangeLog + iconv -f iso8859-1 -t utf-8 ChangeLog + touch -r ChangeLog ChangeLog.utf8 + mv -f ChangeLog.utf8 ChangeLog + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.TL69Ug + umask 022 + cd /builddir/build/BUILD + cd openvas-scanner-5.1.1 + export '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' + 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' + 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' + 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 -DLOCALSTATEDIR:PATH=/var -DOPENVASSD_RULES:PATH=/etc/openvas/openvassd.rules BUILDSTDERR: -- Configuring the Scanner... -- 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 BUILDSTDERR: CMake Deprecation Warning at CMakeLists.txt:33 (cmake_policy): BUILDSTDERR: The OLD behavior for policy CMP0005 will be removed from a future version BUILDSTDERR: of CMake. BUILDSTDERR: The cmake-policies(7) manual explains that the OLD behaviors of all BUILDSTDERR: policies are deprecated and that a policy should be set to OLD only under BUILDSTDERR: specific short-term circumstances. Projects should be ported to the NEW BUILDSTDERR: behavior and not rely on setting a policy to OLD. -- Found PkgConfig: /usr/bin/pkg-config (found version "1.4.2") BUILDSTDERR: -- Install prefix: /usr -- Checking for module 'libopenvas_nasl>=9.0.0' -- Found libopenvas_nasl, version 9.0.2 -- Checking for module 'libopenvas_base>=9.0.0' -- Found libopenvas_base, version 9.0.2 -- Checking for module 'libopenvas_misc>=9.0.0' -- Found libopenvas_misc, version 9.0.2 -- Checking for module 'glib-2.0>=2.32' -- Found glib-2.0, version 2.56.1 -- Looking for libgcrypt... -- Looking for libgcrypt... /usr/lib64/libgcrypt.so -- Found Doxygen: /usr/bin/doxygen (found version "1.8.14") found components: doxygen missing components: dot -- Configuring done -- Generating done BUILDSTDERR: CMake Warning: BUILDSTDERR: Manually-specified variables were not used by the project: BUILDSTDERR: BUILD_SHARED_LIBS 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: OPENVASSD_RULES BUILDSTDERR: SHARE_INSTALL_PREFIX -- Build files have been written to: /builddir/build/BUILD/openvas-scanner-5.1.1 + make -j4 VERBOSE=1 /usr/bin/cmake -H/builddir/build/BUILD/openvas-scanner-5.1.1 -B/builddir/build/BUILD/openvas-scanner-5.1.1 --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /builddir/build/BUILD/openvas-scanner-5.1.1/CMakeFiles /builddir/build/BUILD/openvas-scanner-5.1.1/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory '/builddir/build/BUILD/openvas-scanner-5.1.1' make -f src/CMakeFiles/openvassd.dir/build.make src/CMakeFiles/openvassd.dir/depend make[2]: Entering directory '/builddir/build/BUILD/openvas-scanner-5.1.1' cd /builddir/build/BUILD/openvas-scanner-5.1.1 && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/openvas-scanner-5.1.1 /builddir/build/BUILD/openvas-scanner-5.1.1/src /builddir/build/BUILD/openvas-scanner-5.1.1 /builddir/build/BUILD/openvas-scanner-5.1.1/src /builddir/build/BUILD/openvas-scanner-5.1.1/src/CMakeFiles/openvassd.dir/DependInfo.cmake --color= Dependee "/builddir/build/BUILD/openvas-scanner-5.1.1/src/CMakeFiles/openvassd.dir/DependInfo.cmake" is newer than depender "/builddir/build/BUILD/openvas-scanner-5.1.1/src/CMakeFiles/openvassd.dir/depend.internal". Dependee "/builddir/build/BUILD/openvas-scanner-5.1.1/src/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/builddir/build/BUILD/openvas-scanner-5.1.1/src/CMakeFiles/openvassd.dir/depend.internal". Scanning dependencies of target openvassd make[2]: Leaving directory '/builddir/build/BUILD/openvas-scanner-5.1.1' make -f src/CMakeFiles/openvassd.dir/build.make src/CMakeFiles/openvassd.dir/build make[2]: Entering directory '/builddir/build/BUILD/openvas-scanner-5.1.1' [ 6%] Building C object src/CMakeFiles/openvassd.dir/attack.c.o cd /builddir/build/BUILD/openvas-scanner-5.1.1/src && /usr/bin/cc -DNVT_TIMEOUT=320 -DSCANNER_NVT_TIMEOUT=36000 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/openvas -I/usr/include/p11-kit-1 -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 -Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1 -Wall -D_BSD_SOURCE -D_ISOC99_SOURCE -D_SVID_SOURCE -D_DEFAULT_SOURCE -g -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1 -Werror -Wextra -DOPENVASSD_VERSION=\"5.1.1\" -DPREFIX=\"/usr\" -DOPENVAS_NVT_DIR=\"/var/lib/openvas/plugins\" -DOPENVAS_CACHE_DIR=\"/var/cache/openvas\" -DOPENVAS_LOG_DIR=\"/var/log/openvas\" -DOPENVASSD_MESSAGES=\"/var/log/openvas/openvassd.messages\" -DOPENVASSD_DEBUGMSG=\"/var/log/openvas/openvassd.dump\" -DOPENVASSD_CONF=\"/etc/openvas/openvassd.conf\" -DOPENVAS_STATE_DIR=\"/var/lib/openvas\" -DOPENVAS_RUN_DIR=\"/var/run\" -DSYSCONFDIR=\"/etc\" -DOPENVAS_SYSCONF_DIR=\"/etc/openvas\" -DOPENVAS_DATA_DIR=\"/usr/share/openvas\" -o CMakeFiles/openvassd.dir/attack.c.o -c /builddir/build/BUILD/openvas-scanner-5.1.1/src/attack.c [ 18%] Building C object src/CMakeFiles/openvassd.dir/log.c.o [ 18%] Building C object src/CMakeFiles/openvassd.dir/comm.c.o cd /builddir/build/BUILD/openvas-scanner-5.1.1/src && /usr/bin/cc -DNVT_TIMEOUT=320 -DSCANNER_NVT_TIMEOUT=36000 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/openvas -I/usr/include/p11-kit-1 -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 -Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1 -Wall -D_BSD_SOURCE -D_ISOC99_SOURCE -D_SVID_SOURCE -D_DEFAULT_SOURCE -g -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1 -Werror -Wextra -DOPENVASSD_VERSION=\"5.1.1\" -DPREFIX=\"/usr\" -DOPENVAS_NVT_DIR=\"/var/lib/openvas/plugins\" -DOPENVAS_CACHE_DIR=\"/var/cache/openvas\" -DOPENVAS_LOG_DIR=\"/var/log/openvas\" -DOPENVASSD_MESSAGES=\"/var/log/openvas/openvassd.messages\" -DOPENVASSD_DEBUGMSG=\"/var/log/openvas/openvassd.dump\" -DOPENVASSD_CONF=\"/etc/openvas/openvassd.conf\" -DOPENVAS_STATE_DIR=\"/var/lib/openvas\" -DOPENVAS_RUN_DIR=\"/var/run\" -DSYSCONFDIR=\"/etc\" -DOPENVAS_SYSCONF_DIR=\"/etc/openvas\" -DOPENVAS_DATA_DIR=\"/usr/share/openvas\" -o CMakeFiles/openvassd.dir/log.c.o -c /builddir/build/BUILD/openvas-scanner-5.1.1/src/log.c cd /builddir/build/BUILD/openvas-scanner-5.1.1/src && /usr/bin/cc -DNVT_TIMEOUT=320 -DSCANNER_NVT_TIMEOUT=36000 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/openvas -I/usr/include/p11-kit-1 -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 -Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1 -Wall -D_BSD_SOURCE -D_ISOC99_SOURCE -D_SVID_SOURCE -D_DEFAULT_SOURCE -g -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1 -Werror -Wextra -DOPENVASSD_VERSION=\"5.1.1\" -DPREFIX=\"/usr\" -DOPENVAS_NVT_DIR=\"/var/lib/openvas/plugins\" -DOPENVAS_CACHE_DIR=\"/var/cache/openvas\" -DOPENVAS_LOG_DIR=\"/var/log/openvas\" -DOPENVASSD_MESSAGES=\"/var/log/openvas/openvassd.messages\" -DOPENVASSD_DEBUGMSG=\"/var/log/openvas/openvassd.dump\" -DOPENVASSD_CONF=\"/etc/openvas/openvassd.conf\" -DOPENVAS_STATE_DIR=\"/var/lib/openvas\" -DOPENVAS_RUN_DIR=\"/var/run\" -DSYSCONFDIR=\"/etc\" -DOPENVAS_SYSCONF_DIR=\"/etc/openvas\" -DOPENVAS_DATA_DIR=\"/usr/share/openvas\" -o CMakeFiles/openvassd.dir/comm.c.o -c /builddir/build/BUILD/openvas-scanner-5.1.1/src/comm.c [ 25%] Building C object src/CMakeFiles/openvassd.dir/hosts.c.o cd /builddir/build/BUILD/openvas-scanner-5.1.1/src && /usr/bin/cc -DNVT_TIMEOUT=320 -DSCANNER_NVT_TIMEOUT=36000 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/openvas -I/usr/include/p11-kit-1 -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 -Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1 -Wall -D_BSD_SOURCE -D_ISOC99_SOURCE -D_SVID_SOURCE -D_DEFAULT_SOURCE -g -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1 -Werror -Wextra -DOPENVASSD_VERSION=\"5.1.1\" -DPREFIX=\"/usr\" -DOPENVAS_NVT_DIR=\"/var/lib/openvas/plugins\" -DOPENVAS_CACHE_DIR=\"/var/cache/openvas\" -DOPENVAS_LOG_DIR=\"/var/log/openvas\" -DOPENVASSD_MESSAGES=\"/var/log/openvas/openvassd.messages\" -DOPENVASSD_DEBUGMSG=\"/var/log/openvas/openvassd.dump\" -DOPENVASSD_CONF=\"/etc/openvas/openvassd.conf\" -DOPENVAS_STATE_DIR=\"/var/lib/openvas\" -DOPENVAS_RUN_DIR=\"/var/run\" -DSYSCONFDIR=\"/etc\" -DOPENVAS_SYSCONF_DIR=\"/etc/openvas\" -DOPENVAS_DATA_DIR=\"/usr/share/openvas\" -o CMakeFiles/openvassd.dir/hosts.c.o -c /builddir/build/BUILD/openvas-scanner-5.1.1/src/hosts.c [ 31%] Building C object src/CMakeFiles/openvassd.dir/nasl_plugins.c.o cd /builddir/build/BUILD/openvas-scanner-5.1.1/src && /usr/bin/cc -DNVT_TIMEOUT=320 -DSCANNER_NVT_TIMEOUT=36000 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/openvas -I/usr/include/p11-kit-1 -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 -Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1 -Wall -D_BSD_SOURCE -D_ISOC99_SOURCE -D_SVID_SOURCE -D_DEFAULT_SOURCE -g -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1 -Werror -Wextra -DOPENVASSD_VERSION=\"5.1.1\" -DPREFIX=\"/usr\" -DOPENVAS_NVT_DIR=\"/var/lib/openvas/plugins\" -DOPENVAS_CACHE_DIR=\"/var/cache/openvas\" -DOPENVAS_LOG_DIR=\"/var/log/openvas\" -DOPENVASSD_MESSAGES=\"/var/log/openvas/openvassd.messages\" -DOPENVASSD_DEBUGMSG=\"/var/log/openvas/openvassd.dump\" -DOPENVASSD_CONF=\"/etc/openvas/openvassd.conf\" -DOPENVAS_STATE_DIR=\"/var/lib/openvas\" -DOPENVAS_RUN_DIR=\"/var/run\" -DSYSCONFDIR=\"/etc\" -DOPENVAS_SYSCONF_DIR=\"/etc/openvas\" -DOPENVAS_DATA_DIR=\"/usr/share/openvas\" -o CMakeFiles/openvassd.dir/nasl_plugins.c.o -c /builddir/build/BUILD/openvas-scanner-5.1.1/src/nasl_plugins.c BUILDSTDERR: /builddir/build/BUILD/openvas-scanner-5.1.1/src/attack.c: In function 'attack_network': BUILDSTDERR: /builddir/build/BUILD/openvas-scanner-5.1.1/src/attack.c:1077:33: error: cast between incompatible function types from 'void (*)(struct attack_start_args *)' to 'int (*)(void *)' [-Werror=cast-function-type] BUILDSTDERR: pid = create_process ((process_func_t) attack_start, &args); BUILDSTDERR: ^ [ 37%] Building C object src/CMakeFiles/openvassd.dir/ntp.c.o cd /builddir/build/BUILD/openvas-scanner-5.1.1/src && /usr/bin/cc -DNVT_TIMEOUT=320 -DSCANNER_NVT_TIMEOUT=36000 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/openvas -I/usr/include/p11-kit-1 -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 -Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1 -Wall -D_BSD_SOURCE -D_ISOC99_SOURCE -D_SVID_SOURCE -D_DEFAULT_SOURCE -g -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1 -Werror -Wextra -DOPENVASSD_VERSION=\"5.1.1\" -DPREFIX=\"/usr\" -DOPENVAS_NVT_DIR=\"/var/lib/openvas/plugins\" -DOPENVAS_CACHE_DIR=\"/var/cache/openvas\" -DOPENVAS_LOG_DIR=\"/var/log/openvas\" -DOPENVASSD_MESSAGES=\"/var/log/openvas/openvassd.messages\" -DOPENVASSD_DEBUGMSG=\"/var/log/openvas/openvassd.dump\" -DOPENVASSD_CONF=\"/etc/openvas/openvassd.conf\" -DOPENVAS_STATE_DIR=\"/var/lib/openvas\" -DOPENVAS_RUN_DIR=\"/var/run\" -DSYSCONFDIR=\"/etc\" -DOPENVAS_SYSCONF_DIR=\"/etc/openvas\" -DOPENVAS_DATA_DIR=\"/usr/share/openvas\" -o CMakeFiles/openvassd.dir/ntp.c.o -c /builddir/build/BUILD/openvas-scanner-5.1.1/src/ntp.c [ 43%] Building C object src/CMakeFiles/openvassd.dir/openvassd.c.o cd /builddir/build/BUILD/openvas-scanner-5.1.1/src && /usr/bin/cc -DNVT_TIMEOUT=320 -DSCANNER_NVT_TIMEOUT=36000 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/openvas -I/usr/include/p11-kit-1 -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 -Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1 -Wall -D_BSD_SOURCE -D_ISOC99_SOURCE -D_SVID_SOURCE -D_DEFAULT_SOURCE -g -D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1 -Werror -Wextra -DOPENVASSD_VERSION=\"5.1.1\" -DPREFIX=\"/usr\" -DOPENVAS_NVT_DIR=\"/var/lib/openvas/plugins\" -DOPENVAS_CACHE_DIR=\"/var/cache/openvas\" -DOPENVAS_LOG_DIR=\"/var/log/openvas\" -DOPENVASSD_MESSAGES=\"/var/log/openvas/openvassd.messages\" -DOPENVASSD_DEBUGMSG=\"/var/log/openvas/openvassd.dump\" -DOPENVASSD_CONF=\"/etc/openvas/openvassd.conf\" -DOPENVAS_STATE_DIR=\"/var/lib/openvas\" -DOPENVAS_RUN_DIR=\"/var/run\" -DSYSCONFDIR=\"/etc\" -DOPENVAS_SYSCONF_DIR=\"/etc/openvas\" -DOPENVAS_DATA_DIR=\"/usr/share/openvas\" -o CMakeFiles/openvassd.dir/openvassd.c.o -c /builddir/build/BUILD/openvas-scanner-5.1.1/src/openvassd.c BUILDSTDERR: /builddir/build/BUILD/openvas-scanner-5.1.1/src/nasl_plugins.c: In function 'nasl_plugin_add': BUILDSTDERR: /builddir/build/BUILD/openvas-scanner-5.1.1/src/nasl_plugins.c:116:10: error: implicit declaration of function 'nvticache_get'; did you mean 'nvticache_free'? [-Werror=implicit-function-declaration] BUILDSTDERR: nvti = nvticache_get (name); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: nvticache_free BUILDSTDERR: /builddir/build/BUILD/openvas-scanner-5.1.1/src/nasl_plugins.c:116:8: error: assignment to 'nvti_t *' {aka 'struct nvti *'} from 'int' makes pointer from integer without a cast [-Werror=int-conversion] BUILDSTDERR: nvti = nvticache_get (name); BUILDSTDERR: ^ BUILDSTDERR: /builddir/build/BUILD/openvas-scanner-5.1.1/src/nasl_plugins.c:154:16: error: assignment to 'nvti_t *' {aka 'struct nvti *'} from 'int' makes pointer from integer without a cast [-Werror=int-conversion] BUILDSTDERR: nvti = nvticache_get (name); BUILDSTDERR: ^ BUILDSTDERR: /builddir/build/BUILD/openvas-scanner-5.1.1/src/nasl_plugins.c: In function 'nasl_plugin_launch': BUILDSTDERR: /builddir/build/BUILD/openvas-scanner-5.1.1/src/nasl_plugins.c:214:28: error: cast between incompatible function types from 'void (*)(struct nasl_thread_args *)' to 'int (*)(void *)' [-Werror=cast-function-type] BUILDSTDERR: module = create_process ((process_func_t) nasl_thread, &nargs); BUILDSTDERR: ^ BUILDSTDERR: cc1: all warnings being treated as errors BUILDSTDERR: make[2]: *** [src/CMakeFiles/openvassd.dir/build.make:118: src/CMakeFiles/openvassd.dir/nasl_plugins.c.o] Error 1 BUILDSTDERR: make[2]: *** Waiting for unfinished jobs.... BUILDSTDERR: cc1: all warnings being treated as errors BUILDSTDERR: make[2]: *** [src/CMakeFiles/openvassd.dir/build.make:66: src/CMakeFiles/openvassd.dir/attack.c.o] Error 1 BUILDSTDERR: /builddir/build/BUILD/openvas-scanner-5.1.1/src/openvassd.c: In function 'main_loop': BUILDSTDERR: /builddir/build/BUILD/openvas-scanner-5.1.1/src/openvassd.c:504:27: error: cast between incompatible function types from 'void (*)(struct arglist *)' to 'int (*)(void *)' [-Werror=cast-function-type] BUILDSTDERR: if (create_process ((process_func_t) scanner_thread, globals) < 0) BUILDSTDERR: ^ BUILDSTDERR: /builddir/build/BUILD/openvas-scanner-5.1.1/src/openvassd.c: In function 'flush_all_kbs': BUILDSTDERR: /builddir/build/BUILD/openvas-scanner-5.1.1/src/openvassd.c:660:8: error: too few arguments to function 'kb_flush' BUILDSTDERR: rc = kb_flush (kb); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/openvas/base/nvticache.h:41, BUILDSTDERR: from /builddir/build/BUILD/openvas-scanner-5.1.1/src/openvassd.c:58: BUILDSTDERR: /usr/include/openvas/base/kb.h:430:19: note: declared here BUILDSTDERR: static inline int kb_flush (kb_t kb, const char *except) BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: /builddir/build/BUILD/openvas-scanner-5.1.1/src/ntp.c: In function '__ntp_timestamp_scan_host': BUILDSTDERR: /builddir/build/BUILD/openvas-scanner-5.1.1/src/ntp.c:409:48: error: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 994 [-Werror=format-truncation=] BUILDSTDERR: "SERVER <|> TIME <|> %s <|> %s <|> %s <|> SERVER\n", msg, host, BUILDSTDERR: ^~ BUILDSTDERR: timestr); BUILDSTDERR: ~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from /usr/include/openvas/base/openvas_networking.h:26, BUILDSTDERR: from /usr/include/openvas/misc/network.h:36, BUILDSTDERR: from /builddir/build/BUILD/openvas-scanner-5.1.1/src/ntp.c:33: BUILDSTDERR: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 43 or more bytes (assuming 1066) into a destination of size 1024 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cc1: all warnings being treated as errors BUILDSTDERR: make[2]: *** [src/CMakeFiles/openvassd.dir/build.make:144: src/CMakeFiles/openvassd.dir/openvassd.c.o] Error 1 BUILDSTDERR: cc1: all warnings being treated as errors BUILDSTDERR: make[2]: *** [src/CMakeFiles/openvassd.dir/build.make:131: src/CMakeFiles/openvassd.dir/ntp.c.o] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/openvas-scanner-5.1.1' make[1]: Leaving directory '/builddir/build/BUILD/openvas-scanner-5.1.1' BUILDSTDERR: make[1]: *** [CMakeFiles/Makefile2:126: src/CMakeFiles/openvassd.dir/all] Error 2 BUILDSTDERR: make: *** [Makefile:166: all] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.TL69Ug (%build) BUILDSTDERR: Macro expanded in comment on line 210: %{_sbindir}/openvas-nvt-sync BUILDSTDERR: Macro expanded in comment on line 214: %{_mandir}/man1/*.1.* BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.TL69Ug (%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/openvas-scanner.spec