Mock Version: 2.15 Mock Version: 2.15 Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ghc9.6.spec'], chrootPath='/var/lib/mock/f38-build-684810-80515/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=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ghc9.6.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=1675296000 Wrote: /builddir/build/SRPMS/ghc9.6-9.6.0.20230210-3.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/ghc9.6.spec'], chrootPath='/var/lib/mock/f38-build-684810-80515/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=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ghc9.6.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=1675296000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.QXJ5Mq + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ghc-9.6.0.20230210 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ghc-9.6.0.20230210-src.tar.lz + STATUS=0 + '[' 0 -ne 0 ']' + cd ghc-9.6.0.20230210 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (ghc-gen_contents_index-haddock-path.patch):' Patch #1 (ghc-gen_contents_index-haddock-path.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file libraries/gen_contents_index Hunk #1 succeeded at 59 (offset -1 lines). Patch #3 (ghc-gen_contents_index-nodocs.patch): + echo 'Patch #3 (ghc-gen_contents_index-nodocs.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file libraries/gen_contents_index Hunk #1 succeeded at 58 (offset 11 lines). Patch #2 (ghc-Cabal-install-PATH-warning.patch): + echo 'Patch #2 (ghc-Cabal-install-PATH-warning.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file libraries/Cabal/Cabal/src/Distribution/Simple/Install.hs Hunk #1 succeeded at 206 (offset -9 lines). Patch #8 (ghc-configure-c99.patch): + echo 'Patch #8 (ghc-configure-c99.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file m4/fp_leading_underscore.m4 patching file configure Hunk #1 succeeded at 17377 (offset 282 lines). Patch #9 (9604.patch): + echo 'Patch #9 (9604.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file compiler/GHC/Driver/Flags.hs Hunk #1 succeeded at 306 (offset 4 lines). Hunk #2 succeeded at 629 (offset 4 lines). Hunk #3 succeeded at 735 (offset 4 lines). Hunk #4 succeeded at 832 (offset 5 lines). patching file compiler/GHC/Driver/Session.hs Hunk #1 succeeded at 3323 (offset -4 lines). Hunk #2 succeeded at 3483 (offset -4 lines). Hunk #3 succeeded at 3808 (offset -3 lines). patching file compiler/GHC/HsToCore.hs patching file compiler/GHC/Iface/Binary.hs patching file compiler/GHC/Iface/Load.hs patching file compiler/GHC/Iface/Make.hs Hunk #2 succeeded at 205 (offset 1 line). Hunk #3 succeeded at 218 (offset 1 line). Hunk #4 succeeded at 317 (offset 1 line). Hunk #5 succeeded at 330 (offset 1 line). Hunk #6 succeeded at 352 (offset 1 line). patching file compiler/GHC/Iface/Recomp.hs Hunk #5 succeeded at 1217 (offset 3 lines). Hunk #6 succeeded at 1228 (offset 3 lines). Hunk #7 succeeded at 1264 (offset 3 lines). patching file compiler/GHC/Tc/Errors/Ppr.hs Hunk #1 succeeded at 1220 (offset -3 lines). Hunk #2 succeeded at 1628 (offset -3 lines). Hunk #3 succeeded at 2039 (offset -3 lines). patching file compiler/GHC/Tc/Errors/Types.hs patching file compiler/GHC/Tc/Gen/Splice.hs Hunk #1 succeeded at 2824 (offset 16 lines). Hunk #2 succeeded at 2840 (offset 16 lines). patching file compiler/GHC/Types/Error/Codes.hs patching file compiler/GHC/Unit/Module/ModGuts.hs patching file compiler/GHC/Unit/Module/ModIface.hs Hunk #17 succeeded at 669 (offset -119 lines). patching file docs/users_guide/phases.rst patching file docs/users_guide/using-warnings.rst Hunk #1 succeeded at 2352 (offset -3 lines). + rm libffi-tarballs/libffi-3.4.4.tar.gz Patch #26 (no-missing-haddock-file-warning.patch): + echo 'Patch #26 (no-missing-haddock-file-warning.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file utils/ghc-pkg/Main.hs Hunk #1 succeeded at 1905 (offset 317 lines). Patch #27 (haddock-remove-googleapis-fonts.patch): + echo 'Patch #27 (haddock-remove-googleapis-fonts.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file utils/haddock/haddock-api/src/Haddock/Backends/Xhtml.hs Hunk #1 succeeded at 148 (offset 11 lines). Hunk #2 succeeded at 157 (offset 11 lines). + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.7CCEd2 + 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 ghc-9.6.0.20230210 + autoupdate + 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 + 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 ' + export CC=/usr/bin/gcc + CC=/usr/bin/gcc + export LD=/usr/bin/ld.gold + LD=/usr/bin/ld.gold + export GHC=/usr/bin/ghc-9.2 + GHC=/usr/bin/ghc-9.2 + ./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --docdir=/usr/share/doc/ghc9.6 --with-system-libffi --enable-unregisterised checking for gfind... no checking for find... /usr/bin/find checking for sort... /usr/bin/sort checking for GHC version date... given 9.6.0.20230210 checking for GHC Git commit id... given bcc6c918baf9164922813e4f05bd41854e274002 checking for ghc... /usr/bin/ghc-9.2 checking version of ghc... unknown configure: error: Cannot determine the version of /usr/bin/ghc-9.2. Is it really GHC? RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.7CCEd2 (%build) Bad exit status from /var/tmp/rpm-tmp.7CCEd2 (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, 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/ghc9.6.spec