utf8 ++ 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 ++ sed -e 's/ / -optc/g' ++ sed -e 's/ / -optl/g' ++ echo ' -Wl,-z,relro' -Wl,--as-needed + ./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/hsc2hscall178537-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 | ^~~~~ RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.d9cekH (%build) Bad exit status from /var/tmp/rpm-tmp.d9cekH (%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