Mock Version: 2.10 Mock Version: 2.10 Mock Version: 2.10 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/elfutils.spec'], chrootPath='/var/lib/mock/dist-an23-riscv64-build-106333-45614/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=25920000uid=991gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.uws_td5i:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.uws_td5i:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '03074da112684275a68c5cfa880feec4', '-D', '/var/lib/mock/dist-an23-riscv64-build-106333-45614/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.uws_td5i:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/elfutils.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1646697600 Wrote: /builddir/build/SRPMS/elfutils-0.186-1.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/elfutils.spec'], chrootPath='/var/lib/mock/dist-an23-riscv64-build-106333-45614/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=25920000uid=991gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.uws_td5i:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.uws_td5i:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'ea3ab059fe0f4dc396ea294d6db11c5f', '-D', '/var/lib/mock/dist-an23-riscv64-build-106333-45614/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.uws_td5i:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/elfutils.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1646697600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.esJhzN + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf elfutils-0.186 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/elfutils-0.186.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd elfutils-0.186 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + autoreconf -f -v -i autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: running: autopoint --force autopoint: using AM_GNU_GETTEXT_REQUIRE_VERSION instead of AM_GNU_GETTEXT_VERSION Copying file po/Makevars.template autoreconf: running: aclocal --force -I m4 autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: /usr/bin/autoconf --force configure.ac:90: warning: The macro `AC_PROG_CC_C99' is obsolete. configure.ac:90: You should run autoupdate. ./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from... configure.ac:90: the top level configure.ac:93: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete ./lib/autoconf/programs.m4:716: _AC_PROG_LEX is expanded from... ./lib/autoconf/programs.m4:709: AC_PROG_LEX is expanded from... aclocal.m4:1072: AM_PROG_LEX is expanded from... configure.ac:93: the top level configure.ac:366: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:366: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... m4/zip.m4:5: eu_ZIPLIB is expanded from... configure.ac:366: the top level configure.ac:374: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:374: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... m4/zip.m4:5: eu_ZIPLIB is expanded from... configure.ac:374: the top level configure.ac:378: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:378: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... m4/zip.m4:5: eu_ZIPLIB is expanded from... configure.ac:378: the top level configure.ac:381: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:381: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... m4/zip.m4:5: eu_ZIPLIB is expanded from... configure.ac:381: the top level configure.ac:671: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:671: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... m4/biarch.m4:28: utrace_BIARCH is expanded from... configure.ac:671: the top level configure.ac:708: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:708: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... configure.ac:708: the top level configure.ac:735: warning: The macro `AC_HELP_STRING' is obsolete. configure.ac:735: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... configure.ac:735: the top level autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing autoreconf: 'config/config.sub' is updated autoreconf: 'config/config.guess' is updated autoreconf: Leaving directory '.' + find . -name '*.sh' '!' -perm -0100 -print + xargs chmod +x + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.NWFSGe + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -g' + export CFLAGS + CXXFLAGS='-O2 -g' + export CXXFLAGS + FFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-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 elfutils-0.186 + RPM_OPT_FLAGS='-O2 -g' + RPM_OPT_FLAGS='-O2 -g -Wformat' + trap 'cat config.log' EXIT + CFLAGS='-O2 -g' + export CFLAGS + CXXFLAGS='-O2 -g' + export CXXFLAGS + FFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-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 + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2022-07-21 00:35:59.761139036 +0800 +++ ./configure 2022-07-21 00:36:30.921138427 +0800 @@ -1910,7 +1910,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config/config.sub + '[' -f /usr/lib/rpm/anolis/config.sub ']' + /usr/bin/rm -f ./config/config.sub ++ basename ./config/config.sub + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.sub ./config/config.sub '/usr/lib/rpm/anolis/config.sub' -> './config/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config/config.guess + '[' -f /usr/lib/rpm/anolis/config.guess ']' + /usr/bin/rm -f ./config/config.guess ++ basename ./config/config.guess + /usr/bin/cp -fv /usr/lib/rpm/anolis/config.guess ./config/config.guess '/usr/lib/rpm/anolis/config.guess' -> './config/config.guess' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld' ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-koji-linux-gnu --host=riscv64-koji-linux-gnu --program-prefix=eu- --disable-dependency-tracking --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 --infodir=/usr/share/info 'CFLAGS=-O2 -g -Wformat' --enable-debuginfod-urls=https://debuginfod.fedoraproject.org/ configure: loading site script /usr/share/config.site checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking whether make supports nested variables... (cached) yes checking build system type... riscv64-koji-linux-gnu checking host system type... riscv64-koji-linux-gnu checking whether make supports the include directive... yes (GNU style) checking for riscv64-koji-linux-gnu-gcc... gcc 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... configure: error: in `/builddir/build/BUILD/elfutils-0.186': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details + cat config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by elfutils configure 0.186, which was generated by GNU Autoconf 2.71. Invocation command line was $ ./configure --build=riscv64-koji-linux-gnu --host=riscv64-koji-linux-gnu --program-prefix=eu- --disable-dependency-tracking --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 --infodir=/usr/share/info 'CFLAGS=-O2 -g -Wformat' --enable-debuginfod-urls=https://debuginfod.fedoraproject.org/ ## --------- ## ## Platform. ## ## --------- ## hostname = ea3ab059fe0f4dc396ea294d6db11c5f uname -m = riscv64 uname -r = 5.14.16-101.0.riscv64.fc33.riscv64 uname -s = Linux uname -v = #1 SMP Tue Nov 9 05:04:52 EST 2021 /usr/bin/uname -p = riscv64 /bin/uname -X = unknown /bin/arch = riscv64 /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/bin/ PATH: /bin/ PATH: /usr/sbin/ PATH: /sbin/ PATH: /usr/local/sbin/ ## ----------- ## ## Core tests. ## ## ----------- ## configure:2610: loading site script /usr/share/config.site | # This is the config.site file to satisfy FHS defaults when installing below | # /usr. | # | # You may override this file by your config.site using the CONFIG_SITE env | # variable. | # | # Note: This file includes also RHEL/Fedora fix for installing libraries into | # "/lib/lib64" on 64bit systems. | | if test -n "$host"; then | # skip when cross-compiling | return 0 | fi | | if test "$prefix" = /usr \ | || { test "$prefix" = NONE && test "$ac_default_prefix" = /usr ; } | then | test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc | test "$sharedstatedir" = '${prefix}/com' && sharedstatedir=/var | test "$localstatedir" = '${prefix}/var' && localstatedir=/var | | ARCH=`uname -m` | for i in x86_64 ppc64 s390x aarch64; do | if test $ARCH = $i; then | test "$libdir" = '${exec_prefix}/lib' && libdir='${exec_prefix}/lib64' | break | fi | done | fi configure:3186: looking for aux files: config.rpath ar-lib compile config.guess config.sub missing install-sh configure:3199: trying ./config/ configure:3228: ./config/config.rpath found configure:3228: ./config/ar-lib found configure:3228: ./config/compile found configure:3228: ./config/config.guess found configure:3228: ./config/config.sub found configure:3228: ./config/missing found configure:3210: ./config/install-sh found configure:3384: checking for a BSD-compatible install configure:3457: result: /usr/bin/install -c configure:3468: checking whether build environment is sane configure:3523: result: yes configure:3682: checking for a race-free mkdir -p configure:3726: result: /usr/bin/mkdir -p configure:3733: checking for gawk configure:3754: found /usr/bin/gawk configure:3765: result: gawk configure:3776: checking whether make sets $(MAKE) configure:3799: result: yes configure:3829: checking whether make supports nested variables configure:3847: result: yes configure:3984: checking whether to enable maintainer-specific portions of Makefiles configure:3994: result: no configure:4020: checking whether make supports nested variables configure:4038: result: yes configure:4068: checking build system type configure:4083: result: riscv64-koji-linux-gnu configure:4103: checking host system type configure:4117: result: riscv64-koji-linux-gnu configure:4197: checking whether make supports the include directive configure:4212: make -f confmf.GNU && cat confinc.out this is the am__doit target configure:4215: $? = 0 configure:4234: result: yes (GNU style) configure:4265: checking for riscv64-koji-linux-gnu-gcc configure:4297: result: gcc configure:4695: checking for C compiler version configure:4704: gcc --version >&5 gcc (GCC) 12.1.0 20220506 (Anolis OS 12.1.0-0) Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:4715: $? = 0 configure:4704: gcc -v >&5 Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/riscv64-redhat-linux/12/lto-wrapper Target: riscv64-redhat-linux Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,ada,go,d,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.openanolis.cn --enable-shared --enable-threads=posix --enable-checking=release --disable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-releases-gcc-12.1.0/obj-riscv64-redhat-linux/isl-install --with-arch=rv64imafdc_zicsr_zifencei --with-abi=lp64d --with-multilib-list=lp64d --build=riscv64-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.1.0 20220506 (Anolis OS 12.1.0-0) (GCC) configure:4715: $? = 0 configure:4704: gcc -V >&5 gcc: error: unrecognized command-line option '-V' gcc: fatal error: no input files compilation terminated. configure:4715: $? = 1 configure:4704: gcc -qversion >&5 gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'? gcc: fatal error: no input files compilation terminated. configure:4715: $? = 1 configure:4704: gcc -version >&5 gcc: error: unrecognized command-line option '-version' gcc: fatal error: no input files compilation terminated. configure:4715: $? = 1 configure:4735: checking whether the C compiler works configure:4757: gcc -O2 -g -Wformat -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 conftest.c >&5 conftest.c: warning: -D_FORTIFY_SOURCE not defined configure:4761: $? = 0 configure:4811: result: yes configure:4814: checking for C compiler default output file name configure:4816: result: a.out configure:4822: checking for suffix of executables configure:4829: gcc -o conftest -O2 -g -Wformat -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 conftest.c >&5 conftest.c: warning: -D_FORTIFY_SOURCE not defined configure:4833: $? = 0 configure:4856: result: configure:4878: checking whether we are cross compiling configure:4886: gcc -o conftest -O2 -g -Wformat -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 conftest.c >&5 conftest.c: warning: -D_FORTIFY_SOURCE not defined /usr/bin/ld: /tmp/ccey3SI5.o: relocation R_RISCV_HI20 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: unresolvable R_RISCV_CALL relocation against symbol `fopen@@GLIBC_2.27' collect2: error: ld returned 1 exit status configure:4890: $? = 1 configure:4897: ./conftest ./configure: line 4899: ./conftest: No such file or directory configure:4901: $? = 127 configure:4908: error: in `/builddir/build/BUILD/elfutils-0.186': configure:4910: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=riscv64-koji-linux-gnu ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set=set ac_cv_env_CC_value=gcc ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-O2 -g -Wformat' ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXFLAGS_set=set ac_cv_env_CXXFLAGS_value='-O2 -g' ac_cv_env_CXX_set=set ac_cv_env_CXX_value=g++ ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_PKG_CONFIG_LIBDIR_set= ac_cv_env_PKG_CONFIG_LIBDIR_value= ac_cv_env_PKG_CONFIG_PATH_set=set ac_cv_env_PKG_CONFIG_PATH_value=:/usr/lib64/pkgconfig:/usr/share/pkgconfig ac_cv_env_PKG_CONFIG_set= ac_cv_env_PKG_CONFIG_value= ac_cv_env_YACC_set= ac_cv_env_YACC_value= ac_cv_env_YFLAGS_set= ac_cv_env_YFLAGS_value= ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=riscv64-koji-linux-gnu ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=riscv64-koji-linux-gnu ac_cv_env_libarchive_CFLAGS_set= ac_cv_env_libarchive_CFLAGS_value= ac_cv_env_libarchive_LIBS_set= ac_cv_env_libarchive_LIBS_value= ac_cv_env_libcurl_CFLAGS_set= ac_cv_env_libcurl_CFLAGS_value= ac_cv_env_libcurl_LIBS_set= ac_cv_env_libcurl_LIBS_value= ac_cv_env_libmicrohttpd_CFLAGS_set= ac_cv_env_libmicrohttpd_CFLAGS_value= ac_cv_env_libmicrohttpd_LIBS_set= ac_cv_env_libmicrohttpd_LIBS_value= ac_cv_env_sqlite3_CFLAGS_set= ac_cv_env_sqlite3_CFLAGS_value= ac_cv_env_sqlite3_LIBS_set= ac_cv_env_sqlite3_LIBS_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_host=riscv64-koji-linux-gnu ac_cv_path_install='/usr/bin/install -c' ac_cv_path_mkdir=/usr/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_CC=gcc ac_cv_prog_make_make_set=yes am_cv_make_support_nested_variables=yes ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} '\''/builddir/build/BUILD/elfutils-0.186/config/missing'\'' aclocal-1.16' ADD_STACK_USAGE_WARNING_FALSE='' ADD_STACK_USAGE_WARNING_TRUE='' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='#' AMTAR='$${TAR-tar}' AM_BACKSLASH='\' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='0' AM_V='$(V)' AR='' AUTOCONF='${SHELL} '\''/builddir/build/BUILD/elfutils-0.186/config/missing'\'' autoconf' AUTOHEADER='${SHELL} '\''/builddir/build/BUILD/elfutils-0.186/config/missing'\'' autoheader' AUTOMAKE='${SHELL} '\''/builddir/build/BUILD/elfutils-0.186/config/missing'\'' automake-1.16' AWK='gawk' BIARCH_FALSE='' BIARCH_TRUE='' BUILD_STATIC_FALSE='' BUILD_STATIC_TRUE='' BZ2_LIB='' BZLIB_FALSE='' BZLIB_TRUE='' CC='gcc' CCDEPMODE='' CC_BIARCH='' CFLAGS='-O2 -g -Wformat' CPP='' CPPFLAGS='' CSCOPE='cscope' CTAGS='ctags' CXX='g++' CXXDEPMODE='' CXXFLAGS='-O2 -g' CYGPATH_W='echo' DEBUGINFOD_FALSE='' DEBUGINFOD_TRUE='' DEBUGINFOD_URLS='https://debuginfod.fedoraproject.org/ ' DEBUGPRED='' DEFS='' DEMANGLE_FALSE='' DEMANGLE_TRUE='' DEPDIR='.deps' DUMMY_LIBDEBUGINFOD_FALSE='' DUMMY_LIBDEBUGINFOD_TRUE='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' ETAGS='etags' EXEEXT='' FATAL_TEXTREL_FALSE='' FATAL_TEXTREL_TRUE='' GCOV='' GCOV_FALSE='' GCOV_TRUE='' GENHTML='' GETTEXT_MACRO_VERSION='' GMSGFMT='' GMSGFMT_015='' GPROF_FALSE='' GPROF_TRUE='' GREP='' HAVE_BISON='' HAVE_BUNZIP2='' HAVE_CXX11='' HAVE_DUPLICATED_COND_WARNING_FALSE='' HAVE_DUPLICATED_COND_WARNING_TRUE='' HAVE_FLEX='' HAVE_GAWK='' HAVE_IMPLICIT_FALLTHROUGH_5_WARNING_FALSE='' HAVE_IMPLICIT_FALLTHROUGH_5_WARNING_TRUE='' HAVE_IMPLICIT_FALLTHROUGH_WARNING_FALSE='' HAVE_IMPLICIT_FALLTHROUGH_WARNING_TRUE='' HAVE_NO_PACKED_NOT_ALIGNED_WARNING_FALSE='' HAVE_NO_PACKED_NOT_ALIGNED_WARNING_TRUE='' HAVE_NULL_DEREFERENCE_WARNING_FALSE='' HAVE_NULL_DEREFERENCE_WARNING_TRUE='' HAVE_STDATOMIC_H_FALSE='' HAVE_STDATOMIC_H_TRUE='' HAVE_TRAMPOLINES_WARNING_FALSE='' HAVE_TRAMPOLINES_WARNING_TRUE='' HAVE_VALGRIND='' HAVE_ZSTD='' HAVE_ZSTD_FALSE='' HAVE_ZSTD_TRUE='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_ELFH_FALSE='' INSTALL_ELFH_TRUE='' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' INTLLIBS='' INTL_MACOSX_LIBS='' LCOV='' LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' LEX='' LEXLIB='' LEX_OUTPUT_ROOT='' LIBDEBUGINFOD_FALSE='' LIBDEBUGINFOD_SONAME='libdebuginfod.so.1' LIBDEBUGINFOD_TRUE='' LIBICONV='' LIBINTL='' LIBLZMA='' LIBOBJS='' LIBS='' LIBZSTD='' LTLIBICONV='' LTLIBINTL='' LTLIBOBJS='' LZMA_FALSE='' LZMA_TRUE='' MAINT='#' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='#' MAKEINFO='${SHELL} '\''/builddir/build/BUILD/elfutils-0.186/config/missing'\'' makeinfo' MKDIR_P='/usr/bin/mkdir -p' MSGFMT='' MSGMERGE='' MSGMERGE_FOR_MSGFMT_OPTION='' NM='' OBJEXT='' PACKAGE='elfutils' PACKAGE_BUGREPORT='https://sourceware.org/bugzilla' PACKAGE_NAME='elfutils' PACKAGE_STRING='elfutils 0.186' PACKAGE_TARNAME='elfutils' PACKAGE_URL='http://elfutils.org/' PACKAGE_VERSION='0.186' PATH_SEPARATOR=':' PKG_CONFIG='' PKG_CONFIG_LIBDIR='' PKG_CONFIG_PATH=':/usr/lib64/pkgconfig:/usr/share/pkgconfig' POSUB='' RANLIB='' READELF='' SANE_LOGICAL_OP_WARNING_FALSE='' SANE_LOGICAL_OP_WARNING_TRUE='' SED='' SET_MAKE='' SHELL='/bin/sh' STRIP='' SYMBOL_VERSIONING_FALSE='' SYMBOL_VERSIONING_TRUE='' TESTS_RPATH_FALSE='' TESTS_RPATH_TRUE='' USE_LOCKS_FALSE='' USE_LOCKS_TRUE='#' USE_NLS='' USE_VALGRIND_FALSE='' USE_VALGRIND_TRUE='' USE_VG_ANNOTATIONS_FALSE='' USE_VG_ANNOTATIONS_TRUE='' VERSION='0.186' XGETTEXT='' XGETTEXT_015='' XGETTEXT_EXTRA_OPTIONS='' YACC='' YFLAGS='' ZLIB_FALSE='' ZLIB_TRUE='' ZSTD_FALSE='' ZSTD_TRUE='' ac_ct_AR='' ac_ct_CC='' ac_ct_CXX='' am__EXEEXT_FALSE='' am__EXEEXT_TRUE='' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='' am__fastdepCXX_FALSE='' am__fastdepCXX_TRUE='' am__include='include' am__isrc='' am__leading_dot='.' am__nodep='' am__quote='' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' argp_LDADD='' bindir='/usr/bin' build='riscv64-koji-linux-gnu' build_alias='riscv64-koji-linux-gnu' build_cpu='riscv64' build_os='linux-gnu' build_vendor='koji' datadir='/usr/share' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dso_LDFLAGS='' dvidir='${docdir}' eu_version='' exec_prefix='/usr' fpic_CFLAGS='' fpie_CFLAGS='' fts_LIBS='' host='riscv64-koji-linux-gnu' host_alias='riscv64-koji-linux-gnu' host_cpu='riscv64' host_os='linux-gnu' host_vendor='koji' htmldir='${docdir}' includedir='/usr/include' infodir='/usr/share/info' install_sh='${SHELL} /builddir/build/BUILD/elfutils-0.186/config/install-sh' libarchive_CFLAGS='' libarchive_LIBS='' libcurl_CFLAGS='' libcurl_LIBS='' libdir='/usr/lib64' libexecdir='/usr/libexec' libmicrohttpd_CFLAGS='' libmicrohttpd_LIBS='' localedir='${datarootdir}/locale' localstatedir='/var' mandir='/usr/share/man' mkdir_p='$(MKDIR_P)' obstack_LIBS='' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/usr' program_transform_name='s&^&eu-&' psdir='${docdir}' runstatedir='${localstatedir}/run' sbindir='/usr/sbin' sharedstatedir='/var/lib' sqlite3_CFLAGS='' sqlite3_LIBS='' sysconfdir='/etc' target_alias='' zip_LIBS='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "elfutils" #define PACKAGE_TARNAME "elfutils" #define PACKAGE_VERSION "0.186" #define PACKAGE_STRING "elfutils 0.186" #define PACKAGE_BUGREPORT "https://sourceware.org/bugzilla" #define PACKAGE_URL "http://elfutils.org/" #define PACKAGE "elfutils" #define VERSION "0.186" #define DEFAULT_AR_DETERMINISTIC false configure: exit 77 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.NWFSGe (%build) Bad exit status from /var/tmp/rpm-tmp.NWFSGe (%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: # /usr/bin/systemd-nspawn -q -M ea3ab059fe0f4dc396ea294d6db11c5f -D /var/lib/mock/dist-an23-riscv64-build-106333-45614/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.uws_td5i:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;\007" --setenv=PS1= \s-\v\$ --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/elfutils.spec