;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.QnDDkW + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf cabal-install-2.2.0.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/cabal-install-2.2.0.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd cabal-install-2.2.0.0 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/resolv-0.1.1.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp -bp /builddir/build/SOURCES/cabal-install-2.2.0.0.cabal cabal-install.cabal + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.gfXnyZ + umask 022 + cd /builddir/build/BUILD + cd cabal-install-2.2.0.0 + HOME=/builddir/build/BUILD/cabal-install-2.2.0.0 + for i in resolv-0.1.1.2 BUILDSTDERR: ++ echo resolv-0.1.1.2 BUILDSTDERR: ++ sed -e 's/\(.*\)-.*/\1/' + name=resolv BUILDSTDERR: ++ echo resolv-0.1.1.2 BUILDSTDERR: ++ sed -e 's/.*-\(.*\)/\1/' + ver=0.1.1.2 + cd resolv-0.1.1.2 + case $name in + 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 + 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 -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.2.0.1 + '[' -x Setup ']' + LANG=C.utf8 BUILDSTDERR: ++ echo ' -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 BUILDSTDERR: ++ sed -e 's/ / -optc/g' BUILDSTDERR: ++ echo ' -Wl,-z,relro' -Wl,--as-needed BUILDSTDERR: ++ sed -e 's/ / -optl/g' + ./Setup configure --prefix=/usr --libdir=/usr/lib64 --docdir=/usr/share/licenses/cabal-install '--libsubdir=$compiler/$pkgid' '--datasubdir=$pkgid' '--libexecsubdir=$pkgid' --ghc --dynlibdir=/usr/lib64 --enable-tests --user '--ghc-options= -optc-O2 -optc-g -optc-pipe -optc-Wall -optc-Werror=format-security -optc-Wp,-D_FORTIFY_SOURCE=2 -optc-Wp,-D_GLIBCXX_ASSERTIONS -optc-fexceptions -optc-fstack-protector-strong -optc-grecord-gcc-switches -optc-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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' --disable-executable-stripping --disable-library-stripping -p --enable-shared --docdir=/usr/share/licenses/ghc-resolv --htmldir=/usr/share/doc/ghc/html/libraries/resolv-0.1.1.2 --user Configuring resolv-0.1.1.2... BUILDSTDERR: Setup: Encountered missing dependencies: BUILDSTDERR: tasty ==1.1.* RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.gfXnyZ (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.gfXnyZ (%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/cabal-install.spec