Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/unit.spec'], nspawn_args=[]shell=Falseuid=996env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/community-php74-armhfp-a43d6769f9d0a5c6217b16d1ad1739ac4fe682f2/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/unit.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: armv7hl Building for target armv7hl Wrote: /builddir/build/SRPMS/unit-1.26.1-2.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u"/usr/bin/rpmbuild -bb --target armv7hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/unit.spec"], nspawn_args=[]shell=Falseuid=996env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/community-php74-armhfp-a43d6769f9d0a5c6217b16d1ad1739ac4fe682f2/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', u"/usr/bin/rpmbuild -bb --target armv7hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/unit.spec"] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: armv7hl Building for target armv7hl Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.NvueDg + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf unit-8b954d833110c70f641561fd141b27b2b72a5022 + /usr/bin/gzip -dc /builddir/build/SOURCES/unit-1.26.1-8b954d8.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd unit-8b954d833110c70f641561fd141b27b2b72a5022 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (unit-syspol.patch):' Patch #0 (unit-syspol.patch): + /usr/bin/patch -p1 -b --suffix .syspol --fuzz=0 + /usr/bin/cat /builddir/build/SOURCES/unit-syspol.patch patching file src/nxt_openssl.c Hunk #1 succeeded at 292 (offset 14 lines). Hunk #2 succeeded at 353 (offset 14 lines). + echo 'Patch #1 (unit-openssl3.patch):' Patch #1 (unit-openssl3.patch): + /usr/bin/cat /builddir/build/SOURCES/unit-openssl3.patch + /usr/bin/patch -p1 -b --suffix .openssl3 --fuzz=0 patching file src/nxt_openssl.c patching file src/nxt_openssl.c Patch #2 (unit-gcc12.patch): + echo 'Patch #2 (unit-gcc12.patch):' + /usr/bin/cat /builddir/build/SOURCES/unit-gcc12.patch + /usr/bin/patch -p1 -b --suffix .gcc12 --fuzz=0 patching file src/nxt_malloc.c + cp pkg/rpm/rpmbuild/SOURCES/unit.example.config example.config + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.K1sHSy + umask 022 + cd /builddir/build/BUILD + cd unit-8b954d833110c70f641561fd141b27b2b72a5022 + unitconf --modules=/usr/lib/unit/debug-modules --debug + ./configure --libdir=/usr/lib --prefix=/usr --state=/var/lib/unit --control=unix:/run/unit/control.sock --pid=/run/unit/unit.pid --log=/var/log/unit/unit.log --tmp=/var/tmp --user=unit --group=unit --openssl '--cc-opt=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' --tests --modules=/usr/lib/unit/debug-modules --debug configuring for Linux 4.14.65-201.el7.armv7hl+lpae armv7l checking for C compiler: cc + using GNU C compiler + gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) building an "echo" program checking for int size ... 4 checking for long size ... 4 checking for long long size ... 8 checking for void * size ... 4 checking for size_t size ... 4 checking for off_t size ... 8 checking for time_t size ... 4 checking for C99 variadic macro ... found checking for GCC __builtin_expect() ... found checking for GCC __builtin_unreachable() ... found checking for GCC __builtin_prefetch() ... found checking for GCC __builtin_clz() ... found checking for GCC __builtin_popcount() ... found checking for GCC __attribute__ visibility ... found checking for GCC __attribute__ aligned ... found checking for GCC __attribute__ malloc ... found checking for GCC __attribute__ packed ... found checking for GCC builtin atomic operations ... found checking for posix_memalign() ... found checking for Linux malloc_usable_size() ... found checking for alloca() ... found checking for Linux mallopt() ... found checking for MAP_ANON ... found checking for MAP_POPULATE ... found checking for MAP_PREFAULT_READ ... not found checking for shm_open() ... not found checking for shm_open() in librt ... found checking for shm_open(SHM_ANON) ... not found checking for memfd_create() ... found checking for Linux clock_gettime(CLOCK_REALTIME_COARSE) ... found checking for FreeBSD clock_gettime(CLOCK_REALTIME_FAST) ... not found checking for clock_gettime(CLOCK_REALTIME) ... found checking for Linux clock_gettime(CLOCK_MONOTONIC_COARSE) ... found checking for FreeBSD clock_gettime(CLOCK_MONOTONIC_FAST) ... not found checking for clock_gettime(CLOCK_MONOTONIC) ... found checking for HP-UX hg_gethrtime() ... not found checking for struct tm.tm_gmtoff ... found checking for altzone ... not found checking for localtime_r() ... found checking for pthread_yield() ... found checking for pthread spinlock ... found checking for pthread spinlock zero initial value ... found checking for sem_timedwait() ... not found checking for sem_timedwait() in libpthread ... found checking for __thread ... found checking for Linux epoll ... found checking for Linux signalfd() ... found checking for Linux eventfd() ... found checking for kqueue ... not found checking for Solaris event port ... not found checking for /dev/poll ... not found checking for AIX pollset ... not found checking for AF_INET6 ... found checking for sockaddr.sa_len ... not found checking for struct sockaddr size ... 16 checking for struct sockaddr_in size ... 16 checking for struct sockaddr_in6 size ... 28 checking for struct sockaddr_un size ... 110 checking for struct sockaddr_storage size ... 128 checking for socketpair(AF_UNIX, SOCK_SEQPACKET) ... found checking for struct msghdr.msg_control ... found checking for sockopt SO_PASSCRED ... found checking for struct ucred ... found checking for struct cmsgcred ... not found checking for sys/filio.h ... not found checking for ioctl(FIONBIO) ... found checking for socket(SOCK_NONBLOCK) ... found checking for accept4() ... found checking for Linux sendfile() ... found checking for posix_fadvise() ... found checking for fcntl(F_READAHEAD) ... not found checking for fcntl(F_RDAHEAD) ... not found checking for openat2() ... not found checking for getrandom() ... not found checking for SYS_getrandom in Linux ... found checking for ucontext ... found checking for dlopen() ... not found checking for dlopen() in libdl ... found checking for posix_spawn() ... found checking for setproctitle() ... not found checking for getgrouplist() ... found checking for OpenSSL library ... found checking for OpenSSL version ... "OpenSSL 1.0.2k-fips 26 Jan 2017" checking for OpenSSL SSL_CONF_cmd() ... found checking for OpenSSL tlsext support ... found checking for PCRE2 library ... found + PCRE2 version: 10.23 checking for clone(2) ... found checking for CLONE_NEWUSER ... found checking for CLONE_NEWNS ... found checking for CLONE_NEWPID ... found checking for CLONE_NEWNET ... found checking for CLONE_NEWUTS ... found checking for CLONE_NEWCGROUP ... not found checking for Linux pivot_root() ... found checking for prctl(PR_SET_NO_NEW_PRIVS) ... found checking for Linux mount() ... found checking for Linux umount2() ... found checking for Linux capability ... found creating build/Makefile Unit configuration summary: bin directory: ............. "/usr/bin" sbin directory: ............ "/usr/sbin" lib directory: ............. "/usr/lib" include directory: ......... "/usr/include" man pages directory: ....... "/usr/share/man" modules directory: ......... "/usr/lib/unit/debug-modules" state directory: ........... "/var/lib/unit" tmp directory: ............. "/var/tmp" pid file: .................. "/run/unit/unit.pid" log file: .................. "/var/log/unit/unit.log" control API socket: ........ "unix:/run/unit/control.sock" non-privileged user: ....... "unit" non-privileged group: ...... "unit" IPv6 support: .............. YES Unix domain sockets support: YES TLS support: ............... YES process isolation: ......... USER NS PID NET UTS debug logging: ............. YES + make -j4 build/echo '#define NXT_VERSION "1.26.1"' > build/nxt_version.h build/echo '#define NXT_VERNUM 12601' >> build/nxt_version.h sed -e "s|%%ERROR_LOG_PATH%%|/var/log/unit/unit.log|" \ -e "s|%%PID_PATH%%|/run/unit/unit.pid|" \ -e "s|%%SOCKET_PATH%%|unix:/run/unit/control.sock|" \ < docs/man/unitd.8.in > build/unitd.8 cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -I src -I build \ \ \ -o build/src/nxt_lib.o \ -MMD -MF build/src/nxt_lib.dep -MT build/src/nxt_lib.o \ src/nxt_lib.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -I src -I build \ \ \ -o build/src/nxt_gmtime.o \ -MMD -MF build/src/nxt_gmtime.dep -MT build/src/nxt_gmtime.o \ src/nxt_gmtime.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -I src -I build \ \ \ -o build/src/nxt_errno.o \ -MMD -MF build/src/nxt_errno.dep -MT build/src/nxt_errno.o \ src/nxt_errno.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -I src -I build \ \ \ -o build/src/nxt_time.o \ -MMD -MF build/src/nxt_time.dep -MT build/src/nxt_time.o \ src/nxt_time.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -I src -I build \ \ \ -o build/src/nxt_malloc.o \ -MMD -MF build/src/nxt_malloc.dep -MT build/src/nxt_malloc.o \ src/nxt_malloc.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -I src -I build \ \ \ -o build/src/nxt_file.o \ -MMD -MF build/src/nxt_file.dep -MT build/src/nxt_file.o \ src/nxt_file.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -I src -I build \ \ \ -o build/src/nxt_mem_map.o \ -MMD -MF build/src/nxt_mem_map.dep -MT build/src/nxt_mem_map.o \ src/nxt_mem_map.c cc -c -pipe -fPIC -fvisibility=hidden -O -W -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wmissing-prototypes -Werror -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -I src -I build \ \ \ -o build/src/nxt_socket.o \ -MMD -MF build/src/nxt_socket.dep -MT build/src/nxt_socket.o \ src/nxt_socket.c src/nxt_malloc.c:64:10: error: unknown option after '#pragma GCC diagnostic' kind [-Werror=pragmas] # pragma GCC diagnostic ignored "-Wuse-after-free" ^ cc1: all warnings being treated as errors make: *** [build/src/nxt_malloc.o] Error 1 make: *** Waiting for unfinished jobs.... error: Bad exit status from /var/tmp/rpm-tmp.K1sHSy (%build) Bad exit status from /var/tmp/rpm-tmp.K1sHSy (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 89, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 582, 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 armv7hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/unit.spec