Mock Version: 3.0 Mock Version: 3.0 Mock Version: 3.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ghc-HSH.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-476818-23636/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ghc-HSH.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1681948800 Wrote: /builddir/build/SRPMS/ghc-HSH-2.1.3-1.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ghc-HSH.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-476818-23636/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ghc-HSH.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1681948800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.P1sxRt + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf HSH-2.1.3 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/HSH-2.1.3.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd HSH-2.1.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.gMSZxO + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -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 ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -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 ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -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 -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -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 -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd HSH-2.1.3 ++ ls ++ grep -i -e '^\(ANNOUNCE\|AUTHORS\|CHANGELOG\|CHANGES\|CONTRIBUTORS\|README\|TODO\)' ++ echo -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -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/-Wall //' -e 's/-Werror=format-security //' + CFLAGS='-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' + export CFLAGS + export 'LDFLAGS=-Wl,-z,relro -Wl,--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-8.10.7/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.2.1.0 + '[' -x Setup ']' + LANG=C.utf8 ++ sed -e 's/ / -optc/g' ++ 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 ++ 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-HSH '--libsubdir=$compiler/$pkgid' '--datasubdir=$pkgid' '--libexecsubdir=$pkgid' --ghc --dynlibdir=/usr/lib64/ghc-8.10.7 --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/HSH-2.1.3 --global Configuring HSH-2.1.3... + '[' -x Setup ']' + LANG=C.utf8 + ./Setup build -j8 Preprocessing library for HSH-2.1.3.. Building library for HSH-2.1.3.. on the commandline: warning: -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS ghc: setNumCapabilities: not supported on this platform [1 of 4] Compiling HSH.Channel HSH/Channel.hs:61:42: warning: [-Wname-shadowing] This binding for ‘h’ shadows the existing binding bound at HSH/Channel.hs:59:22 | 61 | where dumpChanToHandle (ChanString s) h = hPutStr h s | ^ HSH/Channel.hs:62:39: warning: [-Wname-shadowing] This binding for ‘h’ shadows the existing binding bound at HSH/Channel.hs:59:22 | 62 | dumpChanToHandle (ChanBSL s) h = BSL.hPut h s | ^ [2 of 4] Compiling HSH.Command HSH/Command.hs:38:1: warning: [-Wdodgy-imports] Module ‘Prelude’ does not export ‘catch’ | 38 | import Prelude hiding (catch) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HSH/Command.hs:43:1: warning: [-Wunused-imports] The import of ‘Data.Maybe.Utils’ is redundant except perhaps to import instances from ‘Data.Maybe.Utils’ To import instances alone, use: import Data.Maybe.Utils() | 43 | import Data.Maybe.Utils | ^^^^^^^^^^^^^^^^^^^^^^^ HSH/Command.hs:45:1: warning: [-Wunused-imports] The import of ‘Data.List.Utils’ is redundant except perhaps to import instances from ‘Data.List.Utils’ To import instances alone, use: import Data.List.Utils() | 45 | import Data.List.Utils(uniq) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HSH/Command.hs:50:1: warning: [-Wunused-imports] The import of ‘Control.Concurrent’ is redundant except perhaps to import instances from ‘Control.Concurrent’ To import instances alone, use: import Control.Concurrent() | 50 | import Control.Concurrent | ^^^^^^^^^^^^^^^^^^^^^^^^^ HSH/Command.hs:58:1: warning: [-Wunused-top-binds] Defined but not used: ‘d’ | 58 | d = debugM "HSH.Command" | ^ HSH/Command.hs:59:1: warning: [-Wunused-top-binds] Defined but not used: ‘dr’ | 59 | dr = debugM "HSH.Command.Run" | ^^ HSH/Command.hs:60:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: em :: String -> IO () | 60 | em = errorM "HSH.Command" | ^^ HSH/Command.hs:113:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (Handle -> Handle -> IO ()) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 113 | instance Show (Handle -> Handle -> IO ()) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:115:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (Channel -> IO Channel) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 115 | instance Show (Channel -> IO Channel) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:117:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (String -> String) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 117 | instance Show (String -> String) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:119:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (() -> String) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 119 | instance Show (() -> String) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:121:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (String -> IO String) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 121 | instance Show (String -> IO String) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:123:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (() -> IO String) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 123 | instance Show (() -> IO String) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:125:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (BSL.ByteString -> BSL.ByteString) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 125 | instance Show (BSL.ByteString -> BSL.ByteString) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:127:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (() -> BSL.ByteString) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 127 | instance Show (() -> BSL.ByteString) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:129:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (BSL.ByteString -> IO BSL.ByteString) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 129 | instance Show (BSL.ByteString -> IO BSL.ByteString) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:131:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (() -> IO BSL.ByteString) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 131 | instance Show (() -> IO BSL.ByteString) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:133:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (BS.ByteString -> BS.ByteString) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 133 | instance Show (BS.ByteString -> BS.ByteString) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:135:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (() -> BS.ByteString) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 135 | instance Show (() -> BS.ByteString) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:137:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (BS.ByteString -> IO BS.ByteString) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 137 | instance Show (BS.ByteString -> IO BS.ByteString) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:139:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (() -> IO BS.ByteString) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 139 | instance Show (() -> IO BS.ByteString) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:234:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show ([String] -> [String]) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 234 | instance Show ([String] -> [String]) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:236:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (() -> [String]) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 236 | instance Show (() -> [String]) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:238:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show ([String] -> IO [String]) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 238 | instance Show ([String] -> IO [String]) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:240:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (() -> IO [String]) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 240 | instance Show (() -> IO [String]) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:298:1: warning: [-Wtabs] Tab character found here, and in 23 further locations. Please use spaces instead. | 298 | -- Added field in process 1.1.0.0: | ^^^^^^^^ HSH/Command.hs:368:38: warning: [-Wname-shadowing] This binding for ‘env’ shadows the existing binding imported from ‘System.Process’ at HSH/Command.hs:51:1-21 (and originally defined in ‘process-1.6.13.2:System.Process.Common’) | 368 | fdInvoke (PipeCommand cmd1 cmd2) env ichan = | ^^^ HSH/Command.hs:488:12: warning: [-Wunused-do-bind] A do-notation statement discarded a result of type ‘c’ Suppress this warning by saying ‘_ <- evalfunc c’ | 488 | evalfunc c | ^^^^^^^^^^ HSH/Command.hs:610:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show EnvironFilter To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 610 | instance Show EnvironFilter where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... [3 of 4] Compiling HSH.ShellEquivs HSH/ShellEquivs.hs:105:1: warning: [-Wunused-imports] The import of ‘System.Process’ is redundant except perhaps to import instances from ‘System.Process’ To import instances alone, use: import System.Process() | 105 | import System.Process | ^^^^^^^^^^^^^^^^^^^^^ HSH/ShellEquivs.hs:106:1: warning: [-Wunused-imports] The qualified import of ‘System.Directory’ is redundant except perhaps to import instances from ‘System.Directory’ To import instances alone, use: import System.Directory() | 106 | import qualified System.Directory as SD | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HSH/ShellEquivs.hs:185:36: warning: [-Wunused-matches] Defined but not used: ‘cignore’ | 185 | catBytesFrom (ChanHandle hr) count cignore = | ^^^^^^^ HSH/ShellEquivs.hs:190:27: warning: [-Wunused-matches] Defined but not used: ‘cignore’ | 190 | catBytesFrom cinput count cignore = | ^^^^^^^ HSH/ShellEquivs.hs:261:8: warning: [-Wunused-do-bind] A do-notation statement discarded a result of type ‘GHC.Int.Int64’ Suppress this warning by saying ‘_ <- E.evaluate (BSL.length c)’ | 261 | E.evaluate (BSL.length c) | ^^^^^^^^^^^^^^^^^^^^^^^^^ HSH/ShellEquivs.hs:324:6: warning: [-Wunused-matches] Defined but not used: ‘inp’ | 324 | glob inp@('~':remainder) = | ^^^ HSH/ShellEquivs.hs:325:27: warning: [-Wunused-matches] Defined but not used: ‘e’ | 325 | E.catch expanduser (\(e::E.SomeException) -> Glob.glob rest) | ^ [4 of 4] Compiling HSH on the commandline: warning: -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS ghc: setNumCapabilities: not supported on this platform [1 of 4] Compiling HSH.Channel HSH/Channel.hs:61:42: warning: [-Wname-shadowing] This binding for ‘h’ shadows the existing binding bound at HSH/Channel.hs:59:22 | 61 | where dumpChanToHandle (ChanString s) h = hPutStr h s | ^ HSH/Channel.hs:62:39: warning: [-Wname-shadowing] This binding for ‘h’ shadows the existing binding bound at HSH/Channel.hs:59:22 | 62 | dumpChanToHandle (ChanBSL s) h = BSL.hPut h s | ^ [2 of 4] Compiling HSH.Command HSH/Command.hs:38:1: warning: [-Wdodgy-imports] Module ‘Prelude’ does not export ‘catch’ | 38 | import Prelude hiding (catch) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HSH/Command.hs:43:1: warning: [-Wunused-imports] The import of ‘Data.Maybe.Utils’ is redundant except perhaps to import instances from ‘Data.Maybe.Utils’ To import instances alone, use: import Data.Maybe.Utils() | 43 | import Data.Maybe.Utils | ^^^^^^^^^^^^^^^^^^^^^^^ HSH/Command.hs:45:1: warning: [-Wunused-imports] The import of ‘Data.List.Utils’ is redundant except perhaps to import instances from ‘Data.List.Utils’ To import instances alone, use: import Data.List.Utils() | 45 | import Data.List.Utils(uniq) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HSH/Command.hs:50:1: warning: [-Wunused-imports] The import of ‘Control.Concurrent’ is redundant except perhaps to import instances from ‘Control.Concurrent’ To import instances alone, use: import Control.Concurrent() | 50 | import Control.Concurrent | ^^^^^^^^^^^^^^^^^^^^^^^^^ HSH/Command.hs:58:1: warning: [-Wunused-top-binds] Defined but not used: ‘d’ | 58 | d = debugM "HSH.Command" | ^ HSH/Command.hs:59:1: warning: [-Wunused-top-binds] Defined but not used: ‘dr’ | 59 | dr = debugM "HSH.Command.Run" | ^^ HSH/Command.hs:60:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: em :: String -> IO () | 60 | em = errorM "HSH.Command" | ^^ HSH/Command.hs:113:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (Handle -> Handle -> IO ()) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 113 | instance Show (Handle -> Handle -> IO ()) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:115:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (Channel -> IO Channel) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 115 | instance Show (Channel -> IO Channel) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:117:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (String -> String) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 117 | instance Show (String -> String) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:119:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (() -> String) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 119 | instance Show (() -> String) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:121:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (String -> IO String) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 121 | instance Show (String -> IO String) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:123:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (() -> IO String) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 123 | instance Show (() -> IO String) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:125:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (BSL.ByteString -> BSL.ByteString) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 125 | instance Show (BSL.ByteString -> BSL.ByteString) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:127:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (() -> BSL.ByteString) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 127 | instance Show (() -> BSL.ByteString) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:129:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (BSL.ByteString -> IO BSL.ByteString) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 129 | instance Show (BSL.ByteString -> IO BSL.ByteString) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:131:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (() -> IO BSL.ByteString) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 131 | instance Show (() -> IO BSL.ByteString) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:133:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (BS.ByteString -> BS.ByteString) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 133 | instance Show (BS.ByteString -> BS.ByteString) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:135:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (() -> BS.ByteString) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 135 | instance Show (() -> BS.ByteString) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:137:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (BS.ByteString -> IO BS.ByteString) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 137 | instance Show (BS.ByteString -> IO BS.ByteString) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:139:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (() -> IO BS.ByteString) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 139 | instance Show (() -> IO BS.ByteString) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:234:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show ([String] -> [String]) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 234 | instance Show ([String] -> [String]) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:236:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (() -> [String]) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 236 | instance Show (() -> [String]) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:238:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show ([String] -> IO [String]) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 238 | instance Show ([String] -> IO [String]) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:240:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show (() -> IO [String]) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 240 | instance Show (() -> IO [String]) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... HSH/Command.hs:298:1: warning: [-Wtabs] Tab character found here, and in 23 further locations. Please use spaces instead. | 298 | -- Added field in process 1.1.0.0: | ^^^^^^^^ HSH/Command.hs:368:38: warning: [-Wname-shadowing] This binding for ‘env’ shadows the existing binding imported from ‘System.Process’ at HSH/Command.hs:51:1-21 (and originally defined in ‘process-1.6.13.2:System.Process.Common’) | 368 | fdInvoke (PipeCommand cmd1 cmd2) env ichan = | ^^^ HSH/Command.hs:488:12: warning: [-Wunused-do-bind] A do-notation statement discarded a result of type ‘c’ Suppress this warning by saying ‘_ <- evalfunc c’ | 488 | evalfunc c | ^^^^^^^^^^ HSH/Command.hs:610:1: warning: [-Worphans] Orphan instance: instance [overlap ok] Show EnvironFilter To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. | 610 | instance Show EnvironFilter where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... [3 of 4] Compiling HSH.ShellEquivs HSH/ShellEquivs.hs:105:1: warning: [-Wunused-imports] The import of ‘System.Process’ is redundant except perhaps to import instances from ‘System.Process’ To import instances alone, use: import System.Process() | 105 | import System.Process | ^^^^^^^^^^^^^^^^^^^^^ HSH/ShellEquivs.hs:106:1: warning: [-Wunused-imports] The qualified import of ‘System.Directory’ is redundant except perhaps to import instances from ‘System.Directory’ To import instances alone, use: import System.Directory() | 106 | import qualified System.Directory as SD | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HSH/ShellEquivs.hs:185:36: warning: [-Wunused-matches] Defined but not used: ‘cignore’ | 185 | catBytesFrom (ChanHandle hr) count cignore = | ^^^^^^^ HSH/ShellEquivs.hs:190:27: warning: [-Wunused-matches] Defined but not used: ‘cignore’ | 190 | catBytesFrom cinput count cignore = | ^^^^^^^ HSH/ShellEquivs.hs:261:8: warning: [-Wunused-do-bind] A do-notation statement discarded a result of type ‘GHC.Int.Int64’ Suppress this warning by saying ‘_ <- E.evaluate (BSL.length c)’ | 261 | E.evaluate (BSL.length c) | ^^^^^^^^^^^^^^^^^^^^^^^^^ HSH/ShellEquivs.hs:324:6: warning: [-Wunused-matches] Defined but not used: ‘inp’ | 324 | glob inp@('~':remainder) = | ^^^ HSH/ShellEquivs.hs:325:27: warning: [-Wunused-matches] Defined but not used: ‘e’ | 325 | E.catch expanduser (\(e::E.SomeException) -> Glob.glob rest) | ^ [4 of 4] Compiling HSH + '[' -n dist/build/libHSHSH-2.1.3-8MtyZ5mJ6ZyHwjGGzeE4NV-ghc8.10.7.so ']' + '[' -x Setup ']' + LANG=C.utf8 + ./Setup haddock -j8 --html --hyperlink-source --hoogle unrecognized 'haddock' option `-j8' error: Bad exit status from /var/tmp/rpm-tmp.gMSZxO (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.gMSZxO (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.10/site-packages/mockbuild/util.py", line 598, 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-HSH.spec