-as-needed -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + '[' -f Setup.hs -o -f Setup.lhs ']' + '[' -d /usr/lib64/ghc-9.2.6/lib ']' + subsubdir=/lib + '[' -x Setup ']' + ghc --make -package Cabal -no-user-package-db -dynamic Setup [1 of 1] Compiling Main ( Setup.lhs, Setup.o ) Linking Setup ... + LANG=C.utf8 + ./Setup --version Cabal library version 3.6.3.0 + '[' -x Setup ']' + LANG=C.utf8 ++ echo ' -O2' -fexceptions -g -grecord-gcc-switches -pipe -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -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 -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/ghc-vty '--libsubdir=$compiler/lib/$pkgid' '--datasubdir=$pkgid' '--libexecsubdir=$pkgid' --ghc --dynlibdir=/usr/lib64/ghc-9.2.6/lib --global '--ghc-options= -optc-O2 -optc-fexceptions -optc-g -optc-grecord-gcc-switches -optc-pipe -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-fstack-clash-protection -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/vty-5.37 --global Configuring vty-5.37... + '[' -x Setup ']' + LANG=C.utf8 + ./Setup build -j1 Preprocessing library for vty-5.37.. Building library for vty-5.37.. [ 1 of 40] Compiling Codec.Binary.UTF8.Debug [ 2 of 40] Compiling Data.Terminfo.Parse [ 3 of 40] Compiling Data.Terminfo.Eval src/Data/Terminfo/Eval.hs:38:9: warning: [-Wincomplete-uni-patterns] Pattern match(es) are non-exhaustive In a pattern binding: Patterns of type ‘[CapParam]’ not matched: [] | 38 | let v : stack' = evalStack s | ^^^^^^^^^^^^^^^^^^^^^^^^ [ 4 of 40] Compiling Graphics.Text.Width [ 5 of 40] Compiling Graphics.Vty.Attributes.Color240 [ 6 of 40] Compiling Graphics.Vty.Attributes.Color [ 7 of 40] Compiling Graphics.Vty.Attributes [ 8 of 40] Compiling Graphics.Vty.DisplayAttributes [ 9 of 40] Compiling Graphics.Vty.Error [10 of 40] Compiling Graphics.Vty.Image.Internal [11 of 40] Compiling Graphics.Vty.Image [12 of 40] Compiling Graphics.Vty.Debug.Image [13 of 40] Compiling Graphics.Vty.Input.Events [14 of 40] Compiling Graphics.Vty.Input.Classify.Types [15 of 40] Compiling Graphics.Vty.Input.Classify.Parse [16 of 40] Compiling Graphics.Vty.Config [17 of 40] Compiling Graphics.Vty.Input.Focus [18 of 40] Compiling Graphics.Vty.Input.Mouse [19 of 40] Compiling Graphics.Vty.Input.Paste [20 of 40] Compiling Graphics.Vty.Input.Classify [21 of 40] Compiling Graphics.Vty.Input.Loop ghc-9.2.6: Couldn't find a target code interpreter. Try with -fexternal-interpreter error: Bad exit status from /var/tmp/rpm-tmp.d8egHl (%build) Bad exit status from /var/tmp/rpm-tmp.d8egHl (%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-vty.spec