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-foundation.spec'], chrootPath='/home/lib/ocmock/dist-oc9-epol-build-205508-80549/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=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/ghc-foundation.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-foundation-0.0.30-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-foundation.spec'], chrootPath='/home/lib/ocmock/dist-oc9-epol-build-205508-80549/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=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/ghc-foundation.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.RGgjgU + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf foundation-0.0.30 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/foundation-0.0.30.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd foundation-0.0.30 + /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.bSZEUS + 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 foundation-0.0.30 ++ 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 ']' + cp /usr/share/ghc-rpm-macros/Setup.hs . + '[' -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-foundation '--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/foundation-0.0.30 --global Configuring foundation-0.0.30... + '[' -x Setup ']' + LANG=C.utf8 + ./Setup build -j32 Preprocessing library for foundation-0.0.30.. Building library for foundation-0.0.30.. [ 1 of 103] Compiling Foundation.Array.Internal [ 2 of 103] Compiling Foundation.Class.Bifunctor [ 3 of 103] Compiling Foundation.Collection.Copy [ 4 of 103] Compiling Foundation.Collection.Element [ 5 of 103] Compiling Foundation.Collection.Collection [ 6 of 103] Compiling Foundation.Collection.Buildable [ 7 of 103] Compiling Foundation.Collection.Foldable [ 8 of 103] Compiling Foundation.Collection.Indexed [ 9 of 103] Compiling Foundation.Collection.InnerFunctor [ 10 of 103] Compiling Foundation.Collection.Keyed [ 11 of 103] Compiling Foundation.Collection.Mappable [ 12 of 103] Compiling Foundation.Collection.Mutable [ 13 of 103] Compiling Foundation.Foreign [ 14 of 103] Compiling Foundation.Foreign.Alloc [ 15 of 103] Compiling Foundation.IO.Terminal [ 16 of 103] Compiling Foundation.List.ListN [ 17 of 103] Compiling Foundation.Math.Trigonometry [ 18 of 103] Compiling Foundation.Monad.Exception [ 19 of 103] Compiling Foundation.Exception [ 20 of 103] Compiling Foundation.Monad.MonadIO [ 21 of 103] Compiling Foundation.Monad.Transformer [ 22 of 103] Compiling Foundation.Monad.Identity [ 23 of 103] Compiling Foundation.Monad.Base [ 24 of 103] Compiling Foundation.Monad.State [ 25 of 103] Compiling Foundation.Monad.Reader [ 26 of 103] Compiling Foundation.Monad.Except [ 27 of 103] Compiling Foundation.Numerical.Floating [ 28 of 103] Compiling Foundation.Numerical [ 29 of 103] Compiling Foundation.Monad [ 30 of 103] Compiling Foundation.Conduit.Internal [ 31 of 103] Compiling Foundation.Collection.List [ 32 of 103] Compiling Foundation.Collection.Sequential [ 33 of 103] Compiling Foundation.Collection.Zippable [ 34 of 103] Compiling Foundation.Collection [ 35 of 103] Compiling Foundation.List.DList [ 36 of 103] Compiling Foundation.Conduit.Textual [ 37 of 103] Compiling Foundation.Class.Storable [ 38 of 103] Compiling Foundation.Bits [ 39 of 103] Compiling Foundation.Array.Bitmap [ 40 of 103] Compiling Foundation.Partial [ 41 of 103] Compiling Foundation.Primitive [ 42 of 103] Compiling Foundation.Array.Chunked.Unboxed [ 43 of 103] Compiling Foundation.Array [ 44 of 103] Compiling Foundation.Hashing.Hasher [ 45 of 103] Compiling Foundation.Hashing.SipHash [ 46 of 103] Compiling Foundation.Hashing.FNV [ 47 of 103] Compiling Foundation.Strict [ 48 of 103] Compiling Foundation.String [ 49 of 103] Compiling Foundation.Parser [ 50 of 103] Compiling Foundation.String.Builder [ 51 of 103] Compiling Foundation.String.Read [ 52 of 103] Compiling Foundation.System.Bindings.Hs [ 53 of 103] Compiling Foundation.System.Bindings.Network [ 54 of 103] Compiling Foundation.System.Bindings.PosixDef [ 55 of 103] Compiling Foundation.System.Bindings.Posix [ 56 of 103] Compiling Foundation.System.Bindings [ 57 of 103] Compiling Foundation.System.Bindings.Linux [ 58 of 103] Compiling Foundation.System.Bindings.Time [ 59 of 103] Compiling Foundation.System.Entropy.Common [ 60 of 103] Compiling Foundation.System.Entropy.Unix [ 61 of 103] Compiling Foundation.System.Entropy [ 62 of 103] Compiling Foundation.Random.Class [ 63 of 103] Compiling Foundation.Random.DRG [ 64 of 103] Compiling Foundation.Random.XorShift [ 65 of 103] Compiling Foundation.Random.ChaChaDRG [ 66 of 103] Compiling Foundation.Random [ 67 of 103] Compiling Foundation.Check.Gen [ 68 of 103] Compiling Foundation.Check.Config [ 69 of 103] Compiling Foundation.Check.Arbitrary [ 70 of 103] Compiling Foundation.Format.CSV.Types [ 71 of 103] Compiling Foundation.Format.CSV.Builder [ 72 of 103] Compiling Foundation.Check.Property [ 73 of 103] Compiling Foundation.Check.Types [ 74 of 103] Compiling Foundation.Check.Print [ 75 of 103] Compiling Foundation.Check [ 76 of 103] Compiling Foundation.Check.Main [ 77 of 103] Compiling Foundation.System.Info [ 78 of 103] Compiling Foundation.Time.Types [ 79 of 103] Compiling Foundation.Time.StopWatch [ 80 of 103] Compiling Foundation.Time.Bindings [ 81 of 103] Compiling Foundation.Timing [ 82 of 103] Compiling Foundation.Timing.Main [ 83 of 103] Compiling Foundation.Tuple [ 84 of 103] Compiling Foundation.Hashing.Hashable [ 85 of 103] Compiling Foundation.Network.IPv6 [ 86 of 103] Compiling Foundation.Network.IPv4 [ 87 of 103] Compiling Foundation.Hashing [ 88 of 103] Compiling Foundation [ 89 of 103] Compiling Foundation.Tuple.Nth [ 90 of 103] Compiling Foundation.UUID [ 91 of 103] Compiling Foundation.VFS.Path [ 92 of 103] Compiling Foundation.VFS.FilePath [ 93 of 103] Compiling Foundation.VFS [ 94 of 103] Compiling Foundation.IO.File [ 95 of 103] Compiling Foundation.IO [ 96 of 103] Compiling Foundation.Conduit [ 97 of 103] Compiling Foundation.Format.CSV.Parser [ 98 of 103] Compiling Foundation.Format.CSV [ 99 of 103] Compiling Foundation.Foreign.MemoryMap.Types [100 of 103] Compiling Foundation.Foreign.MemoryMap.Posix [101 of 103] Compiling Foundation.Foreign.MemoryMap [102 of 103] Compiling Foundation.IO.FileMap [103 of 103] Compiling Foundation.VFS.URI Preprocessing test suite 'check-foundation' for foundation-0.0.30.. Building test suite 'check-foundation' for foundation-0.0.30.. /var/tmp/rpm-tmp.bSZEUS: line 73: 77041 Segmentation fault (core dumped) ./Setup build -j32 error: Bad exit status from /var/tmp/rpm-tmp.bSZEUS (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.bSZEUS (%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-foundation.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-foundation.spec'