Mock Version: 5.5 Mock Version: 5.5 Mock Version: 5.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/ghc-skein.spec'], chrootPath='/home/lib/ocmock/dist-oc9-epol-build-217363-80917/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=981gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/ghc-skein.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: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/ghc-skein-1.0.9.4-2.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/ghc-skein.spec'], chrootPath='/home/lib/ocmock/dist-oc9-epol-build-217363-80917/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=981gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/ghc-skein.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: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.dqWzRM + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf skein-1.0.9.4 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/skein-1.0.9.4.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd skein-1.0.9.4 + /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.M0DuZ4 + 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 -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 -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 -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 -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 skein-1.0.9.4 ++ 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 -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.hs, 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 -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-skein '--libsubdir=$compiler/lib/$pkgid' '--datasubdir=$pkgid' '--libexecsubdir=$pkgid' --ghc --dynlibdir=/usr/lib64/ghc-9.8.4/lib --enable-tests --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-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/skein-1.0.9.4 --global Configuring skein-1.0.9.4... + '[' -x Setup ']' + LANG=C.utf8 + ./Setup build -j32 Preprocessing library for skein-1.0.9.4.. Building library for skein-1.0.9.4.. [1 of 2] Compiling Crypto.Skein.Internal src/Crypto/Skein/Internal.hsc:101:13: warning: [GHC-68441] [-Wdeprecations] In the use of ‘memcpy’ (imported from Data.ByteString.Internal, but defined in Data.ByteString.Internal.Type): Deprecated: "Use Foreign.Marshal.Utils.copyBytes instead" | 101 | BI.memcpy bptr (castPtr ptr) (fromIntegral size256Ctx) | ^^^^^^^^^ src/Crypto/Skein/Internal.hsc:104:13: warning: [GHC-68441] [-Wdeprecations] In the use of ‘memcpy’ (imported from Data.ByteString.Internal, but defined in Data.ByteString.Internal.Type): Deprecated: "Use Foreign.Marshal.Utils.copyBytes instead" | 104 | BI.memcpy (castPtr ptr) (castPtr bs_ptr) (fromIntegral size256Ctx) | ^^^^^^^^^ src/Crypto/Skein/Internal.hsc:111:13: warning: [GHC-68441] [-Wdeprecations] In the use of ‘memcpy’ (imported from Data.ByteString.Internal, but defined in Data.ByteString.Internal.Type): Deprecated: "Use Foreign.Marshal.Utils.copyBytes instead" | 111 | BI.memcpy bptr (castPtr ptr) (fromIntegral size512Ctx) | ^^^^^^^^^ src/Crypto/Skein/Internal.hsc:114:13: warning: [GHC-68441] [-Wdeprecations] In the use of ‘memcpy’ (imported from Data.ByteString.Internal, but defined in Data.ByteString.Internal.Type): Deprecated: "Use Foreign.Marshal.Utils.copyBytes instead" | 114 | BI.memcpy (castPtr ptr) (castPtr bs_ptr) (fromIntegral size512Ctx) | ^^^^^^^^^ src/Crypto/Skein/Internal.hsc:121:13: warning: [GHC-68441] [-Wdeprecations] In the use of ‘memcpy’ (imported from Data.ByteString.Internal, but defined in Data.ByteString.Internal.Type): Deprecated: "Use Foreign.Marshal.Utils.copyBytes instead" | 121 | BI.memcpy bptr (castPtr ptr) (fromIntegral size1024Ctx) | ^^^^^^^^^ src/Crypto/Skein/Internal.hsc:124:13: warning: [GHC-68441] [-Wdeprecations] In the use of ‘memcpy’ (imported from Data.ByteString.Internal, but defined in Data.ByteString.Internal.Type): Deprecated: "Use Foreign.Marshal.Utils.copyBytes instead" | 124 | BI.memcpy (castPtr ptr) (castPtr bs_ptr) (fromIntegral size1024Ctx) | ^^^^^^^^^ [2 of 2] Compiling Crypto.Skein Preprocessing test suite 'runtests' for skein-1.0.9.4.. Building test suite 'runtests' for skein-1.0.9.4.. [1 of 2] Compiling Paths_skein [2 of 2] Compiling Main tests/runtests.hs:2:1: warning: [GHC-66111] [-Wunused-imports] The import of ‘Control.Applicative’ is redundant except perhaps to import instances from ‘Control.Applicative’ To import instances alone, use: import Control.Applicative() | 2 | import Control.Applicative ((<$>)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/runtests.hs:60:18: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: record field of Kat ‘skeinType’ | 60 | data Kat = Kat { skeinType :: SkeinType | ^^^^^^^^^ tests/runtests.hs:61:18: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: record field of Kat ‘message’ | 61 | , message :: B.ByteString | ^^^^^^^ tests/runtests.hs:62:18: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: record field of Kat ‘macKey’ | 62 | , macKey :: Maybe B.ByteString | ^^^^^^ tests/runtests.hs:63:18: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: record field of Kat ‘result’ | 63 | , result :: B.ByteString | ^^^^^^ tests/runtests.hs:106:9: warning: [GHC-62161] [-Wincomplete-uni-patterns] Pattern match(es) are non-exhaustive In a pattern binding: Patterns of type ‘([Char], [Char])’ not matched: ([], _) ((p:_), _) where p is not one of {':'} ([':'], _) ((':':p:_), _) where p is not one of {'S'} ... | 106 | let (":Skein", '-':xs1) = break (== '-') xs0 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/runtests.hs:108:9: warning: [GHC-62161] [-Wincomplete-uni-patterns] Pattern match(es) are non-exhaustive In a pattern binding: Patterns of type ‘([Char], [Char])’ not matched: ([], _) ((p:_), _) where p is not one of {':'} | 108 | (':':_, xs3) = break isNumber xs2 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/runtests.hs:124:66: 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." | 124 | | otherwise = let (data_, rest') = span ((== ' ') . head) rest | ^^^^ tests/runtests.hs:139:13: warning: [GHC-40910] [-Wunused-local-binds] Defined but not used: ‘f’ | 139 | f = undefined | ^ tests/runtests.hs:141:13: warning: [GHC-40910] [-Wunused-local-binds] Defined but not used: ‘p’ | 141 | p = f t `asTypeOf` digest | ^ tests/runtests.hs:142:7: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘skeinType’ shadows the existing binding defined at tests/runtests.hs:60:18 | 142 | skeinType = Skein (get blockLength) (get outputLength) | ^^^^^^^^^ tests/runtests.hs:144:59: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘macKey’ shadows the existing binding defined at tests/runtests.hs:62:18 | 144 | myMacKats = [(msg, macKey, ret) | Kat t msg (Just macKey) ret <- kats, t == skeinType] | ^^^^^^ tests/runtests.hs:160:33: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘macKey’ shadows the existing binding defined at tests/runtests.hs:62:18 | 160 | forM_ myMacKats $ \(msg, macKey, ret) -> do | ^^^^^^ /var/tmp/rpm-tmp.M0DuZ4: line 73: 1979323 Segmentation fault (core dumped) ./Setup build -j32 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.M0DuZ4 (%build) Bad exit status from /var/tmp/rpm-tmp.M0DuZ4 (%build) Child return code was: 1 EXCEPTION: [Error("Command failed: \n # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/ghc-skein.spec'\n", 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 612, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/ghc-skein.spec'