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/ghc.spec'], chrootPath='/var/lib/mock/f41-build-820623-152278/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 --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=1721260800 Wrote: /builddir/build/SRPMS/ghc-9.4.5-143.fc41.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ghc.spec'], chrootPath='/var/lib/mock/f41-build-820623-152278/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 --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=1721260800 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.CEdTyP + umask 022 + cd /builddir/build/BUILD/ghc-9.4.5-build + test -d /builddir/build/BUILD/ghc-9.4.5-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILD/ghc-9.4.5-build + /usr/bin/rm -rf /builddir/build/BUILD/ghc-9.4.5-build + /usr/bin/mkdir -p /builddir/build/BUILD/ghc-9.4.5-build + /usr/bin/mkdir -p /builddir/build/BUILD/ghc-9.4.5-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.V7F8OA + umask 022 + cd /builddir/build/BUILD/ghc-9.4.5-build + cd /builddir/build/BUILD/ghc-9.4.5-build + rm -rf ghc-9.4.5 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ghc-9.4.5-src.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd ghc-9.4.5 + /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). + echo 'Patch #2 (ghc-Cabal-install-PATH-warning.patch):' 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). + echo 'Patch #5 (6e12e3c178fe9ad16131eb3c089bd6578976f5d6.patch):' Patch #5 (6e12e3c178fe9ad16131eb3c089bd6578976f5d6.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file m4/fp_find_libffi.m4 + echo 'Patch #7 (ghc-compiler-enable-build-id.patch):' Patch #7 (ghc-compiler-enable-build-id.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file compiler/GHC/Driver/Pipeline/Execute.hs Hunk #1 succeeded at 1173 (offset 12 lines). + echo 'Patch #8 (ghc-configure-c99.patch):' 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 17159 (offset 64 lines). + echo 'Patch #9 (00dc51060881df81258ba3b3bdf447294618a4de.patch):' 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 + echo 'Patch #10 (10922.patch):' Patch #10 (10922.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file docs/users_guide/flags.py Patch #11 (10928.patch): + echo 'Patch #11 (10928.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file hadrian/hadrian.cabal patching file hadrian/src/Hadrian/Haskell/Cabal/Parse.hs + rm libffi-tarballs/libffi-3.3+git20200501+4f9e20a.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-hadrian-s390x-rts--qg.patch): + echo 'Patch #16 (ghc-hadrian-s390x-rts--qg.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file hadrian/hadrian.cabal + echo 'Patch #17 (11662.patch):' Patch #17 (11662.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file compiler/GHC/CmmToLlvm/Data.hs 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 1923 (offset 335 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 145 (offset 8 lines). Hunk #2 succeeded at 154 (offset 8 lines). + echo 'Patch #30 (sphinx7.patch):' Patch #30 (sphinx7.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file docs/users_guide/rtd-theme/layout.html Patch #40 (cabal-add-riscv64.patch): + echo 'Patch #40 (cabal-add-riscv64.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file libraries/Cabal/Cabal-syntax/src/Distribution/System.hs patching file libraries/Cabal/Cabal/src/Distribution/Simple/PreProcess.hs Patch #41 (dd38aca95ac25adc9888083669b32ff551151259.patch): + echo 'Patch #41 (dd38aca95ac25adc9888083669b32ff551151259.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file hadrian/src/Oracles/Setting.hs Hunk #1 succeeded at 292 (offset -10 lines). Patch #42 (ghc-modern-c-fix.patch): + echo 'Patch #42 (ghc-modern-c-fix.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .orig --fuzz=0 patching file compiler/GHC/HsToCore/Foreign/Decl.hs Hunk #1 succeeded at 681 (offset 121 lines). + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Gbp6Ei + umask 022 + cd /builddir/build/BUILD/ghc-9.4.5-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 -fno-omit-frame-pointer -mno-omit-leaf-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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -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 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + export RUSTFLAGS + 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.4.5 + autoupdate configure.ac:900: warning: Update your code to rely only on HAVE_SYS_TIME_H, then remove this warning and the obsolete code below it. All current systems provide time.h; it need not be checked for. Not all systems provide sys/time.h, but those that do, all allow you to include it and time.h simultaneously. + 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 --disable-ld-override checking for gfind... no checking for find... /usr/bin/find checking for sort... /usr/bin/sort checking for GHC Git commit id... given a213d3676550a0e4d542172de539c0cfa2662431 checking for ghc... /usr/bin/ghc checking version of ghc... 9.4.5 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 configure: GHC build : riscv64-unknown-linux configure: GHC host : riscv64-unknown-linux configure: GHC 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... yes checking for path to top of build tree... /builddir/build/BUILD/ghc-9.4.5-build/ghc-9.4.5 checking for gcc... /usr/bin/gcc checking for g++... /usr/bin/g++ checking for nm... /usr/bin/nm checking for ar... /usr/bin/ar checking for ranlib... /usr/bin/ranlib checking for objdump... /usr/bin/objdump checking for dllwrap... no checking for windres... no checking for genlib... no 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 we are using the GNU C compiler... yes checking whether /usr/bin/gcc accepts -g... yes checking for /usr/bin/gcc option to accept ISO C89... none needed checking whether we are using the GNU C++ compiler... yes checking whether /usr/bin/g++ accepts -g... yes checking how to run the C preprocessor... /usr/bin/gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking how to run the C preprocessor... /usr/bin/gcc -E checking for /usr/bin/gcc option to accept ISO C99... none needed checking for gcc option to accept ISO C99... none needed checking for /usr/bin/gcc option to accept ISO C99... none needed checking for /usr/bin/gcc option to accept ISO C99... none needed checking for -ld... no checking for ld... ld 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... /usr/bin/nm checking for ranlib... /usr/bin/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-15... no checking for llc-15.0... no checking for llc15... no checking for llc-14... llc-14 checking llc-14 version (14.0.5) is between 10 and 15... yes checking for opt-15... no checking for opt-15.0... no checking for opt15... no checking for opt-14... opt-14 checking opt-14 version (14.0.5) is between 10 and 15... yes configure: Creating links for headers shared by the RTS and compiler configure: done. 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... 14.1.1 14.1.1 checking whether CC 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 gcc supports --target... no checking whether /usr/bin/gcc supports --target... no checking whether /usr/bin/gcc supports --target... no checking C++ standard library flavour... libstdc++ checking for linkage against 'stdc++'... success 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 whether /usr/bin/ar is GNU ar... yes checking for ar arguments... q checking whether /usr/bin/ar supports @file... yes checking whether /usr/bin/ar supports -L... /usr/bin/ar: conftest.a: No such file or directory no checking for ranlib... (cached) /usr/bin/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... 7.2.6 checking for xelatex... no checking for makeindex... no checking for git... no checking for makeinfo... no checking for cabal... 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.1.1 checking for alex... /usr/bin/alex checking for version of alex... 3.3.0.0 checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking nlist.h usability... no checking nlist.h presence... no checking for nlist.h... no checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/timeb.h usability... yes checking sys/timeb.h presence... yes checking for sys/timeb.h... yes checking sys/timerfd.h usability... yes checking sys/timerfd.h presence... yes checking for sys/timerfd.h... yes checking sys/timers.h usability... no checking sys/timers.h presence... no checking for sys/timers.h... no checking sys/times.h usability... yes checking sys/times.h presence... yes checking for sys/times.h... yes checking sys/utsname.h usability... yes checking sys/utsname.h presence... yes checking for sys/utsname.h... yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking utime.h usability... yes checking utime.h presence... yes checking for utime.h... yes checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking winsock.h usability... no checking winsock.h presence... no checking for winsock.h... no checking sched.h usability... yes checking sched.h presence... yes checking for sched.h... yes checking for sys/cpuset.h... no checking whether environ is declared... yes checking whether time.h and sys/time.h may both be included... 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 for uselocale... yes checking whether ctime_r is declared... yes checking for atan in -lm... yes checking for ffi_call in -lffi... yes checking ffi.h usability... yes checking ffi.h presence... 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 vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... 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 for pthread_condattr_setclock... yes checking whether -lpthread is needed for pthreads... checking for pthread_create... yes no checking pthread_np.h usability... no checking pthread_np.h presence... 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_setname_np (NetBSD)... no checking for pthread_set_name_np... no checking sys/eventfd.h usability... yes checking sys/eventfd.h presence... yes 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... yes checking numa.h usability... no checking numa.h presence... no checking for numa.h... no checking numaif.h usability... no checking numaif.h presence... no checking for numaif.h... no configure: creating ./config.status config.status: creating mk/system-cxx-std-lib-1.0.conf 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/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 libraries/prologue.txt config.status: creating distrib/configure.ac config.status: creating mk/config.h config.status: creating compiler/ghc-llvm-version.h ---------------------------------------------------------------------- Configure completed successfully. Building GHC version : 9.4.5 Git commit id : a213d3676550a0e4d542172de539c0cfa2662431 Build platform : riscv64-unknown-linux Host platform : riscv64-unknown-linux Target platform : riscv64-unknown-linux Bootstrapping using : /usr/bin/ghc which is version : 9.4.5 with threaded RTS? : YES can boot with make? : Using (for bootstrapping) : gcc Using gcc : /usr/bin/gcc which is version : 14.1.1 linker options : Building a cross compiler : NO Unregisterised : NO TablesNextToCode : YES Build GMP in tree : NO hs-cpp : /usr/bin/gcc hs-cpp-flags : -E -undef -traditional ar : /usr/bin/ar ld : ld nm : /usr/bin/nm libtool : libtool objdump : /usr/bin/objdump ranlib : /usr/bin/ranlib otool : otool install_name_tool : install_name_tool windres : dllwrap : genlib : Happy : /usr/bin/happy (1.20.1.1) Alex : /usr/bin/alex (3.3.0.0) sphinx-build : /usr/bin/sphinx-build xelatex : makeinfo : git : cabal-install : Using LLVM tools clang : clang llc : llc-14 opt : opt-14 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\)') ==== Build %{pkg_name}-9.4.5 ==== + '[' -f README.md -a -x README.md ']' + echo -e '\n==== Build %{pkg_name}-9.4.5 ====' + '[' -f Setup.hs -o -f Setup.lhs ']' + '[' -d /usr/lib64/ghc-9.4.5/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 ++ 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 -fno-omit-frame-pointer -mno-omit-leaf-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.4.5/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-fno-omit-frame-pointer -optc-mno-omit-leaf-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 103] Compiling Environment [ 2 of 103] Compiling Hadrian.Target [ 3 of 103] Compiling Hadrian.Utilities [ 4 of 103] Compiling Hadrian.Package /var/tmp/rpm-tmp.Gbp6Ei: line 104: 3965251 Segmentation fault (core dumped) ( cd hadrian; for f in $(ls | grep -i -e '^\(ANNOUNCE\|AUTHORS\|CHANGELOG\|CHANGES\|CONTRIBUTORS\|README\|TODO\)'); do if [ -f $f -a -x $f ]; then chmod a-x $f; fi; done; echo -e "\n==== Build %{pkg_name}-9.4.5 ===="; if ! [ -f Setup.hs -o -f Setup.lhs ]; then cp /usr/share/ghc-rpm-macros/Setup.hs .; fi; if [ -d "/usr/lib64/ghc-9.4.5/lib" ]; then subsubdir=/lib; fi; [ -x Setup ] || ghc --make -package Cabal -no-user-package-db -dynamic Setup; LANG=C.utf8; ./Setup configure --prefix=/usr --libdir=/usr/lib64 --docdir=/usr/share/licenses/ghc --libsubdir='$compiler'${subsubdir}/'$pkgid' --datasubdir='$pkgid' --libexecsubdir='$pkgid' --ghc --dynlibdir=/usr/lib64/ghc-9.4.5${subsubdir} --global --ghc-options="${CFLAGS:+$(echo ' '$CFLAGS | sed -e 's/ / -optc/g')} ${LDFLAGS:+$(echo ' '$LDFLAGS | sed -e 's/ / -optl/g')} -fhide-source-paths" $cabal_configure_extra_options; [ -x Setup ] || ghc --make -package Cabal -no-user-package-db -dynamic Setup; LANG=C.utf8; ./Setup build -j${RPM_BUILD_NCPUS} ) RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.Gbp6Ei (%build) Bad exit status from /var/tmp/rpm-tmp.Gbp6Ei (%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/ghc.spec