Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/ghc.spec'], chrootPath='/var/lib/mock/f38-build-726071-99927/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=1209600uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/ghc.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=1687478400 Wrote: /builddir/build/SRPMS/ghc-9.2.6-131.0.riscv64.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/ghc.spec'], chrootPath='/var/lib/mock/f38-build-726071-99927/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=1209600uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/ghc.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=1687478400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.eA4xPD + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ghc-9.2.6 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ghc-9.2.6-src.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd ghc-9.2.6 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (10453.patch):' Patch #0 (10453.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file rts/linker/M32Alloc.c patching file rts/Linker.c patching file rts/LinkerInternals.h patching file rts/linker/M32Alloc.c patching file rts/ExecPage.c patching file rts/Linker.c patching file rts/LinkerInternals.h patching file rts/linker/Elf.c patching file rts/linker/M32Alloc.c patching file rts/linker/MachO.c patching file rts/linker/SymbolExtras.c patching file rts/linker/M32Alloc.c patching file rts/linker/M32Alloc.c patching file rts/linker/M32Alloc.c patching file rts/Linker.c patching file rts/MemoryMap.c patching file rts/MemoryMap.h patching file rts/linker/M32Alloc.c patching file rts/rts.cabal.in patching file rts/linker/M32Alloc.c patching file rts/Linker.c patching file rts/ReportMemoryMap.c (renamed from rts/MemoryMap.c) patching file rts/ReportMemoryMap.h (renamed from rts/MemoryMap.h) patching file rts/linker/M32Alloc.c patching file rts/rts.cabal.in patching file rts/ExecPage.c patching file rts/Linker.c patching file rts/LinkerInternals.h patching file rts/linker/Elf.c patching file rts/linker/LoadArchive.c patching file rts/linker/M32Alloc.c patching file rts/linker/MMap.c patching file rts/linker/MMap.h patching file rts/linker/SymbolExtras.c patching file rts/linker/elf_got.c patching file rts/rts.cabal.in patching file rts/Linker.c patching file rts/linker/Elf.c patching file rts/linker/MMap.c patching file rts/linker/MMap.h patching file rts/linker/MachO.c patching file rts/Linker.c patching file rts/LinkerInternals.h patching file rts/linker/LoadArchive.c patching file rts/linker/MMap.c + 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 48 (offset -12 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 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 #9 (00dc51060881df81258ba3b3bdf447294618a4de.patch): + echo 'Patch #9 (00dc51060881df81258ba3b3bdf447294618a4de.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file docs/users_guide/ghc_config.py.in Patch #10 (9aace0eaf6279f17368a1753b65afbdc466e8291.patch): + echo 'Patch #10 (9aace0eaf6279f17368a1753b65afbdc466e8291.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file utils/deriveConstants/Main.hs patching file utils/deriveConstants/deriveConstants.cabal Patch #11 (9394.patch): + echo 'Patch #11 (9394.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig11 --fuzz=0 patching file m4/fp_leading_underscore.m4 + rm libffi-tarballs/libffi-3.3-rc2+git20191103+88a7647.tar.gz Patch #15 (ghc-warnings.mk-CC-Wall.patch): + echo 'Patch #15 (ghc-warnings.mk-CC-Wall.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file mk/warnings.mk Patch #16 (ghc-9.2.1-hadrian-s390x-rts--qg.patch): + echo 'Patch #16 (ghc-9.2.1-hadrian-s390x-rts--qg.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file hadrian/hadrian.cabal Patch #20 (5725.patch): + echo 'Patch #20 (5725.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file hadrian/src/Oracles/Flag.hs Hunk #1 succeeded at 72 (offset 2 lines). Patch #24 (buildpath-abi-stability.patch): + echo 'Patch #24 (buildpath-abi-stability.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file compiler/GHC/Iface/Recomp.hs Hunk #1 succeeded at 1090 (offset 19 lines). Hunk #2 succeeded at 1125 (offset 19 lines). + echo 'Patch #26 (no-missing-haddock-file-warning.patch):' 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 1924 (offset 336 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 Patch #30 (allow-newer-llvm-versions.patch): + echo 'Patch #30 (allow-newer-llvm-versions.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file configure.ac + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.5piWxz + 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.2.6 + autoreconf configure.ac:73: warning: The macro `AC_CONFIG_HEADER' is obsolete. configure.ac:73: You should run autoupdate. ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from... configure.ac:73: the top level configure.ac:608: warning: The macro `AC_PROG_CC_C99' is obsolete. configure.ac:608: You should run autoupdate. ./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from... m4/fp_set_cflags_c99.m4:7: FP_SET_CFLAGS_C99 is expanded from... configure.ac:608: the top level configure.ac:609: warning: The macro `AC_PROG_CC_C99' is obsolete. configure.ac:609: You should run autoupdate. ./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from... m4/fp_set_cflags_c99.m4:7: FP_SET_CFLAGS_C99 is expanded from... configure.ac:609: the top level configure.ac:610: warning: The macro `AC_PROG_CC_C99' is obsolete. configure.ac:610: You should run autoupdate. ./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from... m4/fp_set_cflags_c99.m4:7: FP_SET_CFLAGS_C99 is expanded from... configure.ac:610: the top level configure.ac:611: warning: The macro `AC_PROG_CC_C99' is obsolete. configure.ac:611: You should run autoupdate. ./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from... m4/fp_set_cflags_c99.m4:7: FP_SET_CFLAGS_C99 is expanded from... configure.ac:611: the top level configure.ac:959: warning: The macro `AC_HEADER_TIME' is obsolete. configure.ac:959: You should run autoupdate. ./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from... configure.ac:959: the top level configure.ac:1151: warning: The macro `AC_TRY_RUN' is obsolete. configure.ac:1151: You should run autoupdate. ./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... m4/fp_check_timer_create.m4:5: FP_CHECK_TIMER_CREATE is expanded from... configure.ac:1151: the top level + 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 + ./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/ghc --with-system-libffi checking for gfind... no checking for find... /usr/bin/find checking for sort... /usr/bin/sort checking for GHC Git commit id... given 5383016c78fe4b2555e0aae9248bea5b42f67a78 checking for ghc... /usr/bin/ghc checking version of ghc... 9.2.6 checking build system type... riscv64-unknown-linux-gnu checking host system type... riscv64-unknown-linux-gnu checking target system type... riscv64-unknown-linux-gnu Build platform inferred as: riscv64-unknown-linux Host platform inferred as: riscv64-unknown-linux Target platform inferred as: riscv64-unknown-linux GHC build : riscv64-unknown-linux GHC host : riscv64-unknown-linux GHC target : riscv64-unknown-linux LLVM target: riscv64-unknown-linux checking for sh... /usr/bin/sh checking whether target supports a registerised ABI... yes checking whether target supports tables next to code... no checking for path to top of build tree... /builddir/build/BUILD/ghc-9.2.6 checking for -windres... no checking for windres... no checking for -dllwrap... no checking for dllwrap... no checking for -objdump... no checking for objdump... objdump checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether /usr/bin/gcc accepts -g... yes checking for /usr/bin/gcc option to enable C11 features... none needed checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for wchar.h... yes checking for minix/config.h... no checking for sys/time.h... yes checking for vfork.h... no checking whether it is safe to define __EXTENSIONS__... yes checking whether _XOPEN_SOURCE should be defined... no checking how to run the C preprocessor... /usr/bin/gcc -E checking whether GCC supports -no-pie... yes checking for -ld.lld... no checking for ld.lld... no checking for -ld.gold... no checking for ld.gold... no checking for -ld... no checking for ld... ld checking whether C compiler supports -fuse-ld=bfd... yes checking for ld.gold object merging bug (binutils 22266)... checking whether ld is GNU ld... YES checking whether ld understands --build-id... yes checking whether ld understands -no_compact_unwind... no checking whether ld understands -filelist... no checking for -nm... no checking for nm... nm checking for ranlib... ranlib checking for -strip... no checking for strip... strip checking for -libtool... no checking for libtool... no checking for -otool... no checking for otool... no checking for -install_name_tool... no checking for install_name_tool... no checking for -clang... no checking for clang... no checking for gawk... gawk checking for llc-17... no checking for llc-17.0... no checking for llc-16... no checking for llc-16.0... no checking for llc-15... no checking for llc-15.0... no checking for llc-14... no checking for llc-14.0... no checking for llc-13... llc-13 checking llc-13 version (13.0.1) is between 10 and 17... yes checking for opt-17... no checking for opt-17.0... no checking for opt-16... no checking for opt-16.0... no checking for opt-15... no checking for opt-15.0... no checking for opt-14... no checking for opt-14.0... no checking for opt-13... opt-13 checking opt-13 version (13.0.1) is between 10 and 17... yes configure: Creating links for in-tree file handling routines configure: Routines in place. Packages can now be build normally. configure: Creating links for ghci wrapper configure: done. checking whether #! works in shell scripts... yes checking version of gcc... checking version of gcc... 13.1.1 13.1.1 checking whether GCC supports -no-pie... yes checking whether C compiler supports __atomic_ builtins... yes checking whether -latomic is needed for sub-word-sized atomic operations... no checking whether -latomic is needed for 64-bit atomic operations... no checking for extra options to pass gcc when compiling via C... checking whether C compiler has an LLVM back end... no checking Setting up CFLAGS, LDFLAGS, IGNORE_LINKER_LD_FLAGS and CPPFLAGS... done checking Setting up CONF_CC_OPTS_STAGE0, CONF_GCC_LINKER_OPTS_STAGE0, CONF_LD_LINKER_OPTS_STAGE0 and CONF_CPP_OPTS_STAGE0... done checking Setting up CONF_CC_OPTS_STAGE1, CONF_GCC_LINKER_OPTS_STAGE1, CONF_LD_LINKER_OPTS_STAGE1 and CONF_CPP_OPTS_STAGE1... done checking Setting up CONF_CC_OPTS_STAGE2, CONF_GCC_LINKER_OPTS_STAGE2, CONF_LD_LINKER_OPTS_STAGE2 and CONF_CPP_OPTS_STAGE2... done checking whether CC supports --target... no checking for .subsections_via_symbols... no checking whether your assembler supports .ident directive... yes checking for GNU non-executable stack support... yes checking for a working context diff... diff -U 1 checking for a BSD-compatible install... /usr/bin/install -c checking for -ar... no checking for ar... ar checking whether ar is GNU ar... yes checking for ar arguments... q checking whether ar supports @file... yes checking for ranlib... (cached) ranlib checking whether ln -s works... yes checking for gsed... no checking for sed... /usr/bin/sed checking for time... no checking for gnutar... no checking for gtar... /usr/bin/gtar checking for bzip2... /usr/bin/bzip2 checking for gzip... /usr/bin/gzip checking for pxz... no checking for xz... /usr/bin/xz checking for gpatch... no checking for patch... /usr/bin/patch checking for autoreconf... /usr/bin/autoreconf checking for dtrace... no checking for HsColour... no checking for sphinx-build... /usr/bin/sphinx-build checking for version of sphinx-build... 5.3.0 checking for xelatex... no checking for makeindex... no checking for git... no checking for makeinfo... no checking for python3... /usr/bin/python3 checking for ghc-pkg matching /usr/bin/ghc... /usr/bin/ghc-pkg checking for happy... /usr/bin/happy checking for version of happy... 1.20.0 checking for alex... /usr/bin/alex checking for version of alex... 3.2.7.1 checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for ctype.h... yes checking for dirent.h... yes checking for dlfcn.h... yes checking for errno.h... yes checking for fcntl.h... yes checking for grp.h... yes checking for limits.h... yes checking for locale.h... yes checking for nlist.h... no checking for pthread.h... yes checking for pwd.h... yes checking for signal.h... yes checking for sys/param.h... yes checking for sys/mman.h... yes checking for sys/resource.h... yes checking for sys/select.h... yes checking for sys/time.h... (cached) yes checking for sys/timeb.h... yes checking for sys/timerfd.h... yes checking for sys/timers.h... no checking for sys/times.h... yes checking for sys/utsname.h... yes checking for sys/wait.h... yes checking for termios.h... yes checking for time.h... yes checking for utime.h... yes checking for windows.h... no checking for winsock.h... no checking for sched.h... yes checking for sys/cpuset.h... no checking for /usr/bin/gcc options needed to detect all undeclared functions... none needed checking whether environ is declared... yes checking for long long... yes checking size of char... 1 checking for char... yes checking alignment of char... 1 checking size of double... 8 checking for double... yes checking alignment of double... 8 checking size of float... 4 checking for float... yes checking alignment of float... 4 checking size of int... 4 checking for int... yes checking alignment of int... 4 checking size of long... 8 checking for long... yes checking alignment of long... 8 checking size of long long... 8 checking for long long... (cached) yes checking alignment of long long... 8 checking size of short... 2 checking for short... yes checking alignment of short... 2 checking size of unsigned char... 1 checking for unsigned char... yes checking alignment of unsigned char... 1 checking size of unsigned int... 4 checking for unsigned int... yes checking alignment of unsigned int... 4 checking size of unsigned long... 8 checking for unsigned long... yes checking alignment of unsigned long... 8 checking size of unsigned long long... 8 checking for unsigned long long... yes checking alignment of unsigned long long... 8 checking size of unsigned short... 2 checking for unsigned short... yes checking alignment of unsigned short... 2 checking size of void *... 8 checking for void *... yes checking alignment of void *... 8 checking size of int8_t... 1 checking for int8_t... yes checking alignment of int8_t... 1 checking size of uint8_t... 1 checking for uint8_t... yes checking alignment of uint8_t... 1 checking size of int16_t... 2 checking for int16_t... yes checking alignment of int16_t... 2 checking size of uint16_t... 2 checking for uint16_t... yes checking alignment of uint16_t... 2 checking size of int32_t... 4 checking for int32_t... yes checking alignment of int32_t... 4 checking size of uint32_t... 4 checking for uint32_t... yes checking alignment of uint32_t... 4 checking size of int64_t... 8 checking for int64_t... yes checking alignment of int64_t... 8 checking size of uint64_t... 8 checking for uint64_t... yes checking alignment of uint64_t... 8 checking whether byte ordering is bigendian... no checking for WinExec... no checking for GetModuleFileName... no checking for getclock... no checking for getrusage... yes checking for gettimeofday... yes checking for setitimer... yes checking for siginterrupt... yes checking for sysconf... yes checking for times... yes checking for ctime_r... yes checking for sched_setaffinity... yes checking for sched_getaffinity... yes checking for setlocale... yes checking whether ctime_r is declared... yes checking for closedir in -lmingwex... no checking for atan in -lm... yes checking for ffi_call in -lffi... yes checking for ffi.h... yes checking for dlopen in -ldl... yes checking for dlopen in -ldl... (cached) yes checking for dlinfo... yes checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for pid_t... yes checking for fork... yes checking for vfork... yes checking for pthread_condattr_setclock... yes checking for working fork... yes checking for working vfork... (cached) yes checking for an ANSI C-conforming const... yes checking whether byte ordering is bigendian... (cached) no checking whether float word order is big endian... no checking for nlist in -lelf... no checking leading underscore in symbol names... no checking whether __attribute__((visibility("hidden"))) is supported... yes checking for clock_gettime in -lrt... yes checking for clock_gettime in -lrt... (cached) yes checking for clock_gettime... yes checking for timer_settime... yes checking for timer_create... yes checking for a working timer_create(CLOCK_REALTIME)... yes checking for printf$LDBLStub... no checking whether -lpthread is needed for pthreads... checking for pthread_create... yes no checking for pthread_np.h... no checking for pthread_setname_np in -lpthread... yes checking for pthread_setname_np (Darwin)... no checking for pthread_setname_np (glibc)... yes checking for pthread_set_name_np... no checking for sys/eventfd.h... yes checking for eventfd... yes checking for __thread support... yes checking whether MAP_NORESERVE is declared... yes checking whether MADV_FREE is declared... yes checking whether MADV_DONTNEED is declared... yes checking whether to use libffi for adjustors... checking for numa.h... no checking for numaif.h... no configure: creating ./config.status config.status: creating hadrian/cfg/system.config config.status: creating hadrian/ghci-cabal config.status: creating hadrian/ghci-stack config.status: creating mk/config.mk config.status: creating mk/install.mk config.status: creating mk/project.mk config.status: creating rts/rts.cabal config.status: creating compiler/ghc.cabal config.status: creating ghc/ghc-bin.cabal config.status: creating utils/runghc/runghc.cabal config.status: creating driver/ghci/ghci-wrapper.cabal config.status: creating utils/iserv/iserv.cabal config.status: creating utils/iserv-proxy/iserv-proxy.cabal config.status: creating utils/ghc-pkg/ghc-pkg.cabal config.status: creating utils/remote-iserv/remote-iserv.cabal config.status: creating utils/gen-dll/gen-dll.cabal config.status: creating libraries/ghc-boot/ghc-boot.cabal config.status: creating libraries/ghc-boot-th/ghc-boot-th.cabal config.status: creating libraries/ghci/ghci.cabal config.status: creating libraries/ghc-heap/ghc-heap.cabal config.status: creating libraries/libiserv/libiserv.cabal config.status: creating libraries/template-haskell/template-haskell.cabal config.status: creating docs/users_guide/ghc_config.py config.status: creating docs/index.html config.status: creating libraries/prologue.txt config.status: creating distrib/configure.ac config.status: creating mk/config.h ---------------------------------------------------------------------- Configure completed successfully. Building GHC version : 9.2.6 Git commit id : 5383016c78fe4b2555e0aae9248bea5b42f67a78 Build platform : riscv64-unknown-linux Host platform : riscv64-unknown-linux Target platform : riscv64-unknown-linux Bootstrapping using : /usr/bin/ghc which is version : 9.2.6 with threaded RTS? : YES Using (for bootstrapping) : gcc Using gcc : /usr/bin/gcc which is version : 13.1.1 linker options : -fuse-ld=bfd Building a cross compiler : NO Unregisterised : NO TablesNextToCode : NO Build GMP in tree : NO hs-cpp : /usr/bin/gcc hs-cpp-flags : -E -undef -traditional ar : ar ld : ld nm : nm libtool : objdump : objdump ranlib : ranlib otool : install_name_tool : windres : dllwrap : genlib : Happy : /usr/bin/happy (1.20.0) Alex : /usr/bin/alex (3.2.7.1) sphinx-build : /usr/bin/sphinx-build xelatex : makeinfo : git : Using LLVM tools clang : llc : llc-13 opt : opt-13 HsColour was not found; documentation will not contain source links Tools to build Sphinx HTML documentation available: YES Tools to build Sphinx PDF documentation available: NO Tools to build Sphinx INFO documentation available: NO ---------------------------------------------------------------------- For a standard build of GHC (fully optimised with profiling), type (g)make. To make changes to the default build configuration, copy the file mk/build.mk.sample to mk/build.mk, and edit the settings in there. For more information on how to configure your GHC build, see https://gitlab.haskell.org/ghc/ghc/wikis/building + export LANG=C.utf8 + LANG=C.utf8 + cd hadrian ++ 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 README.md -a -x README.md ']' + 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 ' + '[' -f Setup.hs -o -f Setup.lhs ']' + '[' -d /usr/lib64/ghc-9.2.6/lib ']' + subsubdir=/lib + '[' -x Setup ']' + ghc --make -package Cabal -no-user-package-db -dynamic Setup [1 of 1] Compiling Main ( Setup.hs, Setup.o ) Linking Setup ... + LANG=C.utf8 + ./Setup --version Cabal library version 3.6.3.0 + '[' -x Setup ']' + LANG=C.utf8 ++ echo ' -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 ++ sed -e 's/ / -optc/g' ++ echo ' -Wl,-z,relro' -Wl,--as-needed -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ++ sed -e 's/ / -optl/g' + ./Setup configure --prefix=/usr --libdir=/usr/lib64 --docdir=/usr/share/licenses/ghc '--libsubdir=$compiler/lib/$pkgid' '--datasubdir=$pkgid' '--libexecsubdir=$pkgid' --ghc --dynlibdir=/usr/lib64/ghc-9.2.6/lib --global '--ghc-options= -optc-O2 -optc-fexceptions -optc-g -optc-grecord-gcc-switches -optc-pipe -optc-Wall -optc-Werror=format-security -optc-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -optc-Wp,-D_GLIBCXX_ASSERTIONS -optc-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -optc-fstack-protector-strong -optc-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -optc-fasynchronous-unwind-tables -optc-fstack-clash-protection -optc-fno-omit-frame-pointer -optl-Wl,-z,relro -optl-Wl,--as-needed -optl-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -optl-Wl,--build-id=sha1 -fhide-source-paths' Configuring hadrian-0.1.0.0... + '[' -x Setup ']' + LANG=C.utf8 + ./Setup build -j4 Preprocessing executable 'hadrian' for hadrian-0.1.0.0.. Building executable 'hadrian' for hadrian-0.1.0.0.. [ 1 of 101] Compiling Environment [ 2 of 101] Compiling Hadrian.Target src/Hadrian/Target.hs:3:1: error: Bad interface file: /usr/lib64/ghc-9.2.6/lib/shake-0.19.7/Development/Shake/Classes.hi [ 3 of 101] Compiling Hadrian.Utilities mismatched interface file profile tag (wanted "", got "u") | 3 | import Development.Shake.Classes | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Hadrian/Utilities.hs:39:1: error: Bad interface file: /usr/lib64/ghc-9.2.6/lib/extra-1.7.12/Control/Monad/Extra.hi mismatched interface file profile tag (wanted "", got "u") | 39 | import Control.Monad.Extra | ^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Hadrian/Utilities.hs:43:1: error: Bad interface file: /usr/lib64/ghc-9.2.6/lib/unordered-containers-0.2.19.1/Data/HashMap/Strict.hi mismatched interface file profile tag (wanted "", got "u") | 43 | import Data.HashMap.Strict (HashMap) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Hadrian/Utilities.hs:44:1: error: Bad interface file: /usr/lib64/ghc-9.2.6/lib/extra-1.7.12/Data/List/Extra.hi mismatched interface file profile tag (wanted "", got "u") | 44 | import Data.List.Extra | ^^^^^^^^^^^^^^^^^^^^^^ src/Hadrian/Utilities.hs:47:1: error: Bad interface file: /usr/lib64/ghc-9.2.6/lib/shake-0.19.7/Development/Shake.hi mismatched interface file profile tag (wanted "", got "u") | 47 | import Development.Shake hiding (Normal) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Hadrian/Utilities.hs:49:1: error: Bad interface file: /usr/lib64/ghc-9.2.6/lib/shake-0.19.7/Development/Shake/FilePath.hi mismatched interface file profile tag (wanted "", got "u") | 49 | import Development.Shake.FilePath | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Hadrian/Utilities.hs:54:1: error: Bad interface file: /usr/lib64/ghc-9.2.6/lib/extra-1.7.12/System/Directory/Extra.hi mismatched interface file profile tag (wanted "", got "u") | 54 | import qualified System.Directory.Extra as IO | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Hadrian/Utilities.hs:55:1: error: Bad interface file:[ 14 of 101] Compiling Settings.Parser /usr/lib64/ghc-9.2.6/lib/extra-1.7.12/System/Info/Extra.hi mismatched interface file profile tag (wanted "", got "u") | 55 | import qualified System.Info.Extra as IO | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [ 15 of 101] Compiling Stage src/Stage.hs:25:10: error: Not in scope: type constructor or class ‘Binary’ | 25 | instance Binary Stage | ^^^^^^ src/Stage.hs:26:10: error: Not in scope: type constructor or class ‘Hashable’ | 26 | instance Hashable Stage | ^^^^^^^^ src/Stage.hs:27:10: error: Not in scope: type constructor or class ‘NFData’ | 27 | instance NFData Stage | ^^^^^^ error: Bad exit status from /var/tmp/rpm-tmp.5piWxz (%build) Bad exit status from /var/tmp/rpm-tmp.5piWxz (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/ghc.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 598, 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 riscv64 --nodeps /builddir/build/SPECS/ghc.spec