Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/fftw.spec'], chrootPath='/var/lib/mock/dist-ocs23-loongarch64-build-175758-11036/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': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/fftw.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': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/fftw-3.3.10-5.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/fftw.spec'], chrootPath='/var/lib/mock/dist-ocs23-loongarch64-build-175758-11036/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': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/fftw.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': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.AoPhnW + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf fftw-3.3.10 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/fftw-3.3.10.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd fftw-3.3.10 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.6pk7Ap + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -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/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd fftw-3.3.10 + rm -rf config.guess config.sub + automake --add-missing /var/tmp/rpm-tmp.6pk7Ap: line 43: automake: command not found + echo 0 0 + . /etc/profile.d/modules.sh ++ '[' -n /bin/sh ']' ++ '[' sh = sh ']' ++ shell=sh ++ '[' -f /usr/share/Modules/init/sh ']' ++ . /usr/share/Modules/init/sh +++ unset _mlshdbg +++ '[' 0 = 1 ']' +++ export 'MODULES_RUN_QUARANTINE=LD_LIBRARY_PATH LD_PRELOAD' +++ MODULES_RUN_QUARANTINE='LD_LIBRARY_PATH LD_PRELOAD' +++ unset _mlre _mlIFS +++ '[' -n x ']' +++ _mlIFS=' ' +++ IFS=' ' +++ for _mlv in ${MODULES_RUN_QUARANTINE:-} +++ '[' LD_LIBRARY_PATH = LD_LIBRARY_PATH ']' +++ '[' LD_LIBRARY_PATH = LD_LIBRARY_PATH ']' ++++ eval 'echo ${LD_LIBRARY_PATH+x}' +++++ echo +++ '[' -n '' ']' +++ _mlrv=MODULES_RUNENV_LD_LIBRARY_PATH ++++ eval 'echo ${MODULES_RUNENV_LD_LIBRARY_PATH:-}' +++++ echo +++ _mlre='LD_LIBRARY_PATH='\'''\'' ' +++ for _mlv in ${MODULES_RUN_QUARANTINE:-} +++ '[' LD_PRELOAD = LD_PRELOAD ']' +++ '[' LD_PRELOAD = LD_PRELOAD ']' ++++ eval 'echo ${LD_PRELOAD+x}' +++++ echo +++ '[' -n '' ']' +++ _mlrv=MODULES_RUNENV_LD_PRELOAD ++++ eval 'echo ${MODULES_RUNENV_LD_PRELOAD:-}' +++++ echo +++ _mlre='LD_LIBRARY_PATH='\'''\'' LD_PRELOAD='\'''\'' ' +++ '[' -n 'LD_LIBRARY_PATH='\'''\'' LD_PRELOAD='\'''\'' ' ']' +++ _mlre='eval LD_LIBRARY_PATH='\'''\'' LD_PRELOAD='\'''\'' __MODULES_QUARANTINE_SET=1 ' ++++ eval 'LD_LIBRARY_PATH='\'''\''' 'LD_PRELOAD='\'''\''' __MODULES_QUARANTINE_SET=1 /usr/bin/tclsh /usr/share/Modules/libexec/modulecmd.tcl sh autoinit +++++ LD_LIBRARY_PATH= +++++ LD_PRELOAD= +++++ __MODULES_QUARANTINE_SET=1 +++++ /usr/bin/tclsh /usr/share/Modules/libexec/modulecmd.tcl sh autoinit +++ _mlcode='_module_raw() { eval "$(/usr/bin/tclsh '\''/usr/share/Modules/libexec/modulecmd.tcl'\'' sh "$@")"; _mlstatus=$?; return $_mlstatus; }; module() { local _mlredir=0; if [ -n "${MODULES_REDIRECT_OUTPUT+x}" ]; then if [ "$MODULES_REDIRECT_OUTPUT" = '\''0'\'' ]; then _mlredir=0; elif [ "$MODULES_REDIRECT_OUTPUT" = '\''1'\'' ]; then _mlredir=1; fi; fi; case " $@ " in *'\'' --no-redirect '\''*) _mlredir=0 ;; *'\'' --redirect '\''*) _mlredir=1 ;; esac; if [ $_mlredir -eq 0 ]; then _module_raw "$@"; else _module_raw "$@" 2>&1; fi; }; ml() { module ml "$@"; }; MODULES_CMD=/usr/share/Modules/libexec/modulecmd.tcl; export MODULES_CMD; unset __MODULES_AUTOINIT_INPROGRESS; MODULESHOME=/usr/share/Modules; export MODULESHOME; test 0;' +++ _mlret=0 +++ '[' -n x ']' +++ IFS=' ' +++ unset _mlIFS +++ unset _mlre _mlv _mlrv +++ '[' 0 -eq 0 ']' +++ eval '_module_raw() { eval "$(/usr/bin/tclsh '\''/usr/share/Modules/libexec/modulecmd.tcl'\'' sh "$@")"; _mlstatus=$?; return $_mlstatus; }; module() { local _mlredir=0; if [ -n "${MODULES_REDIRECT_OUTPUT+x}" ]; then if [ "$MODULES_REDIRECT_OUTPUT" = '\''0'\'' ]; then _mlredir=0; elif [ "$MODULES_REDIRECT_OUTPUT" = '\''1'\'' ]; then _mlredir=1; fi; fi; case " $@ " in *'\'' --no-redirect '\''*) _mlredir=0 ;; *'\'' --redirect '\''*) _mlredir=1 ;; esac; if [ $_mlredir -eq 0 ]; then _module_raw "$@"; else _module_raw "$@" 2>&1; fi; }; ml() { module ml "$@"; }; MODULES_CMD=/usr/share/Modules/libexec/modulecmd.tcl; export MODULES_CMD; unset __MODULES_AUTOINIT_INPROGRESS; MODULESHOME=/usr/share/Modules; export MODULESHOME; test 0;' ++++ MODULES_CMD=/usr/share/Modules/libexec/modulecmd.tcl ++++ export MODULES_CMD ++++ unset __MODULES_AUTOINIT_INPROGRESS ++++ MODULESHOME=/usr/share/Modules ++++ export MODULESHOME ++++ test 0 +++ '[' /bin/sh '!=' '' ']' +++ export -f _module_raw +++ export -f module ++++ type -t ml +++ '[' function = function ']' +++ export -f ml +++ unset _mlcode _mlret +++ '[' -n '' ']' + export F77=gfortran + F77=gfortran + BASEFLAGS='--enable-shared --disable-dependency-tracking --enable-threads' + BASEFLAGS+=' --enable-openmp' + prec_name[0]=single + prec_name[1]=double + prec_name[2]=long + prec_name[3]=quad + prec_flags[0]=--enable-single + prec_flags[1]=--enable-double + prec_flags[2]=--enable-long-double + prec_flags[3]=--enable-quad-precision + (( iprec=0 )) + (( iprec<3 )) + mkdir single + cd single + ln -s ../configure . + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld' ']' ++ find . -name ltmain.sh + ./configure --build=loongarch64-opencloudos-linux-gnu --host=loongarch64-opencloudos-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 --enable-shared --disable-dependency-tracking --enable-threads --enable-openmp --enable-single checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no configure: error: cannot run /bin/sh ../config.sub error: Bad exit status from /var/tmp/rpm-tmp.6pk7Ap (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.6pk7Ap (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/fftw.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.10/site-packages/mockbuild/util.py", line 598, in do_with_status 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 --noclean --target loongarch64 --nodeps /builddir/build/SPECS/fftw.spec