-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection ++ sed -e 's/ / -optc/g' ++ echo ' -Wl,-z,relro' -Wl,--as-needed -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ++ 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 -optl-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -optl-Wl,--build-id=sha1 -fhide-source-paths' -p --enable-shared --htmldir=/usr/share/doc/ghc/html/libraries/ghc-lib-parser-8.10.7.20220219 --global Configuring ghc-lib-parser-8.10.7.20220219... + '[' -x Setup ']' + LANG=C.utf8 + ./Setup build Preprocessing library for ghc-lib-parser-8.10.7.20220219.. compiling dist/build/GHC/Exts/Heap/InfoTable_hsc_make.c failed (exit code 1) rsp file was: "dist/build/GHC/Exts/Heap/hsc2hscall3448-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__=810 -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.10.7/process-1.6.13.2/include -I/usr/lib64/ghc-8.10.7/unix-2.7.2.2/include -I/usr/lib64/ghc-8.10.7/time-1.9.3/include -I/usr/lib64/ghc-8.10.7/bytestring-0.10.12.0/include -I/usr/lib64/ghc-8.10.7/base-4.14.3.0/include -I/usr/lib64/ghc-8.10.7/integer-gmp-1.0.3.0/include -I/usr/lib64/ghc-8.10.7/include -I/usr/lib64/ghc-8.10.7/include/ error: In file included from /usr/lib64/ghc-8.10.7/include/Stg.h:330, from /usr/lib64/ghc-8.10.7/include/Rts.h:35, from InfoTable.hsc:9: /usr/lib64/ghc-8.10.7/include/stg/SMP.h: In function ‘write_barrier’: /usr/lib64/ghc-8.10.7/include/stg/SMP.h:381:2: error: #error memory barriers unimplemented on this architecture 381 | #error memory barriers unimplemented on this architecture | ^~~~~ /usr/lib64/ghc-8.10.7/include/stg/SMP.h: In function ‘store_load_barrier’: /usr/lib64/ghc-8.10.7/include/stg/SMP.h:405:2: error: #error memory barriers unimplemented on this architecture 405 | #error memory barriers unimplemented on this architecture | ^~~~~ /usr/lib64/ghc-8.10.7/include/stg/SMP.h: In function ‘load_load_barrier’: /usr/lib64/ghc-8.10.7/include/stg/SMP.h:430:2: error: #error memory barriers unimplemented on this architecture 430 | #error memory barriers unimplemented on this architecture | ^~~~~ error: Bad exit status from /var/tmp/rpm-tmp.FWGx6u (%build) Bad exit status from /var/tmp/rpm-tmp.FWGx6u (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, 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