Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc --nodeps /builddir/build/SPECS/apache-commons-daemon.spec'], chrootPath='/var/lib/mock/apache-commons-daemon-1.0.13-7.el7-20180410235613-7659/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=1004) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc --nodeps /builddir/build/SPECS/apache-commons-daemon.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 warning: Could not canonicalize hostname: ppc64-01.bsys.centos.org Building target platforms: ppc Building for target ppc Wrote: /builddir/build/SRPMS/apache-commons-daemon-1.0.13-7.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target ppc --nodeps /builddir/build/SPECS/apache-commons-daemon.spec'], chrootPath='/var/lib/mock/apache-commons-daemon-1.0.13-7.el7-20180410235613-7659/root'shell=Falseuid=1004env={'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 ppc --nodeps /builddir/build/SPECS/apache-commons-daemon.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: ppc Building for target ppc Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fRMxS7 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf commons-daemon-1.0.13-src + /usr/bin/gzip -dc /builddir/build/SOURCES/commons-daemon-1.0.13-src.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd commons-daemon-1.0.13-src + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (0001-execve-path-warning.patch):' Patch #0 (0001-execve-path-warning.patch): + /usr/bin/cat /builddir/build/SOURCES/0001-execve-path-warning.patch + /usr/bin/patch -p1 -b --suffix .execve --fuzz=0 patching file src/native/unix/native/jsvc-unix.c Hunk #1 succeeded at 1158 (offset 143 lines). Patch #1 (apache-commons-daemon-JAVA_OS.patch): + echo 'Patch #1 (apache-commons-daemon-JAVA_OS.patch):' + /usr/bin/cat /builddir/build/SOURCES/apache-commons-daemon-JAVA_OS.patch + /usr/bin/patch -p1 -b --suffix .java_os --fuzz=0 patching file src/native/unix/configure Patch #2 (apache-commons-daemon-s390x.patch): + echo 'Patch #2 (apache-commons-daemon-s390x.patch):' + /usr/bin/cat /builddir/build/SOURCES/apache-commons-daemon-s390x.patch + /usr/bin/patch -p1 -b --suffix .s390x --fuzz=0 patching file src/native/unix/configure Hunk #1 succeeded at 2629 (offset -42 lines). patching file src/native/unix/support/apsupport.m4 Patch #3 (apache-commons-daemon-ppc64.patch): + echo 'Patch #3 (apache-commons-daemon-ppc64.patch):' + /usr/bin/cat /builddir/build/SOURCES/apache-commons-daemon-ppc64.patch + /usr/bin/patch -p1 -b --suffix .ppc64 --fuzz=0 patching file src/native/unix/configure patching file src/native/unix/support/apsupport.m4 Patch #4 (apache-commons-daemon-aarch64.patch): + echo 'Patch #4 (apache-commons-daemon-aarch64.patch):' + /usr/bin/cat /builddir/build/SOURCES/apache-commons-daemon-aarch64.patch + /usr/bin/patch -p1 -b --suffix .aarch64 --fuzz=0 patching file src/native/unix/support/apsupport.m4 Hunk #1 succeeded at 154 (offset 6 lines). patching file src/native/unix/configure Hunk #1 succeeded at 2643 (offset 6 lines). + rm -rf src/samples/build/ + chmod 644 src/samples/AloneDaemon.sh src/samples/AloneService.java src/samples/Native.c src/samples/Native.sh src/samples/ProcrunService.java src/samples/ProcrunServiceInstall.cmd src/samples/ProcrunServiceRemove.cmd src/samples/README.txt src/samples/ServiceDaemon.java src/samples/ServiceDaemon.sh src/samples/ServiceDaemonReadThread.java src/samples/SimpleApplication.java src/samples/SimpleApplication.sh src/samples/SimpleDaemon.java src/samples/SimpleDaemon.sh src/samples/build.xml + cd src/native/unix + xmlto man man/jsvc.1.xml Note: Writing jsvc.1 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.IDcoDB ~/build/BUILD/commons-daemon-1.0.13-src/src/native/unix ~/build/BUILD/commons-daemon-1.0.13-src + umask 022 + cd /builddir/build/BUILD + cd commons-daemon-1.0.13-src + pushd src/native/unix + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -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 -m32 -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 -m32 -mcpu=power7 -mtune=power7 -I/usr/lib/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 -m32 -mcpu=power7 -mtune=power7 -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro ' + export LDFLAGS + '[' 1 == 1 ']' + '[' ppc == ppc64le ']' ++ find . -name config.guess -o -name config.sub + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./support/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./support/config.guess ++ basename ./support/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./support/config.guess '/usr/lib/rpm/redhat/config.guess' -> './support/config.guess' + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./support/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./support/config.sub ++ basename ./support/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./support/config.sub '/usr/lib/rpm/redhat/config.sub' -> './support/config.sub' + ./configure --build=ppc-redhat-linux-gnu --host=ppc-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/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-java=/usr/lib/jvm/java *** Current host *** checking build system type... powerpc-redhat-linux-gnu checking host system type... powerpc-redhat-linux-gnu checking cached host system type... ok checking for ppc-redhat-linux-gnu-gcc... *** C-Language compilation tools *** no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... 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 ANSI C... none needed checking for ppc-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking for ppc-redhat-linux-gnu-strip... no checking for strip... strip checking C flags dependant on host system type... ok checking JAVA_HOME... /usr/lib/jvm/java checking for JDK os include directory... *** Host support *** *** Java compilation tools *** linux gcc flags added checking for cap_init in -lcap... no *** Writing output files *** configure: creating ./config.status config.status: creating Makefile config.status: creating Makedefs config.status: creating native/Makefile *** All done *** Now you can issue "make" + make clean (cd native; make clean) make[1]: Entering directory `/builddir/build/BUILD/commons-daemon-1.0.13-src/src/native/unix/native' rm -f arguments.o debug.o dso-dlfcn.o dso-dyld.o help.o home.o java.o location.o replace.o locks.o signals.o ../jsvc jsvc-unix.o libservice.a make[1]: Leaving directory `/builddir/build/BUILD/commons-daemon-1.0.13-src/src/native/unix/native' + make -j16 (cd native; make all) make[1]: Entering directory `/builddir/build/BUILD/commons-daemon-1.0.13-src/src/native/unix/native' gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -mcpu=power7 -mtune=power7 -DOS_LINUX -DDSO_DLFCN -DCPU=\"ppc\" -Wall -Wstrict-prototypes -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -c jsvc-unix.c -o jsvc-unix.o gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -mcpu=power7 -mtune=power7 -DOS_LINUX -DDSO_DLFCN -DCPU=\"ppc\" -Wall -Wstrict-prototypes -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -c arguments.c -o arguments.o gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -mcpu=power7 -mtune=power7 -DOS_LINUX -DDSO_DLFCN -DCPU=\"ppc\" -Wall -Wstrict-prototypes -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -c debug.c -o debug.o gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -mcpu=power7 -mtune=power7 -DOS_LINUX -DDSO_DLFCN -DCPU=\"ppc\" -Wall -Wstrict-prototypes -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -c dso-dlfcn.c -o dso-dlfcn.o gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -mcpu=power7 -mtune=power7 -DOS_LINUX -DDSO_DLFCN -DCPU=\"ppc\" -Wall -Wstrict-prototypes -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -c dso-dyld.c -o dso-dyld.o gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -mcpu=power7 -mtune=power7 -DOS_LINUX -DDSO_DLFCN -DCPU=\"ppc\" -Wall -Wstrict-prototypes -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -c help.c -o help.o gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -mcpu=power7 -mtune=power7 -DOS_LINUX -DDSO_DLFCN -DCPU=\"ppc\" -Wall -Wstrict-prototypes -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -c home.c -o home.o gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -mcpu=power7 -mtune=power7 -DOS_LINUX -DDSO_DLFCN -DCPU=\"ppc\" -Wall -Wstrict-prototypes -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -c java.c -o java.o gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -mcpu=power7 -mtune=power7 -DOS_LINUX -DDSO_DLFCN -DCPU=\"ppc\" -Wall -Wstrict-prototypes -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -c location.c -o location.o gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -mcpu=power7 -mtune=power7 -DOS_LINUX -DDSO_DLFCN -DCPU=\"ppc\" -Wall -Wstrict-prototypes -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -c replace.c -o replace.o gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -mcpu=power7 -mtune=power7 -DOS_LINUX -DDSO_DLFCN -DCPU=\"ppc\" -Wall -Wstrict-prototypes -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -c locks.c -o locks.o gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -mcpu=power7 -mtune=power7 -DOS_LINUX -DDSO_DLFCN -DCPU=\"ppc\" -Wall -Wstrict-prototypes -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -c signals.c -o signals.o jsvc-unix.c: In function 'get_pidf': jsvc-unix.c:624:10: warning: ignoring return value of 'lockf', declared with attribute warn_unused_result [-Wunused-result] lockf(fd, F_LOCK, 0); ^ jsvc-unix.c:626:10: warning: ignoring return value of 'lockf', declared with attribute warn_unused_result [-Wunused-result] lockf(fd, F_ULOCK, 0); ^ jsvc-unix.c: In function 'wait_child': jsvc-unix.c:720:14: warning: ignoring return value of 'lockf', declared with attribute warn_unused_result [-Wunused-result] lockf(fd, F_LOCK, 0); ^ jsvc-unix.c:722:14: warning: ignoring return value of 'lockf', declared with attribute warn_unused_result [-Wunused-result] lockf(fd, F_ULOCK, 0); ^ jsvc-unix.c: In function 'set_output': jsvc-unix.c:1018:16: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result] freopen("/dev/null", "r", stdin); ^ jsvc-unix.c:1029:16: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result] freopen("/dev/null", "a", stdout); ^ jsvc-unix.c:1048:16: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result [-Wunused-result] freopen("/dev/null", "a", stderr); ^ jsvc-unix.c: In function 'check_pid': jsvc-unix.c:576:14: warning: ignoring return value of 'lockf', declared with attribute warn_unused_result [-Wunused-result] lockf(fd, F_LOCK, 0); ^ jsvc-unix.c:584:22: warning: ignoring return value of 'lockf', declared with attribute warn_unused_result [-Wunused-result] lockf(fd, F_ULOCK, 0); ^ jsvc-unix.c:596:18: warning: ignoring return value of 'lockf', declared with attribute warn_unused_result [-Wunused-result] lockf(fd, F_ULOCK, 0); ^ jsvc-unix.c:601:18: warning: ignoring return value of 'lockf', declared with attribute warn_unused_result [-Wunused-result] lockf(fd, F_ULOCK, 0); ^ ar cr libservice.a arguments.o debug.o dso-dlfcn.o dso-dyld.o help.o home.o java.o location.o replace.o locks.o signals.o ranlib libservice.a gcc -Wl,-z,relro jsvc-unix.o libservice.a -ldl -lpthread -o ../jsvc make[1]: Leaving directory `/builddir/build/BUILD/commons-daemon-1.0.13-src/src/native/unix/native' ~/build/BUILD/commons-daemon-1.0.13-src + popd + python /usr/share/java-utils/mvn_file.py : commons-daemon apache-commons-daemon + python /usr/share/java-utils/mvn_alias.py : org.apache.commons:commons-daemon + python /usr/share/java-utils/mvn_build.py -n apache-commons-daemon [INFO] Scanning for projects... [WARNING] Failed to resolve artifact: org.apache.commons:commons-parent:pom:23 [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project commons-daemon:commons-daemon:1.0.13 (/builddir/build/BUILD/commons-daemon-1.0.13-src/pom.xml) has 1 error [ERROR] Non-resolvable parent POM: The repository system is offline but the artifact org.apache.commons:commons-parent:pom:23 is not available in the local repository. and 'parent.relativePath' points at wrong local POM @ line 22, column 11 -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.IDcoDB (%build) Bad exit status from /var/tmp/rpm-tmp.IDcoDB (%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 ppc --nodeps /builddir/build/SPECS/apache-commons-daemon.spec