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/ghc-ghc-syb-utils.spec'], chrootPath='/var/lib/mock/f30-build-43557-25303/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/ghc-ghc-syb-utils.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 Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/ghc-ghc-syb-utils-0.2.3.3-4.fc30.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ghc-ghc-syb-utils.spec'], chrootPath='/var/lib/mock/f30-build-43557-25303/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/ghc-ghc-syb-utils.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 Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.pfzyai + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ghc-syb-utils-0.2.3.3 + /usr/bin/gzip -dc /builddir/build/SOURCES/ghc-syb-utils-0.2.3.3.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd ghc-syb-utils-0.2.3.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/fix-bytestring-test-error.patch + /usr/bin/patch -p2 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Uefhd7 + umask 022 + cd /builddir/build/BUILD + cd ghc-syb-utils-0.2.3.3 + 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: ++ sed -e 's/ / -optc/g' 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: ++ echo ' -Wl,-z,relro' -Wl,--as-needed BUILDSTDERR: ++ sed -e 's/ / -optl/g' + ./Setup configure --prefix=/usr --libdir=/usr/lib64 --docdir=/usr/share/licenses/ghc-ghc-syb-utils '--libsubdir=$compiler/$pkgid' '--datasubdir=$pkgid' '--libexecsubdir=$pkgid' --ghc --dynlibdir=/usr/lib64 --enable-tests --global '--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 --htmldir=/usr/share/doc/ghc/html/libraries/ghc-syb-utils-0.2.3.3 --global Configuring ghc-syb-utils-0.2.3.3... + '[' -x Setup ']' + LANG=C.utf8 + ./Setup build Preprocessing library for ghc-syb-utils-0.2.3.3.. Building library for ghc-syb-utils-0.2.3.3.. [1 of 1] Compiling GHC.SYB.Utils ( GHC/SYB/Utils.hs, dist/build/GHC/SYB/Utils.o ) BUILDSTDERR: GHC/SYB/Utils.hs:260:64: error: BUILDSTDERR: • Could not deduce (HasSourceText (XHsChar RdrName)) BUILDSTDERR: arising from a use of ‘ppr’ BUILDSTDERR: from the context: Data a BUILDSTDERR: bound by the type signature for: BUILDSTDERR: showData :: forall a. Data a => Stage -> Int -> a -> String BUILDSTDERR: at GHC/SYB/Utils.hs:230:1-49 BUILDSTDERR: • In the second argument of ‘(.)’, namely ‘ppr’ BUILDSTDERR: In the second argument of ‘(.)’, namely ‘showSDoc_ . ppr’ BUILDSTDERR: In the second argument of ‘(.)’, namely BUILDSTDERR: ‘(++ "}") . showSDoc_ . ppr’ BUILDSTDERR: | BUILDSTDERR: 260 | overLit = ("{HsOverLit:"++) . (++"}") . showSDoc_ . ppr BUILDSTDERR: | ^^^ BUILDSTDERR: GHC/SYB/Utils.hs:263:73: error: BUILDSTDERR: • Could not deduce (Data (XHsChar RdrName)) BUILDSTDERR: arising from a use of ‘list’ BUILDSTDERR: from the context: Data a BUILDSTDERR: bound by the type signature for: BUILDSTDERR: showData :: forall a. Data a => Stage -> Int -> a -> String BUILDSTDERR: at GHC/SYB/Utils.hs:230:1-49 BUILDSTDERR: • In the first argument of ‘(.)’, namely ‘list’ BUILDSTDERR: In the second argument of ‘(.)’, namely ‘list . bagToList’ BUILDSTDERR: In the second argument of ‘(.)’, namely BUILDSTDERR: ‘(++ "}") . list . bagToList’ BUILDSTDERR: | BUILDSTDERR: 263 | bagRdrName = ("{Bag(Located (HsBind RdrName)): "++) . (++"}") . list . bagToList BUILDSTDERR: | ^^^^ BUILDSTDERR: GHC/SYB/Utils.hs:265:70: error: BUILDSTDERR: • Could not deduce (Data (XHsChar Name)) BUILDSTDERR: arising from a use of ‘list’ BUILDSTDERR: from the context: Data a BUILDSTDERR: bound by the type signature for: BUILDSTDERR: showData :: forall a. Data a => Stage -> Int -> a -> String BUILDSTDERR: at GHC/SYB/Utils.hs:230:1-49 BUILDSTDERR: • In the first argument of ‘(.)’, namely ‘list’ BUILDSTDERR: In the second argument of ‘(.)’, namely ‘list . bagToList’ BUILDSTDERR: In the second argument of ‘(.)’, namely BUILDSTDERR: ‘(++ "}") . list . bagToList’ BUILDSTDERR: | BUILDSTDERR: 265 | bagName = ("{Bag(Located (HsBind Name)): "++) . (++"}") . list . bagToList BUILDSTDERR: | ^^^^ BUILDSTDERR: GHC/SYB/Utils.hs:267:69: error: BUILDSTDERR: • Could not deduce (Data (XHsChar Var)) BUILDSTDERR: arising from a use of ‘list’ BUILDSTDERR: from the context: Data a BUILDSTDERR: bound by the type signature for: BUILDSTDERR: showData :: forall a. Data a => Stage -> Int -> a -> String BUILDSTDERR: at GHC/SYB/Utils.hs:230:1-49 BUILDSTDERR: • In the first argument of ‘(.)’, namely ‘list’ BUILDSTDERR: In the second argument of ‘(.)’, namely ‘list . bagToList’ BUILDSTDERR: In the second argument of ‘(.)’, namely BUILDSTDERR: ‘(++ "}") . list . bagToList’ BUILDSTDERR: | BUILDSTDERR: 267 | bagVar = ("{Bag(Located (HsBind Var)): "++) . (++"}") . list . bagToList BUILDSTDERR: | ^^^^ BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.Uefhd7 (%build) RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.Uefhd7 (%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 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/ghc-ghc-syb-utils.spec