Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/ghc-HSH.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-219153-80920/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=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --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: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/ghc-HSH-2.1.3-2.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/ghc-HSH.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-219153-80920/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=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --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: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.m6937l + 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.g2tlTG + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -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\)' + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + export 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,--build-id=sha1' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,--build-id=sha1' + '[' -f Setup.hs -o -f Setup.lhs ']' + '[' -d /usr/lib64/ghc-9.8.4/lib ']' + subsubdir=/lib + '[' -x Setup ']' + ghc --make -package Cabal -no-user-package-db -dynamic Setup [1 of 2] Compiling Main ( Setup.lhs, Setup.o ) [2 of 2] Linking Setup + LANG=C.utf8 + ./Setup --version Cabal library version 3.10.3.0 + '[' -x Setup ']' + LANG=C.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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection ++ sed -e 's/ / -optc/g' ++ echo ' -Wl,-z,relro' -Wl,--as-needed -Wl,--build-id=sha1 ++ sed -e 's/ / -optl/g' + ./Setup configure --prefix=/usr --libdir=/usr/lib64 --docdir=/usr/share/licenses/ghc-HSH '--libsubdir=$compiler/lib/$pkgid' '--datasubdir=$pkgid' '--libexecsubdir=$pkgid' --ghc --dynlibdir=/usr/lib64/ghc-9.8.4/lib --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/OpenCloudOS/OpenCloudOS-hardened-cc1 -optc-fstack-protector-strong -optc-mbranch-protection=standard -optc-fasynchronous-unwind-tables -optc-fstack-clash-protection -optl-Wl,-z,relro -optl-Wl,--as-needed -optl-Wl,--build-id=sha1 -fhide-source-paths' --enable-shared --htmldir=/usr/share/doc/ghc/html/libraries/HSH-2.1.3 --global Warning: HSH.cabal:40:32: version operators used. To use version operators the package needs to specify at least 'cabal-version: >= 1.8'. Warning: HSH.cabal:30:30: version operators used. To use version operators the package needs to specify at least 'cabal-version: >= 1.8'. 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: [GHC-53692] [-Wdeprecated-flags] -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS [1 of 4] Compiling HSH.Channel HSH/Channel.hs:61:42: warning: [GHC-63397] [-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: [GHC-63397] [-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:24: warning: [GHC-61689] [-Wdodgy-imports] Module ‘Prelude’ does not export ‘catch’. | 38 | import Prelude hiding (catch) | ^^^^^ HSH/Command.hs:43:1: warning: [GHC-66111] [-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: [GHC-66111] [-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: [GHC-66111] [-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: [GHC-40910] [-Wunused-top-binds] Defined but not used: ‘d’ | 58 | d = debugM "HSH.Command" | ^ HSH/Command.hs:59:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: ‘dr’ | 59 | dr = debugM "HSH.Command.Run" | ^^ HSH/Command.hs:60:1: warning: [GHC-38417] [-Wmissing-signatures] Top-level binding with no type signature: em :: String -> IO () | 60 | em = errorM "HSH.Command" | ^^ HSH/Command.hs:113:1: warning: [GHC-90177] [-Worphans] Orphan class instance: instance [overlap ok] Show (Handle -> Handle -> IO ()) Suggested fix: 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: [GHC-90177] [-Worphans] Orphan class instance: instance [overlap ok] Show (Channel -> IO Channel) Suggested fix: 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: [GHC-90177] [-Worphans] Orphan class instance: instance [overlap ok] Show (String -> String) Suggested fix: 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: [GHC-90177] [-Worphans] Orphan class instance: instance [overlap ok] Show (() -> String) Suggested fix: 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: [GHC-90177] [-Worphans] Orphan class instance: instance [overlap ok] Show (String -> IO String) Suggested fix: 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: [GHC-90177] [-Worphans] Orphan class instance: instance [overlap ok] Show (() -> IO String) Suggested fix: 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: [GHC-90177] [-Worphans] Orphan class instance: instance [overlap ok] Show (BSL.ByteString -> BSL.ByteString) Suggested fix: 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: [GHC-90177] [-Worphans] Orphan class instance: instance [overlap ok] Show (() -> BSL.ByteString) Suggested fix: 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: [GHC-90177] [-Worphans] Orphan class instance: instance [overlap ok] Show (BSL.ByteString -> IO BSL.ByteString) Suggested fix: 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: [GHC-90177] [-Worphans] Orphan class instance: instance [overlap ok] Show (() -> IO BSL.ByteString) Suggested fix: 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: [GHC-90177] [-Worphans] Orphan class instance: instance [overlap ok] Show (BS.ByteString -> BS.ByteString) Suggested fix: 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: [GHC-90177] [-Worphans] Orphan class instance: instance [overlap ok] Show (() -> BS.ByteString) Suggested fix: 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: [GHC-90177] [-Worphans] Orphan class instance: instance [overlap ok] Show (BS.ByteString -> IO BS.ByteString) Suggested fix: 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: [GHC-90177] [-Worphans] Orphan class instance: instance [overlap ok] Show (() -> IO BS.ByteString) Suggested fix: 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: [GHC-90177] [-Worphans] Orphan class instance: instance [overlap ok] Show ([String] -> [String]) Suggested fix: 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: [GHC-90177] [-Worphans] Orphan class instance: instance [overlap ok] Show (() -> [String]) Suggested fix: 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: [GHC-90177] [-Worphans] Orphan class instance: instance [overlap ok] Show ([String] -> IO [String]) Suggested fix: 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: [GHC-90177] [-Worphans] Orphan class instance: instance [overlap ok] Show (() -> IO [String]) Suggested fix: 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: [GHC-94817] [-Wtabs] Tab character found here, and in 23 further locations. Suggested fix: Please use spaces instead. | 298 | -- Added field in process 1.1.0.0: | ^^^^^^^^ HSH/Command.hs:368:38: warning: [GHC-63397] [-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.25.0:System.Process.Common’) | 368 | fdInvoke (PipeCommand cmd1 cmd2) env ichan = | ^^^ HSH/Command.hs:488:12: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type ‘c’ Suggested fix: Suppress this warning by saying ‘_ <- evalfunc c’ | 488 | evalfunc c | ^^^^^^^^^^ HSH/Command.hs:578:25: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 578 | return (rstrip . head $ r) | ^^^^ HSH/Command.hs:610:1: warning: [GHC-90177] [-Worphans] Orphan class instance: instance [overlap ok] Show EnvironFilter Suggested fix: 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:228:14: error: [GHC-83865] • Couldn't match expected type: OpenFileFlags -> IO System.Posix.Types.Fd with actual type: IO System.Posix.Types.Fd • The function ‘openFd’ is applied to four value arguments, but its type ‘FilePath -> OpenMode -> OpenFileFlags -> IO System.Posix.Types.Fd’ has only three In the second argument of ‘($)’, namely ‘openFd fp WriteOnly Nothing defaultFileFlags’ In a stmt of a 'do' block: fd <- throwErrnoPathIf (< 0) "HSH fifoOpen" fp $ openFd fp WriteOnly Nothing defaultFileFlags | 228 | openFd fp WriteOnly Nothing defaultFileFlags | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ HSH/ShellEquivs.hs:228:34: error: [GHC-83865] • Couldn't match expected type ‘OpenFileFlags’ with actual type ‘Maybe a0’ • In the third argument of ‘openFd’, namely ‘Nothing’ In the second argument of ‘($)’, namely ‘openFd fp WriteOnly Nothing defaultFileFlags’ In a stmt of a 'do' block: fd <- throwErrnoPathIf (< 0) "HSH fifoOpen" fp $ openFd fp WriteOnly Nothing defaultFileFlags | 228 | openFd fp WriteOnly Nothing defaultFileFlags | ^^^^^^^ error: Bad exit status from /var/tmp/rpm-tmp.g2tlTG (%build) Bad exit status from /var/tmp/rpm-tmp.g2tlTG (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/ghc-HSH.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 597, 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 --noclean --target aarch64 --nodeps /builddir/build/SPECS/ghc-HSH.spec