+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/patchelf.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.cgtugp + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf patchelf-0.8 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/patchelf-0.8.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd patchelf-0.8 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (patchelf-copy-attr.patch):' Patch #0 (patchelf-copy-attr.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .copy-attr --fuzz=0 patching file configure.ac patching file src/patchelf.cc + echo 'Patch #1 (patchelf-0.8-Quick-fix-for-47.patch):' Patch #1 (patchelf-0.8-Quick-fix-for-47.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .pie --fuzz=0 patching file src/patchelf.cc Hunk #1 succeeded at 238 (offset -10 lines). + rm src/elf.h + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.M0LGLJ + umask 022 + cd /builddir/build/BUILD + cd patchelf-0.8 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --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 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking for riscv64-redhat-linux-gnu-gcc... no checking for 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... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... none checking whether gcc and cc understand -c and -o together... yes checking for riscv64-redhat-linux-gnu-g++... no checking for riscv64-redhat-linux-gnu-c++... no checking for riscv64-redhat-linux-gnu-gpp... no checking for riscv64-redhat-linux-gnu-aCC... no checking for riscv64-redhat-linux-gnu-CC... no checking for riscv64-redhat-linux-gnu-cxx... no checking for riscv64-redhat-linux-gnu-cc++... no checking for riscv64-redhat-linux-gnu-cl.exe... no checking for riscv64-redhat-linux-gnu-FCC... no checking for riscv64-redhat-linux-gnu-KCC... no checking for riscv64-redhat-linux-gnu-RCC... no checking for riscv64-redhat-linux-gnu-xlC_r... no checking for riscv64-redhat-linux-gnu-xlC... no checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... none checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating tests/Makefile config.status: creating patchelf.spec config.status: executing depfiles commands + make -j4 CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /builddir/build/BUILD/patchelf-0.8/build-aux/missing --run aclocal-1.12 /builddir/build/BUILD/patchelf-0.8/build-aux/missing: line 51: aclocal-1.12: command not found WARNING: 'aclocal-1.12' is missing on your system. You should only need it if you modified 'acinclude.m4' or 'configure.ac'. You might want to install the Automake and Perl packages. Grab them from any GNU archive site. CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /builddir/build/BUILD/patchelf-0.8/build-aux/missing --run autoconf cd . && /bin/sh /builddir/build/BUILD/patchelf-0.8/build-aux/missing --run automake-1.12 --foreign /builddir/build/BUILD/patchelf-0.8/build-aux/missing: line 51: automake-1.12: command not found WARNING: 'automake-1.12' is missing on your system. You should only need it if you modified 'Makefile.am', 'acinclude.m4' or 'configure.ac'. You might want to install the Automake and Perl packages. Grab them from any GNU archive site. /bin/sh ./config.status --recheck running CONFIG_SHELL=/bin/sh /bin/sh ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --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 build_alias=riscv64-redhat-linux-gnu host_alias=riscv64-redhat-linux-gnu CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 LDFLAGS=-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld CXXFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 --no-create --no-recursion checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking for riscv64-redhat-linux-gnu-gcc... no checking for 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... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... none checking whether gcc and cc understand -c and -o together... yes checking for riscv64-redhat-linux-gnu-g++... no checking for riscv64-redhat-linux-gnu-c++... no checking for riscv64-redhat-linux-gnu-gpp... no checking for riscv64-redhat-linux-gnu-aCC... no checking for riscv64-redhat-linux-gnu-CC... no checking for riscv64-redhat-linux-gnu-cxx... no checking for riscv64-redhat-linux-gnu-cc++... no checking for riscv64-redhat-linux-gnu-cl.exe... no checking for riscv64-redhat-linux-gnu-FCC... no checking for riscv64-redhat-linux-gnu-KCC... no checking for riscv64-redhat-linux-gnu-RCC... no checking for riscv64-redhat-linux-gnu-xlC_r... no checking for riscv64-redhat-linux-gnu-xlC... no checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... none checking how to run the C preprocessor... 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 attr/libattr.h usability... yes checking attr/libattr.h presence... yes checking for attr/libattr.h... yes checking attr/error_context.h usability... yes checking attr/error_context.h presence... yes checking for attr/error_context.h... yes checking for library containing attr_copy_file... -lattr checking for attr_copy_file... yes checking sys/acl.h usability... yes checking sys/acl.h presence... yes checking for sys/acl.h... yes checking acl/libacl.h usability... yes checking acl/libacl.h presence... yes checking for acl/libacl.h... yes checking for library containing perm_copy_file... -lacl checking for perm_copy_file... yes checking that generated files are newer than configure... done configure: creating ./config.status /bin/sh ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating tests/Makefile config.status: creating patchelf.spec config.status: executing depfiles commands Making all in src make[1]: Entering directory '/builddir/build/BUILD/patchelf-0.8/src' g++ -DPACKAGE_NAME=\"patchelf\" -DPACKAGE_TARNAME=\"patchelf\" -DPACKAGE_VERSION=\"0.8\" -DPACKAGE_STRING=\"patchelf\ 0.8\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"patchelf\" -DVERSION=\"0.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ATTR_LIBATTR_H=1 -DHAVE_ATTR_ERROR_CONTEXT_H=1 -DHAVE_ATTR_COPY_FILE=1 -DHAVE_SYS_ACL_H=1 -DHAVE_ACL_LIBACL_H=1 -DHAVE_PERM_COPY_FILE=1 -I. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -c -o patchelf.o patchelf.cc In file included from patchelf.cc:10:0: patchelf.cc: In instantiation of 'void ElfFile::rewriteSectionsLibrary() [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym]': patchelf.cc:770:31: required from 'void ElfFile::rewriteSections() [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym]' patchelf.cc:1141:9: required from 'void patchElf2(ElfFile&, mode_t) [with ElfFile = ElfFile; mode_t = unsigned int]' patchelf.cc:1173:36: required from here patchelf.cc:637:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert((off_t) curOff == startOffset + neededSpace); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ patchelf.cc: In instantiation of 'void ElfFile::rewriteSectionsExecutable() [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym]': patchelf.cc:773:34: required from 'void ElfFile::rewriteSections() [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym]' patchelf.cc:1141:9: required from 'void patchElf2(ElfFile&, mode_t) [with ElfFile = ElfFile; mode_t = unsigned int]' patchelf.cc:1173:36: required from here patchelf.cc:710:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert((off_t) rdi(hdr->e_shoff) >= startOffset); ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ patchelf.cc:751:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] assert((off_t) curOff == neededSpace); ~~~~~~~~~~~~~~~^~~~ g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o patchelf patchelf.o -lacl -lattr make[1]: Leaving directory '/builddir/build/BUILD/patchelf-0.8/src' Making all in tests make[1]: Entering directory '/builddir/build/BUILD/patchelf-0.8/tests' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/builddir/build/BUILD/patchelf-0.8/tests' make[1]: Entering directory '/builddir/build/BUILD/patchelf-0.8' make[1]: Nothing to be done for 'all-am'. make[1]: Leaving directory '/builddir/build/BUILD/patchelf-0.8' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.ncaWfk + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64 + cd patchelf-0.8 + make install DESTDIR=/builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64 Making install in src make[1]: Entering directory '/builddir/build/BUILD/patchelf-0.8/src' make[2]: Entering directory '/builddir/build/BUILD/patchelf-0.8/src' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64/usr/bin' /usr/bin/install -c patchelf '/builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64/usr/bin' make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/builddir/build/BUILD/patchelf-0.8/src' make[1]: Leaving directory '/builddir/build/BUILD/patchelf-0.8/src' Making install in tests make[1]: Entering directory '/builddir/build/BUILD/patchelf-0.8/tests' make[2]: Entering directory '/builddir/build/BUILD/patchelf-0.8/tests' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/builddir/build/BUILD/patchelf-0.8/tests' make[1]: Leaving directory '/builddir/build/BUILD/patchelf-0.8/tests' make[1]: Entering directory '/builddir/build/BUILD/patchelf-0.8' make[2]: Entering directory '/builddir/build/BUILD/patchelf-0.8' make[2]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64/usr/share/doc/patchelf' /usr/bin/install -c -m 644 README '/builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64/usr/share/doc/patchelf' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64/usr/share/man/man1' /usr/bin/install -c -m 644 patchelf.1 '/builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64/usr/share/man/man1' make[2]: Leaving directory '/builddir/build/BUILD/patchelf-0.8' make[1]: Leaving directory '/builddir/build/BUILD/patchelf-0.8' + rm -rf /builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64/usr/share/doc/patchelf + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: patchelf-0.8-5.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.tIufae + umask 022 + cd /builddir/build/BUILD + cd patchelf-0.8 + DOCDIR=/builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64/usr/share/doc/patchelf + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64/usr/share/doc/patchelf + cp -pr README /builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64/usr/share/doc/patchelf + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.uSurns + umask 022 + cd /builddir/build/BUILD + cd patchelf-0.8 + LICENSEDIR=/builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64/usr/share/licenses/patchelf + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64/usr/share/licenses/patchelf + cp -pr COPYING /builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64/usr/share/licenses/patchelf + exit 0 Provides: patchelf = 0.8-5.fc28 patchelf(riscv-64) = 0.8-5.fc28 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libacl.so.1()(64bit) libacl.so.1(ACL_1.1)(64bit) libattr.so.1()(64bit) libattr.so.1(ATTR_1.1)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgcc_s.so.1(GCC_3.4)(64bit) libm.so.6()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64 Wrote: /builddir/build/SRPMS/patchelf-0.8-5.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/patchelf-0.8-5.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.dwnEWp + umask 022 + cd /builddir/build/BUILD + cd patchelf-0.8 + /usr/bin/rm -rf /builddir/build/BUILDROOT/patchelf-0.8-5.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync ++ sleep 5 +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff