Mock Version: 1.4.21 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ghc-ghc-lib-parser.spec'], chrootPath='/var/lib/mock/f33-build-584355-66591/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=432000uid=987gid=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-lib-parser.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 setting SOURCE_DATE_EPOCH=1598976782 Wrote: /builddir/build/SRPMS/ghc-ghc-lib-parser-8.10.2.20200808-1.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ghc-ghc-lib-parser.spec'], chrootPath='/var/lib/mock/f33-build-584355-66591/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=432000uid=987gid=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-lib-parser.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 setting SOURCE_DATE_EPOCH=1598976782 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.E8zLEE + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ghc-lib-parser-8.10.2.20200808 + /usr/bin/gzip -dc /builddir/build/SOURCES/ghc-lib-parser-8.10.2.20200808.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd ghc-lib-parser-8.10.2.20200808 + /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.QkGlbJ + umask 022 + cd /builddir/build/BUILD + cd ghc-lib-parser-8.10.2.20200808 ++ ls ++ grep -i -e '^\(ANNOUNCE\|AUTHORS\|CHANGELOG\|CHANGES\|CONTRIBUTORS\|README\|TODO\)' + 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 ']' + cp /usr/share/ghc-rpm-macros/Setup.hs . + '[' -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 3.0.1.0 + '[' -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-ghc-lib-parser '--libsubdir=$compiler/$pkgid' '--datasubdir=$pkgid' '--libexecsubdir=$pkgid' --ghc --dynlibdir=/usr/lib64 --global '--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/ghc-lib-parser-8.10.2.20200808 --global Configuring ghc-lib-parser-8.10.2.20200808... + '[' -x Setup ']' + LANG=C.utf8 + ./Setup build Preprocessing library for ghc-lib-parser-8.10.2.20200808.. compiling dist/build/GHC/Exts/Heap/InfoTable_hsc_make.c failed (exit code 1) rsp file was: "dist/build/GHC/Exts/Heap/hsc2hscall3976-0.rsp" command was: /usr/bin/gcc -c dist/build/GHC/Exts/Heap/InfoTable_hsc_make.c -o dist/build/GHC/Exts/Heap/InfoTable_hsc_make.o -fuse-ld=bfd -D__GLASGOW_HASKELL__=808 -Dlinux_BUILD_OS=1 -Driscv64_BUILD_ARCH=1 -Dlinux_HOST_OS=1 -Iincludes -Ighc-lib/stage0/lib -Ighc-lib/stage0/compiler/build -Icompiler -Idist/build/includes -Idist/build/ghc-lib/stage0/lib -Idist/build/ghc-lib/stage0/compiler/build -Idist/build/compiler -DTHREADED_RTS -DTHREADED_RTS -DGHC_IN_GHCI -Idist/build/autogen -Idist/build/global-autogen -include dist/build/autogen/cabal_macros.h -I/usr/lib64/ghc-8.8.4/process-1.6.9.0/include -I/usr/lib64/ghc-8.8.4/unix-2.7.2.2/include -I/usr/lib64/ghc-8.8.4/time-1.9.3/include -I/usr/lib64/ghc-8.8.4/bytestring-0.10.10.1/include -I/usr/lib64/ghc-8.8.4/base-4.13.0.0/include -I/usr/lib64/ghc-8.8.4/integer-gmp-1.0.2.0/include -I/usr/lib64/ghc-8.8.4/include -I/usr/lib64/ghc-8.8.4/include/ error: In file included from /usr/lib64/ghc-8.8.4/include/Stg.h:330, from /usr/lib64/ghc-8.8.4/include/Rts.h:29, from InfoTable.hsc:8: /usr/lib64/ghc-8.8.4/include/stg/SMP.h: In function ‘write_barrier’: /usr/lib64/ghc-8.8.4/include/stg/SMP.h:345:2: error: #error memory barriers unimplemented on this architecture 345 | #error memory barriers unimplemented on this architecture | ^~~~~ /usr/lib64/ghc-8.8.4/include/stg/SMP.h: In function ‘store_load_barrier’: /usr/lib64/ghc-8.8.4/include/stg/SMP.h:367:2: error: #error memory barriers unimplemented on this architecture 367 | #error memory barriers unimplemented on this architecture | ^~~~~ /usr/lib64/ghc-8.8.4/include/stg/SMP.h: In function ‘load_load_barrier’: /usr/lib64/ghc-8.8.4/include/stg/SMP.h:390:2: error: #error memory barriers unimplemented on this architecture 390 | #error memory barriers unimplemented on this architecture | ^~~~~ error: Bad exit status from /var/tmp/rpm-tmp.QkGlbJ (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.QkGlbJ (%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-ghc-lib-parser.spec