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-language-c.spec'], chrootPath='/home/lib/ocmock/dist-oc9-epol-build-217205-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=983gid=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-language-c.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-language-c-0.10.0-1.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-language-c.spec'], chrootPath='/home/lib/ocmock/dist-oc9-epol-build-217205-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=983gid=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-language-c.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.slHLKq + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf language-c-0.10.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/language-c-0.10.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd language-c-0.10.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + dos2unix -k -n /builddir/build/SOURCES/language-c-0.10.0.cabal language-c.cabal dos2unix: converting file /builddir/build/SOURCES/language-c-0.10.0.cabal to file language-c.cabal in Unix format... + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.eB14TS + 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 language-c-0.10.0 ++ ls ++ grep -i -e '^\(ANNOUNCE\|AUTHORS\|CHANGELOG\|CHANGES\|CONTRIBUTORS\|README\|TODO\)' + for f in $(ls | grep -i -e '^\(ANNOUNCE\|AUTHORS\|CHANGELOG\|CHANGES\|CONTRIBUTORS\|README\|TODO\)') + '[' -f AUTHORS -a -x AUTHORS ']' + for f in $(ls | grep -i -e '^\(ANNOUNCE\|AUTHORS\|CHANGELOG\|CHANGES\|CONTRIBUTORS\|README\|TODO\)') + '[' -f AUTHORS.c2hs -a -x AUTHORS.c2hs ']' + for f in $(ls | grep -i -e '^\(ANNOUNCE\|AUTHORS\|CHANGELOG\|CHANGES\|CONTRIBUTORS\|README\|TODO\)') + '[' -f ChangeLog.md -a -x ChangeLog.md ']' + for f in $(ls | grep -i -e '^\(ANNOUNCE\|AUTHORS\|CHANGELOG\|CHANGES\|CONTRIBUTORS\|README\|TODO\)') + '[' -f README.md -a -x README.md ']' + 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-language-c '--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/language-c-0.10.0 --global Configuring language-c-0.10.0... + '[' -x Setup ']' + LANG=C.utf8 + ./Setup build -j32 ./language-c.cabal has been changed. Re-configuring with most recently used options. If this fails, please run configure manually. Configuring language-c-0.10.0... Preprocessing library for language-c-0.10.0.. Building library for language-c-0.10.0.. [ 1 of 40] Compiling Language.C.Analysis.NameSpaceMap [ 2 of 40] Compiling Language.C.Data.InputStream [ 3 of 40] Compiling Language.C.Data.Name [ 4 of 40] Compiling Language.C.Data.Position [ 5 of 40] Compiling Language.C.Data.Node [ 6 of 40] Compiling Language.C.Data.Ident [ 7 of 40] Compiling Language.C.Data.Error [ 8 of 40] Compiling Language.C.Data [ 9 of 40] Compiling Language.C.Data.RList [10 of 40] Compiling Language.C.Parser.Builtin [11 of 40] Compiling Language.C.Syntax.Constants [12 of 40] Compiling Language.C.Parser.Tokens [13 of 40] Compiling Language.C.Parser.ParserMonad src/Language/C/Parser/ParserMonad.hs:132:18: warning: [GHC-62161] [-Wincomplete-uni-patterns] Pattern match(es) are non-exhaustive In a lambda abstraction: Patterns of type ‘PState’ not matched: PState _ _ _ _ [] _ _ | 132 | getNewName = P $ \s@PState{namesupply=(n:ns)} -> n `seq` POk s{namesupply=ns} n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [14 of 40] Compiling Language.C.Parser.Lexer [15 of 40] Compiling Language.C.Syntax.Ops [16 of 40] Compiling Language.C.Syntax.AST [17 of 40] Compiling Language.C.Syntax [18 of 40] Compiling Language.C.Pretty [19 of 40] Compiling Language.C.Parser.Parser [20 of 40] Compiling Language.C.Parser [21 of 40] Compiling Language.C.Analysis.SemRep [22 of 40] Compiling Language.C.Analysis.TypeConversions [23 of 40] Compiling Language.C.Analysis.SemError [24 of 40] Compiling Language.C.Analysis.DefTable [25 of 40] Compiling Language.C.Analysis.TypeUtils [26 of 40] Compiling Language.C.Analysis.Builtins [27 of 40] Compiling Language.C.Analysis.TravMonad src/Language/C/Analysis/TravMonad.hs:512:12: warning: [GHC-62161] [-Wincomplete-uni-patterns] Pattern match(es) are non-exhaustive In a pattern binding: Patterns of type ‘[Name]’ not matched: [] | [28 of 40] Compiling Language.C.Analysis.Export [29 of 40] Compiling512 | do let (new_name : gen') = nameGenerator ts | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Language.C.Analysis.Debug [30 of 40] Compiling Language.C.Analysis.TypeCheck [31 of 40] Compiling Language.C.Syntax.Utils [32 of 40] Compiling Language.C.Analysis.AstAnalysis[boot] [33 of 40] Compiling Language.C.Analysis.DeclAnalysis src/Language/C/Analysis/DeclAnalysis.hs:140:1: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for ‘hasClKernelSpec’: Patterns of type ‘StorageSpec’ not matched: NoStorageSpec AutoSpec RegSpec ThreadSpec ... [34 of 40] Compiling Language.C.Analysis.ConstEval [35 of 40] Compiling Language.C.Analysis.AstAnalysis | 140 | hasClKernelSpec ClKernelSpec = True | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Language/C/Analysis/AstAnalysis.hs:237:8: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for ‘globalStorage’: Patterns of type ‘StorageSpec’ not matched: ClKernelSpec ClGlobalSpec ClLocalSpec | 237 | globalStorage _ | fun_spec /= noFunctionAttrs = | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... src/Language/C/Analysis/AstAnalysis.hs:447:13: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In a case alternative: Patterns of type ‘FloatType’ not matched: TyBFloat16 TyFloatN _ _ | 447 | case ft of | ^^^^^^^^^^... src/Language/C/Analysis/AstAnalysis.hs:474:14: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In a case alternative: Patterns of type ‘FloatType’ not matched: TyBFloat16 TyFloatN _ _ | 474 | case ft of | ^^^^^^^^^^... [36 of 40] Compiling Language.C.Analysis.MachineDescs [37 of 40] Compiling Language.C.Analysis [38 of 40] Compiling Language.C.System.Preprocess [39 of 40] Compiling Language.C.System.GCC [40 of 40] Compiling Language.C Preprocessing test suite 'language-c-harness' for language-c-0.10.0.. Building test suite 'language-c-harness' for language-c-0.10.0.. [1 of 1] Compiling Main /var/tmp/rpm-tmp.eB14TS: line 73: 1659496 Segmentation fault (core dumped) ./Setup build -j32 error: Bad exit status from /var/tmp/rpm-tmp.eB14TS (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.eB14TS (%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-language-c.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-language-c.spec'