+ '[' -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.. In file included from /usr/lib64/ghc-8.6.5/include/Stg.h:319, from /usr/lib64/ghc-8.6.5/include/Rts.h:29, from InfoTable.hsc:8: /usr/lib64/ghc-8.6.5/include/stg/SMP.h: In function ‘write_barrier’: /usr/lib64/ghc-8.6.5/include/stg/SMP.h:200:2: error: #error memory barriers unimplemented on this architecture 200 | #error memory barriers unimplemented on this architecture | ^~~~~ /usr/lib64/ghc-8.6.5/include/stg/SMP.h: In function ‘store_load_barrier’: /usr/lib64/ghc-8.6.5/include/stg/SMP.h:222:2: error: #error memory barriers unimplemented on this architecture 222 | #error memory barriers unimplemented on this architecture | ^~~~~ /usr/lib64/ghc-8.6.5/include/stg/SMP.h: In function ‘load_load_barrier’: /usr/lib64/ghc-8.6.5/include/stg/SMP.h:245:2: error: #error memory barriers unimplemented on this architecture 245 | #error memory barriers unimplemented on this architecture | ^~~~~ compiling dist/build/GHC/Exts/Heap/InfoTable_hsc_make.c failed (exit code 1) 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 -fno-stack-protector -fno-stack-protector -fuse-ld=bfd -D__GLASGOW_HASKELL__=806 -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.6.5/process-1.6.5.0/include -I/usr/lib64/ghc-8.6.5/unix-2.7.2.2/include -I/usr/lib64/ghc-8.6.5/time-1.8.0.2/include -I/usr/lib64/ghc-8.6.5/bytestring-0.10.8.2/include -I/usr/lib64/ghc-8.6.5/base-4.12.0.0/include -I/usr/lib64/ghc-8.6.5/integer-gmp-1.0.2.0/include -I/usr/lib64/ghc-8.6.5/include -I/usr/lib64/ghc-8.6.5/include/ error: Bad exit status from /var/tmp/rpm-tmp.TnWew4 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.TnWew4 (%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