Mock Version: 1.4.14 Mock Version: 1.4.14 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/csstidy.spec'], chrootPath='/var/lib/mock/f31-build-92689-32370/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=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/csstidy.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 10: %{version}; cd csstidy-%{version} BUILDSTDERR: warning: Macro expanded in comment on line 13: %{version}.tar.gz csstidy-%{version} Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1548892800 Wrote: /builddir/build/SRPMS/csstidy-1.4-21.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/csstidy.spec'], chrootPath='/var/lib/mock/f31-build-92689-32370/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=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/csstidy.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 10: %{version}; cd csstidy-%{version} BUILDSTDERR: warning: Macro expanded in comment on line 13: %{version}.tar.gz csstidy-%{version} Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1548892800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.L6u8sK + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf csstidy-1.4 + /usr/bin/gzip -dc /builddir/build/SOURCES/csstidy-1.4.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd csstidy-1.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (csstidy-1.4-fix-misc.cpp.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 + echo 'Patch #1 (csstidy-1.4-optflags.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Patch #0 (csstidy-1.4-fix-misc.cpp.patch): patching file csstidy/misc.cpp Patch #1 (csstidy-1.4-optflags.patch): patching file SConstruct Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.BYHDVM + umask 022 + cd /builddir/build/BUILD + cd csstidy-1.4 + scons -j4 BUILDSTDERR: File "/builddir/build/BUILD/csstidy-1.4/SConstruct", line 9 BUILDSTDERR: print "Error: expected 'debug' or 'release', found: " + mymode BUILDSTDERR: ^ BUILDSTDERR: SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Error: expected 'debug' or 'release', found: " + mymode)? error: scons: Reading SConscript files ... RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.BYHDVM (%build) BUILDSTDERR: Macro expanded in comment on line 10: %{version}; cd csstidy-%{version} BUILDSTDERR: Macro expanded in comment on line 13: %{version}.tar.gz csstidy-%{version} BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.BYHDVM (%build) 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 700, 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/csstidy.spec