GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ++ 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/hlint '--libsubdir=$compiler/lib/$pkgid' '--datasubdir=$pkgid' '--libexecsubdir=$pkgid' --ghc --dynlibdir=/usr/lib64/ghc-9.4.5/lib --user '--ghc-options= -optc-O2 -optc-fexceptions -optc-g -optc-grecord-gcc-switches -optc-pipe -optc-Wall -optc-Werror=format-security -optc-Werror=implicit-function-declaration -optc-Werror=implicit-int -optc-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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-fno-omit-frame-pointer -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/hlint-3.5 --user Configuring hlint-3.5... + '[' -x Setup ']' + LANG=C.utf8 + ./Setup build -j1 Preprocessing library for hlint-3.5.. Building library for hlint-3.5.. [ 1 of 60] Compiling EmbedData : error: Couldn't find a target code interpreter. Try with -fexternal-interpreter [ 2 of 60] Compiling Extension [ 3 of 60] Compiling Fixity [ 4 of 60] Compiling GHC.Util.ApiAnnotation [ 5 of 60] Compiling GHC.Util.Brackets [ 6 of 60] Compiling GHC.Util.DynFlags [ 7 of 60] Compiling GHC.Util.FreeVars [ 8 of 60] Compiling GHC.Util.HsDecl [ 9 of 60] Compiling GHC.Util.Scope [10 of 60] Compiling GHC.Util.SrcLoc [11 of 60] Compiling GHC.Util.View [12 of 60] Compiling HsColour [13 of 60] Compiling Parallel [14 of 60] Compiling Paths_hlint [15 of 60] Compiling Refact [16 of 60] Compiling GHC.Util.HsExpr [17 of 60] Compiling Timing [18 of 60] Compiling Util [19 of 60] Compiling GHC.Util.Unify [20 of 60] Compiling GHC.Util [21 of 60] Compiling Config.Type [22 of 60] Compiling Idea [23 of 60] Compiling Test.Util [24 of 60] Compiling Test.InputOutput [26 of 60] Compiling CC [27 of 60] Compiling GHC.All [28 of 60] Compiling Hint.Type [29 of 60] Compiling Hint.Unsafe [30 of 60] Compiling Hint.Smell [31 of 60] Compiling Hint.Restrict [32 of 60] Compiling Hint.Pragma [33 of 60] Compiling Hint.Pattern [34 of 60] Compiling Hint.NumLiteral [35 of 60] Compiling Hint.NewType [36 of 60] Compiling Hint.Naming [37 of 60] Compiling Hint.Monad [38 of 60] Compiling Hint.Match [39 of 60] Compiling Hint.ListRec [40 of 60] Compiling Hint.List [41 of 60] Compiling Hint.Lambda [42 of 60] Compiling Hint.Import [43 of 60] Compiling Hint.Fixities [44 of 60] Compiling Hint.Extensions [45 of 60] Compiling Hint.Export [46 of 60] Compiling Hint.Duplicate [47 of 60] Compiling Hint.Comment [48 of 60] Compiling Hint.Bracket [49 of 60] Compiling Hint.All [50 of 60] Compiling Config.Yaml [51 of 60] Compiling Config.Read [52 of 60] Compiling Config.Compute [53 of 60] Compiling Config.Haskell [55 of 60] Compiling Apply [56 of 60] Compiling Test.Annotations [58 of 60] Compiling Summary error: Bad exit status from /var/tmp/rpm-tmp.GMjCBl (%build) Bad exit status from /var/tmp/rpm-tmp.GMjCBl (%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/hlint.spec