H=1580169600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.tmw7A9 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf cabal-helper-0.8.2.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/cabal-helper-0.8.2.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd cabal-helper-0.8.2.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/cabal-plan-0.4.0.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cabal-tweak-dep-ver pretty-show '< 1.9' '< 1.10' + cd cabal-plan-0.4.0.0 + cabal-tweak-dep-ver base 4.11 4.12 + cabal-tweak-dep-ver containers '^>= 0.5.0' '^>= 0.6.0' + echo 'Patch #1 (cabal-plan-exe-flag.patch):' Patch #1 (cabal-plan-exe-flag.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .orig --fuzz=0 patching file cabal-plan.cabal + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.jj7oaa + umask 022 + cd /builddir/build/BUILD + cd cabal-helper-0.8.2.0 + HOME=/builddir/build/BUILD/cabal-helper-0.8.2.0 + for i in cabal-plan-0.4.0.0 ++ sed -e 's/\(.*\)-.*/\1/' ++ echo cabal-plan-0.4.0.0 + name=cabal-plan ++ echo cabal-plan-0.4.0.0 ++ sed -e 's/.*-\(.*\)/\1/' + ver=0.4.0.0 + cd cabal-plan-0.4.0.0 + case $name in + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + export 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed ' + '[' -f Setup.hs -o -f Setup.lhs ']' + '[' -x Setup ']' + ghc --make -package Cabal -no-user-package-db -dynamic Setup [1 of 1] Compiling Main ( Setup.hs, Setup.o ) Linking Setup ... + LANG=C.utf8 + ./Setup --version Cabal library version 2.4.0.1 + '[' -x Setup ']' + LANG=C.utf8 ++ sed -e 's/ / -optc/g' ++ echo ' -O2' -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection ++ echo ' -Wl,-z,relro' -Wl,--as-needed ++ sed -e 's/ / -optl/g' + ./Setup configure --prefix=/usr --libdir=/usr/lib64 --docdir=/usr/share/licenses/ghc-cabal-helper '--libsubdir=$compiler/$pkgid' '--datasubdir=$pkgid' '--libexecsubdir=$pkgid' --ghc --dynlibdir=/usr/lib64 --user '--ghc-options= -optc-O2 -optc-fexceptions -optc-g -optc-grecord-gcc-switches -optc-pipe -optc-Wall -optc-Werror=format-security -optc-Wp,-D_FORTIFY_SOURCE=2 -optc-Wp,-D_GLIBCXX_ASSERTIONS -optc-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -optc-fstack-protector-strong -optc-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -optc-fasynchronous-unwind-tables -optc-fstack-clash-protection -optl-Wl,-z,relro -optl-Wl,--as-needed' -p --enable-shared --htmldir=/usr/share/doc/ghc/html/libraries/cabal-helper-0.8.2.0 --docdir=/usr/share/licenses/ghc-cabal-plan --htmldir=/usr/share/doc/ghc/html/libraries/cabal-plan-0.4.0.0 --user Configuring cabal-plan-0.4.0.0... Setup: Encountered missing dependencies: ansi-terminal >=0.6.2 && <0.7 || >=0.8.0.2 && <0.9 error: Bad exit status from /var/tmp/rpm-tmp.jj7oaa (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.jj7oaa (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, 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 --target riscv64 --nodeps /builddir/build/SPECS/ghc-cabal-helper.spec