Mock Version: 1.4.13 Mock Version: 1.4.13 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/nagios-plugins-lcgdm.spec'], chrootPath='/var/lib/mock/f30-build-36005-20224/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=995gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/nagios-plugins-lcgdm.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 30: %{?_isa} BUILDSTDERR: warning: Macro expanded in comment on line 46: %{?_isa} Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/nagios-plugins-lcgdm-0.9.6-9.fc30.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/nagios-plugins-lcgdm.spec'], chrootPath='/var/lib/mock/f30-build-36005-20224/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=995gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/nagios-plugins-lcgdm.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 30: %{?_isa} BUILDSTDERR: warning: Macro expanded in comment on line 46: %{?_isa} Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Xksh2w + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf nagios-plugins-lcgdm-0.9.6 + /usr/bin/gzip -dc /builddir/build/SOURCES/nagios-plugins-lcgdm-0.9.6.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd nagios-plugins-lcgdm-0.9.6 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.TPK6u8 + umask 022 + cd /builddir/build/BUILD + cd nagios-plugins-lcgdm-0.9.6 + 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,--as-needed -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 . -DCMAKE_INSTALL_PREFIX=/ -- The C compiler identification is GNU 8.2.1 -- The CXX compiler identification is GNU 8.2.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 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- 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: SHARE_INSTALL_PREFIX BUILDSTDERR: SYSCONF_INSTALL_DIR -- Build files have been written to: /builddir/build/BUILD/nagios-plugins-lcgdm-0.9.6 + make -j4 /usr/bin/cmake -H/builddir/build/BUILD/nagios-plugins-lcgdm-0.9.6 -B/builddir/build/BUILD/nagios-plugins-lcgdm-0.9.6 --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /builddir/build/BUILD/nagios-plugins-lcgdm-0.9.6/CMakeFiles /builddir/build/BUILD/nagios-plugins-lcgdm-0.9.6/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory '/builddir/build/BUILD/nagios-plugins-lcgdm-0.9.6' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/builddir/build/BUILD/nagios-plugins-lcgdm-0.9.6' /usr/bin/cmake -E cmake_progress_start /builddir/build/BUILD/nagios-plugins-lcgdm-0.9.6/CMakeFiles 0 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.qpELti + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64 + cd nagios-plugins-lcgdm-0.9.6 + rm -rf /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64 + mkdir -p /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64 + make install DESTDIR=/builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64 /usr/bin/cmake -H/builddir/build/BUILD/nagios-plugins-lcgdm-0.9.6 -B/builddir/build/BUILD/nagios-plugins-lcgdm-0.9.6 --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /builddir/build/BUILD/nagios-plugins-lcgdm-0.9.6/CMakeFiles /builddir/build/BUILD/nagios-plugins-lcgdm-0.9.6/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory '/builddir/build/BUILD/nagios-plugins-lcgdm-0.9.6' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/builddir/build/BUILD/nagios-plugins-lcgdm-0.9.6' /usr/bin/cmake -E cmake_progress_start /builddir/build/BUILD/nagios-plugins-lcgdm-0.9.6/CMakeFiles 0 make -f CMakeFiles/Makefile2 preinstall make[1]: Entering directory '/builddir/build/BUILD/nagios-plugins-lcgdm-0.9.6' make[1]: Nothing to be done for 'preinstall'. make[1]: Leaving directory '/builddir/build/BUILD/nagios-plugins-lcgdm-0.9.6' Install the project... /usr/bin/cmake -P cmake_install.cmake -- Install configuration: "" -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/lcgdmcommon.py -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_cpu -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_process -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_network -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_hostcert -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_dpm_perf -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_dpns_perf -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_dpm_pool -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_dpm_infosys -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_space_token -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_partition_activity -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_gridftp_activity -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_gridftp_transfer -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_rfio_activity -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_lfc_perf -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_oracle_expiration -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_lfc_sam -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/LFC-probe -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_dpm -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_dpns -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_rfio -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib64/nagios/plugins/lcgdm/check_gridftp -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/etc/nrpe.d/lcgdm-headnode.cfg -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/etc/nrpe.d/lcgdm-common.cfg -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/etc/nrpe.d/lcgdm-disk.cfg -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/etc/nrpe.d/lcgdm-lfc.cfg -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/share/nagios/html/pnp4nagios/templates.lcgdm/check_cpu.php -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/share/nagios/html/pnp4nagios/templates.lcgdm/check_dpm_perf.php -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/share/nagios/html/pnp4nagios/templates.lcgdm/check_dpm_pool.php -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/share/nagios/html/pnp4nagios/templates.lcgdm/check_dpm_req.php -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/share/nagios/html/pnp4nagios/templates.lcgdm/check_dpns_perf.php -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/share/nagios/html/pnp4nagios/templates.lcgdm/check_gridftp_activity.php -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/share/nagios/html/pnp4nagios/templates.lcgdm/check_network.php -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/share/nagios/html/pnp4nagios/templates.lcgdm/check_partition_activity.php -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/share/nagios/html/pnp4nagios/templates.lcgdm/check_process.php -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/share/nagios/html/pnp4nagios/templates.lcgdm/check_rfio_activity.php -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/share/nagios/html/pnp4nagios/templates.lcgdm/check_space_token.php -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/etc/nagios/generic-service.cfg -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/etc/nagios/lcgdm-hosts.cfg -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/etc/nagios/lcgdm-services.cfg -- Installing: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/etc/nagios/lcgdm-commands.cfg + install --directory /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib/python2.7/site-packages/lfcmetrics + install --mode 644 plugins/lfcmetrics/__init__.py plugins/lfcmetrics/lfcmetrics.py plugins/lfcmetrics/threadpool.py /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib/python2.7/site-packages/lfcmetrics + /usr/bin/python2 plugins/setup.py install_lib -O1 --skip-build --build-dir=lfcmetrics --install-dir=/builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib/python2.7/site-packages/lfcmetrics running install_lib BUILDSTDERR: warning: install_lib: 'lfcmetrics' does not exist -- no Python modules to install + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig BUILDSTDERR: /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/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 0 Bytecompiling .py files below /builddir/build/BUILDROOT/nagios-plugins-lcgdm-0.9.6-9.fc30.riscv64/usr/lib/python2.7 using /usr/bin/python2.7 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_gridftp: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_lfc_sam: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_dpm_pool: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_process: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_gridftp_activity: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_cpu: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_dpm: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_dpns: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_hostcert: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_partition_activity: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/LFC-probe: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_rfio: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_network: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_dpm_perf: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_gridftp_transfer: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/lcgdmcommon.py: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_dpm_infosys: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_dpns_perf: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_oracle_expiration: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_lfc_perf: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_rfio_activity: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: *** ERROR: ambiguous python shebang in /usr/lib64/nagios/plugins/lcgdm/check_space_token: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.qpELti (%install) RPM build errors: BUILDSTDERR: Macro expanded in comment on line 30: %{?_isa} BUILDSTDERR: Macro expanded in comment on line 46: %{?_isa} BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.qpELti (%install) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 636, 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/nagios-plugins-lcgdm.spec