Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc64 --nodeps /builddir/build/SPECS/oprofile.spec'], chrootPath='/var/lib/mock/devtoolset-6-oprofile-1.1.0-4.el7-20190704141903-30923/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=1005) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc64 --nodeps /builddir/build/SPECS/oprofile.spec'] with env {'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: ppc64 Building for target ppc64 Wrote: /builddir/build/SRPMS/oprofile-1.1.0-4.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target ppc64 --nodeps /builddir/build/SPECS/oprofile.spec'], chrootPath='/var/lib/mock/devtoolset-6-oprofile-1.1.0-4.el7-20190704141903-30923/root'shell=Falseuid=1005env={'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target ppc64 --nodeps /builddir/build/SPECS/oprofile.spec'] with env {'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: ppc64 Building for target ppc64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.VFchf5 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf oprofile-1.1.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/oprofile-1.1.0.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd oprofile-1.1.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/openjdk-include.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #1010 (oprofile-bz1335142.patch): + echo 'Patch #1010 (oprofile-bz1335142.patch):' + /usr/bin/cat /builddir/build/SOURCES/oprofile-bz1335142.patch + /usr/bin/patch -p1 --fuzz=0 patching file events/i386/nehalem/events patching file events/i386/westmere/events Patch #1011 (oprofile-power.patch): + echo 'Patch #1011 (oprofile-power.patch):' + /usr/bin/cat /builddir/build/SOURCES/oprofile-power.patch + /usr/bin/patch -p1 --fuzz=0 patching file events/ppc64/power8/events patching file events/ppc64/power8/unit_masks patching file events/ppc64/power8/events patching file events/ppc64/power8/unit_masks patching file events/ppc64/power8/events Patch #1012 (oprofile-skylake.patch): + echo 'Patch #1012 (oprofile-skylake.patch):' + /usr/bin/patch -p1 --fuzz=0 + /usr/bin/cat /builddir/build/SOURCES/oprofile-skylake.patch patching file libop/op_hw_specific.h Patch #1013 (oprofile-goldmont.patch): + echo 'Patch #1013 (oprofile-goldmont.patch):' + /usr/bin/cat /builddir/build/SOURCES/oprofile-goldmont.patch + /usr/bin/patch -p1 --fuzz=0 patching file events/Makefile.am patching file events/i386/goldmont/events patching file events/i386/goldmont/unit_masks patching file libop/op_cpu_type.c patching file libop/op_cpu_type.h patching file libop/op_events.c patching file libop/op_hw_specific.h patching file utils/ophelp.c patching file events/i386/goldmont/unit_masks patching file events/i386/goldmont/events patching file events/i386/goldmont/unit_masks Patch #1014 (oprofile-kabylake.patch): + echo 'Patch #1014 (oprofile-kabylake.patch):' + /usr/bin/cat /builddir/build/SOURCES/oprofile-kabylake.patch + /usr/bin/patch -p1 --fuzz=0 patching file libop/op_hw_specific.h Patch #1015 (oprofile-xgene.patch): + echo 'Patch #1015 (oprofile-xgene.patch):' + /usr/bin/cat /builddir/build/SOURCES/oprofile-xgene.patch + /usr/bin/patch -p1 --fuzz=0 patching file events/arm/armv8-xgene/events Patch #1016 (oprofile-oparchive.patch): + echo 'Patch #1016 (oprofile-oparchive.patch):' + /usr/bin/cat /builddir/build/SOURCES/oprofile-oparchive.patch + /usr/bin/patch -p1 --fuzz=0 patching file libpp/profile_spec.cpp patching file pp/oparchive.cpp patching file pp/oparchive_options.cpp Patch #1017 (oprofile-startup.patch): + echo 'Patch #1017 (oprofile-startup.patch):' + /usr/bin/cat /builddir/build/SOURCES/oprofile-startup.patch + /usr/bin/patch -p1 --fuzz=0 patching file pe_counting/ocount.cpp Patch #1018 (oprofile-zseries.patch): + echo 'Patch #1018 (oprofile-zseries.patch):' + /usr/bin/cat /builddir/build/SOURCES/oprofile-zseries.patch + /usr/bin/patch -p1 --fuzz=0 patching file events/Makefile.am patching file events/s390/z13/events patching file events/s390/z13/unit_masks patching file libop/op_cpu_type.c patching file libop/op_cpu_type.h patching file libop/op_events.c patching file utils/ophelp.c + ./autogen.sh Running aclocal -I m4 ... Running autoheader ... Running automake --foreign --add-missing --copy ... Running autoconf ... + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.cbcD0d + umask 022 + cd /builddir/build/BUILD + cd oprofile-1.1.0 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power7 -mtune=power7' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power7 -mtune=power7' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power7 -mtune=power7 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mcpu=power7 -mtune=power7 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro ' + export LDFLAGS + '[' 1 == 1 ']' + '[' ppc64 == ppc64le ']' ++ find . -name config.guess -o -name config.sub + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' ++ pwd + ./configure --build=ppc64-redhat-linux-gnu --host=ppc64-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 --with-java=/builddir/build/BUILD/oprofile-1.1.0/java-1.6.0-openjdk-1.6.0.0 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 whether make supports nested variables... yes checking for style of include used by make... GNU checking for ppc64-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 basename is declared... yes checking for ppc64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking build system type... powerpc64-redhat-linux-gnu checking host system type... powerpc64-redhat-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert powerpc64-redhat-linux-gnu file names to powerpc64-redhat-linux-gnu format... func_convert_file_noop checking how to convert powerpc64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for ppc64-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for ppc64-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ppc64-redhat-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for ppc64-redhat-linux-gnu-strip... no checking for strip... strip checking for ppc64-redhat-linux-gnu-ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for ppc64-redhat-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option 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... yes checking for ppc64-redhat-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 ppc64-redhat-linux-gnu-gcc... gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) none checking how to run the C preprocessor... gcc -E checking for ppc64-redhat-linux-gnu-g++... no checking for ppc64-redhat-linux-gnu-c++... no checking for ppc64-redhat-linux-gnu-gpp... no checking for ppc64-redhat-linux-gnu-aCC... no checking for ppc64-redhat-linux-gnu-CC... no checking for ppc64-redhat-linux-gnu-cxx... no checking for ppc64-redhat-linux-gnu-cc++... no checking for ppc64-redhat-linux-gnu-cl.exe... no checking for ppc64-redhat-linux-gnu-FCC... no checking for ppc64-redhat-linux-gnu-KCC... no checking for ppc64-redhat-linux-gnu-RCC... no checking for ppc64-redhat-linux-gnu-xlC_r... no checking for ppc64-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... 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 ld... /usr/bin/ld checking /usr/include/linux/perf_event.h usability... yes checking /usr/include/linux/perf_event.h presence... yes checking for /usr/include/linux/perf_event.h... yes checking kernel supports perf_events... yes checking whether PERF_RECORD_MISC_GUEST_KERNEL is defined in perf_event.h... yes checking whether precise_ip is defined in perf_event.h... yes checking perfmon/pfmlib.h usability... yes checking perfmon/pfmlib.h presence... yes checking for perfmon/pfmlib.h... yes checking for pfm_get_os_event_encoding in -lpfm... yes checking for "/builddir/build/BUILD/oprofile-1.1.0/java-1.6.0-openjdk-1.6.0.0/include/jvmti.h"... yes checking for "/builddir/build/BUILD/oprofile-1.1.0/java-1.6.0-openjdk-1.6.0.0/include/jvmpi.h"... no checking whether malloc attribute is understood... no checking whether __builtin_expect is understood... no checking for sched_setaffinity... yes checking for perfmonctl... no checking for poptGetContext in -lpopt... yes checking libiberty.h usability... no checking libiberty.h presence... no checking for libiberty.h... no checking for cplus_demangle in -liberty... no configure: error: liberty library not found RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.cbcD0d (%build) Bad exit status from /var/tmp/rpm-tmp.cbcD0d (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 547, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target ppc64 --nodeps /builddir/build/SPECS/oprofile.spec