tring.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 for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no BUILDSTDERR: checking for gcc oconfigure: error: failed: use --host= ption to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for library containing gethostbyname... none required checking for library containing connect... none required checking for BZ2_bzopen in -lbz2... yes checking for gzopen in -lz... yes checking for riscv64-koji-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for RPM... yes checking for RPM version... 4.15.0-beta checking rpm/rpmcallback.h usability... yes checking rpm/rpmcallback.h presence... yes checking for rpm/rpmcallback.h... yes checking rpm/rpmtypes.h usability... yes checking rpm/rpmtypes.h presence... yes checking for rpm/rpmtypes.h... yes checking rpm/rpmtd.h usability... yes checking rpm/rpmtd.h presence... yes checking for rpm/rpmtd.h... yes checking for rpmTagVal... yes checking tr1/unordered_map usability... yes checking tr1/unordered_map presence... yes checking for tr1/unordered_map... yes checking tr1/unordered_set usability... yes checking tr1/unordered_set presence... yes checking for tr1/unordered_set... yes checking for library containing sqlite3_open... -lsqlite3 checking for --disable-scripts... no checking for --disable-repomd... no checking for LIBXML2... yes checking for --enable-static-progs... no checking for tputs in -lncurses... yes checking readline/readline.h usability... yes checking readline/readline.h presence... yes checking for readline/readline.h... yes checking for rl_completion_matches in -lreadline... yes checking system architecture... RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.Y1MlKS (%build) BUILDSTDERR: Macro expanded in comment on line 23: %{name}-%{version}.tar.bz2 BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.Y1MlKS (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 700, in do 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/apt.spec