Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/jss.spec'], chrootPath='/var/lib/mock/module-pki-core-10.6-8100020260914040208-6af2ccac-build-249289-83810/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/jss.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/jss-4.11.0-1.module+oc8.10.0+838+8a47e50f.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/jss.spec'], chrootPath='/var/lib/mock/module-pki-core-10.6-8100020260914040208-6af2ccac-build-249289-83810/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/jss.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.B1XERr + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf jss-4.11.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/jss-4.11.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd jss-4.11.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.YBwtSi + umask 022 + cd /builddir/build/BUILD + cd jss-4.11.0 + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + export BUILD_OPT=1 + BUILD_OPT=1 + CFLAGS='-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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + modutil -dbdir /etc/pki/nssdb -chkfips true + grep -q enabled + CFLAGS='-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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + /usr/bin/cmake -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DVERSION=4.11.0 -DJAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk -DJAVA_LIB_INSTALL_DIR=/usr/lib/java -DJSS_LIB_INSTALL_DIR=/usr/lib64/jss -B x86_64-redhat-linux-gnu CMake Warning (dev) at CMakeLists.txt:2 (project): cmake_minimum_required() should be called prior to this top-level project() call. Please see the cmake-commands(7) manual for usage documentation of both commands. This warning is for project developers. Use -Wno-dev to suppress it. -- The C compiler identification is GNU 8.5.0 -- The CXX compiler identification is GNU 8.5.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found PkgConfig: /usr/bin/pkg-config (found version "1.4.2") -- Checking for module 'nspr' -- Found nspr, version 4.36.0 -- Found NSPR: /usr/lib64 -- Checking for module 'nss' -- Found nss, version 3.112.0 -- Found NSS: /usr/lib64 -- Found Java: /usr/lib/jvm/jre-1.8.0-openjdk/bin/java (found version "1.8.0.352") -- Found JNI: /usr/lib/jvm/java/include found components: AWT JVM -- Performing Test HAVE_C_FLAG -- Performing Test HAVE_C_FLAG - Success -- JSS C FLAGS: -fcf-protection;-fstack-clash-protection;-fasynchronous-unwind-tables;-mtune=generic;-m64;-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1;-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1;-grecord-gcc-switches;-fstack-protector-strong;-fexceptions;-Wp,-D_GLIBCXX_ASSERTIONS;-Wp,-D_FORTIFY_SOURCE=2;-Werror=format-security;-Wall;-pipe;-g;-O2;-g;-O2;-Wall;-std=gnu99;-Wno-cast-function-type;-Wno-unused-parameter;-Wno-unknown-warning-option;-Wno-unused-but-set-variable;-Werror-implicit-function-declaration;-Wno-switch;-I/builddir/build/BUILD/jss-4.11.0/x86_64-redhat-linux-gnu/include/jss;-I/usr/lib/jvm/java/include;-I/usr/lib/jvm/java/include/linux;-I/usr/lib/jvm/java/include;-I/usr/include/nspr4;-I/usr/include/nss3;-L/usr/lib64;-L/usr/lib64 -- JSS LD FLAGS: -specs=/usr/lib/rpm/redhat/redhat-hardened-ld;-Wl,-z,now;-Wl,-z,relro;-lsmime3;-lssl3;-lnss3;-lnssutil3;-lplc4;-lplds4;-lnspr4;-lpthread;-ldl -- JSS LIBRARY FLAGS: -shared;-Wl,-z,defs;-Wl,-soname;-Wl,libjss4.so -- javac classpath: /usr/share/java/slf4j/api.jar:/usr/share/java/apache-commons-lang3.jar:/usr/share/java/jaxb-api.jar -- tests classpath: /builddir/build/BUILD/jss-4.11.0/x86_64-redhat-linux-gnu/jss4.jar:/builddir/build/BUILD/jss-4.11.0/x86_64-redhat-linux-gnu/tests-jss4.jar:/usr/share/java/slf4j/api.jar:/usr/share/java/apache-commons-lang3.jar:/usr/share/java/jaxb-api.jar:/usr/share/java/slf4j/jdk14.jar:/usr/share/java/junit.jar:/usr/share/java/hamcrest/core.jar -- JSS JAVAC FLAGS: -classpath;/usr/share/java/slf4j/api.jar:/usr/share/java/apache-commons-lang3.jar:/usr/share/java/jaxb-api.jar;-sourcepath;/builddir/build/BUILD/jss-4.11.0/src/main/java;-target;1.8;-source;1.8;-O -- JSS TEST JAVAC FLAGS: -classpath;/usr/share/java/slf4j/api.jar:/usr/share/java/apache-commons-lang3.jar:/usr/share/java/jaxb-api.jar:/usr/share/java/junit.jar:/builddir/build/BUILD/jss-4.11.0/x86_64-redhat-linux-gnu/classes/jss;-sourcepath;/builddir/build/BUILD/jss-4.11.0/src/main/java;-target;1.8;-source;1.8;-O -- Looking for CKM_AES_CMAC -- Looking for CKM_AES_CMAC - found -- Looking for CKM_SP800_108_COUNTER_KDF -- Looking for CKM_SP800_108_COUNTER_KDF - found CMake Warning at cmake/JSSConfig.cmake:414 (message): Assuming OAEP support. Call Stack (most recent call first): cmake/JSSConfig.cmake:22 (jss_config_symbols) CMakeLists.txt:78 (jss_config) -- Performing Test HAVE_NSS_CIPHER_SUITE_INFO_KDFHASH -- Performing Test HAVE_NSS_CIPHER_SUITE_INFO_KDFHASH - Success -- Performing Test HAVE_NSS_CHANNEL_INFO_ORIGINAL_KEA_GROUP -- Performing Test HAVE_NSS_CHANNEL_INFO_ORIGINAL_KEA_GROUP - Success -- Performing Test HAVE_NSS_CHANNEL_INFO_PEER_DELEG_CRED -- Performing Test HAVE_NSS_CHANNEL_INFO_PEER_DELEG_CRED - Success -- Performing Test HAVE_NSS_PRELIMINARY_CHANNEL_INFO_ZERO_RTT_CIPHER_SUITE -- Performing Test HAVE_NSS_PRELIMINARY_CHANNEL_INFO_ZERO_RTT_CIPHER_SUITE - Success -- Performing Test HAVE_NSS_PRELIMINARY_CHANNEL_INFO_PEER_DELEG_CRED -- Performing Test HAVE_NSS_PRELIMINARY_CHANNEL_INFO_PEER_DELEG_CRED - Success -- Configuring done (1.2s) -- Generating done (0.0s) CMake Warning: Manually-specified variables were not used by the project: CMAKE_CXX_FLAGS_RELEASE CMAKE_C_FLAGS_RELEASE CMAKE_Fortran_FLAGS_RELEASE INCLUDE_INSTALL_DIR LIB_INSTALL_DIR LIB_SUFFIX SHARE_INSTALL_PREFIX SYSCONF_INSTALL_DIR -- Build files have been written to: /builddir/build/BUILD/jss-4.11.0/x86_64-redhat-linux-gnu + cd x86_64-redhat-linux-gnu + /usr/bin/make VERBOSE= CMAKE_NO_VERBOSE=1 --no-print-directory all [ 1%] Generating .targets/finished_generate_java Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. [ 3%] Generating .targets/finished_tests_generate_java Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /builddir/build/BUILD/jss-4.11.0/src/test/java/org/mozilla/jss/tests/CapabilitiesList.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. [ 3%] Built target generate_java [ 3%] Built target generate_includes [ 5%] Generating lib/CryptoManager.o [ 7%] Generating lib/PK11Finder.o [ 7%] Generating lib/KeyManager.o [ 8%] Generating lib/ASN1Util.o [ 10%] Generating lib/Algorithm.o [ 12%] Generating lib/JSSOAEPParameterSpec.o [ 14%] Generating lib/KBKDF.o [ 14%] Generating lib/PQGParams.o [ 16%] Generating lib/Policy.o [ 17%] Generating lib/SecretDecoderRing.o [ 19%] Generating lib/Buffer.o [ 21%] Generating lib/BufferProxy.o [ 23%] Generating lib/PR.o [ 25%] Generating lib/PRErrors.o [ 26%] Generating lib/PRFDProxy.o [ 28%] Generating lib/SECErrors.o [ 28%] Generating lib/SSL.o [ 30%] Generating lib/SSLErrors.o [ 32%] Generating lib/SSLFDProxy.o [ 33%] Generating lib/PK11Cert.o [ 35%] Generating lib/PK11Cipher.o [ 35%] Generating lib/PK11KeyGenerator.o [ 37%] Generating lib/PK11KeyPairGenerator.o [ 39%] Generating lib/PK11KeyWrapper.o [ 41%] Generating lib/PK11MessageDigest.o [ 42%] Generating lib/PK11Module.o [ 44%] Generating lib/PK11PrivKey.o [ 46%] Generating lib/PK11PubKey.o [ 46%] Generating lib/PK11SecureRandom.o [ 48%] Generating lib/PK11Signature.o [ 50%] Generating lib/PK11Store.o [ 51%] Generating lib/PK11SymKey.o [ 53%] Generating lib/PK11SymmetricKeyDeriver.o [ 55%] Generating lib/PK11Token.o [ 55%] Generating lib/CKAttribute.o [ 57%] Generating lib/JSSKeyStoreSpi.o [ 58%] Generating lib/SSLCipher.o In file included from /usr/include/nspr4/pratom.h:14, from /usr/include/nspr4/nspr.h:9, from /builddir/build/BUILD/jss-4.11.0/src/main/java/org/mozilla/jss/ssl/SSLCipher.c:1: /usr/include/nspr4/prtypes.h:554:38: error: size of array 'arg' is negative extern void pr_static_assert(int arg[(condition) ? 1 : -1]) ^~~ /builddir/build/BUILD/jss-4.11.0/src/main/java/org/mozilla/jss/ssl/SSLCipher.c:24:1: note: in expansion of macro 'PR_STATIC_ASSERT' PR_STATIC_ASSERT(PR_ARRAY_SIZE(auth_alg_defs) == ssl_auth_size); ^~~~~~~~~~~~~~~~ /usr/include/nspr4/prtypes.h:554:38: error: size of array 'arg' is negative extern void pr_static_assert(int arg[(condition) ? 1 : -1]) ^~~ /builddir/build/BUILD/jss-4.11.0/src/main/java/org/mozilla/jss/ssl/SSLCipher.c:37:1: note: in expansion of macro 'PR_STATIC_ASSERT' PR_STATIC_ASSERT(PR_ARRAY_SIZE(kea_alg_defs) == ssl_kea_size); ^~~~~~~~~~~~~~~~ cc1: warning: unrecognized command line option '-Wno-unknown-warning-option' make[2]: *** [CMakeFiles/generate_c.dir/build.make:275: lib/SSLCipher.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:1610: CMakeFiles/generate_c.dir/all] Error 2 make: *** [Makefile:149: all] Error 2 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.YBwtSi (%build) Bad exit status from /var/tmp/rpm-tmp.YBwtSi (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/jss.spec\n', 1)] 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 597, 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 --noclean --target x86_64 --nodeps /builddir/build/SPECS/jss.spec