Mock Version: 2.12 Mock Version: 2.12 Mock Version: 2.12 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/nginx.spec'], chrootPath='/var/lib/mock/dist-an8-build-73752-38766/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/nginx.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/nginx-1.20.1-1.0.1.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/nginx.spec'], chrootPath='/var/lib/mock/dist-an8-build-73752-38766/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=989gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/nginx.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.LToacl + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf nginx-1.20.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/nginx-1.20.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd nginx-1.20.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (nginx-auto-cc-gcc.patch):' Patch #0 (nginx-auto-cc-gcc.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file auto/cc/gcc Hunk #1 succeeded at 166 (offset -6 lines). Patch #1 (nginx-1.14.0-logs-perm.patch): + echo 'Patch #1 (nginx-1.14.0-logs-perm.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/core/ngx_cycle.c Hunk #1 succeeded at 1195 (offset 87 lines). Patch #2 (nginx-1.16.0-pkcs11.patch): + echo 'Patch #2 (nginx-1.16.0-pkcs11.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/event/ngx_event_openssl.c Hunk #1 succeeded at 733 (offset 6 lines). Patch #3 (nginx-1.14.1-perl-module-hardening.patch): + echo 'Patch #3 (nginx-1.14.1-perl-module-hardening.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/http/modules/perl/Makefile.PL Patch #4 (nginx-1.20.0-enable-tls1v3-by-default.patch): + echo 'Patch #4 (nginx-1.20.0-enable-tls1v3-by-default.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/event/ngx_event_openssl.c patching file src/event/ngx_event_openssl.h patching file src/http/modules/ngx_http_ssl_module.c patching file src/mail/ngx_mail_ssl_module.c patching file src/stream/ngx_stream_ssl_module.c + echo 'Patch #5 (nginx-1.18.0-pkcs11-cert.patch):' Patch #5 (nginx-1.18.0-pkcs11-cert.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/event/ngx_event_openssl.c Hunk #1 succeeded at 624 (offset 8 lines). + cp /builddir/build/SOURCES/README.dynamic /builddir/build/SOURCES/UPGRADE-NOTES-1.6-to-1.10 /builddir/build/SOURCES/nginx.service /builddir/build/SOURCES/nginx.conf . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.MT4RMm + umask 022 + cd /builddir/build/BUILD + cd nginx-1.20.1 + export DESTDIR=/builddir/build/BUILDROOT/nginx-1.20.1-1.0.1.an8.x86_64 + DESTDIR=/builddir/build/BUILDROOT/nginx-1.20.1-1.0.1.an8.x86_64 ++ pcre-config --cflags + ./configure --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/run/nginx.pid --lock-path=/run/lock/subsys/nginx --user=nginx --group=nginx --with-file-aio --with-ipv6 --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-stream_ssl_preread_module --with-http_addition_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_slice_module --with-http_stub_status_module --with-http_perl_module=dynamic --with-http_auth_request_module --with-mail=dynamic --with-mail_ssl_module --with-pcre --with-pcre-jit --with-stream=dynamic --with-stream_ssl_module --with-debug '--with-cc-opt=-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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -floop-unroll-and-jam -ftree-loop-distribution --param early-inlining-insns=160 --param inline-heuristics-hint-percent=800 --param inline-min-speedup=50 --param inline-unit-growth=256 --param max-average-unrolled-insns=500 --param max-completely-peel-times=32 --param max-completely-peeled-insns=800 --param max-inline-insns-auto=128 --param max-inline-insns-small=128 --param max-unroll-times=16 --param max-unrolled-insns=16' --with-compat '--with-ld-opt=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-E' checking for OS + Linux 4.18.0-193.28.1.el8_2.x86_64 x86_64 checking for C compiler ... found + using GNU C compiler + gcc version: 8.5.0 20210514 (Anolis 8.5.0-4.0.1) (GCC) checking for gcc -pipe switch ... found checking for --with-ld-opt="-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-E" ... not found ./configure: error: the invalid value in --with-ld-opt="-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-E" error: Bad exit status from /var/tmp/rpm-tmp.MT4RMm (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.MT4RMm (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 600, in do_with_status 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 x86_64 --nodeps /builddir/build/SPECS/nginx.spec