Mock Version: 2.17 Mock Version: 2.17 Mock Version: 2.17 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/netdata.spec'], chrootPath='/var/lib/mock/v8.3-incoming-7705-21666/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=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/netdata.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/netdata-2.1.0-3.1.xcpng8.3.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/netdata.spec'], chrootPath='/var/lib/mock/v8.3-incoming-7705-21666/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=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/netdata.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.6tfYc1 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf netdata-v2.1.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/netdata-v2.1.0.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd netdata-v2.1.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (netdata-fix-shebang-2.1.0.patch):' Patch #0 (netdata-fix-shebang-2.1.0.patch): + /usr/bin/cat /builddir/build/SOURCES/netdata-fix-shebang-2.1.0.patch + /usr/bin/patch -p1 --fuzz=0 patching file docs/diagrams/build.sh patching file packaging/check-kernel-config.sh patching file packaging/docker/run.sh patching file packaging/installer/dependencies/arch.sh patching file packaging/installer/dependencies/centos.sh patching file packaging/installer/dependencies/clearlinux.sh patching file packaging/installer/dependencies/debian.sh patching file packaging/installer/dependencies/fedora.sh patching file packaging/installer/dependencies/freebsd.sh patching file packaging/installer/dependencies/gentoo.sh patching file packaging/installer/dependencies/ol.sh patching file packaging/installer/dependencies/opensuse.sh patching file packaging/installer/dependencies/rockylinux.sh patching file packaging/installer/dependencies/ubuntu.sh patching file packaging/installer/install-required-packages.sh patching file packaging/makeself/build-x86_64-static.sh patching file packaging/makeself/functions.sh patching file packaging/makeself/install-alpine-packages.sh patching file packaging/makeself/install-or-update.sh patching file packaging/makeself/jobs/10-prepare-destination.install.sh patching file packaging/makeself/jobs/20-openssl.install.sh patching file packaging/makeself/jobs/50-bash-5.1.16.install.sh patching file packaging/makeself/jobs/50-curl.install.sh patching file packaging/makeself/jobs/50-ioping-1.3.install.sh patching file packaging/makeself/jobs/50-libnetfilter_acct-1.0.3.install.sh patching file packaging/makeself/jobs/70-netdata-git.install.sh patching file packaging/makeself/jobs/90-netdata-runtime-check.sh patching file packaging/makeself/jobs/99-makeself.install.sh patching file packaging/utils/coverity-scan.sh patching file packaging/utils/find-dll-deps.sh patching file packaging/windows/fetch-msys2-installer.py patching file src/aclk/aclk-schemas/Makefile patching file src/collectors/cgroups.plugin/cgroup-name.sh.in patching file src/collectors/cgroups.plugin/cgroup-network-helper.sh.in patching file src/collectors/charts.d.plugin/charts.d.dryrun-helper.sh patching file src/collectors/charts.d.plugin/charts.d.plugin.in patching file src/collectors/ioping.plugin/ioping.plugin.in patching file src/collectors/log2journal/tests.sh patching file src/collectors/python.d.plugin/python.d.plugin.in patching file src/collectors/systemd-journal.plugin/systemd-journal-self-signed-certs.sh patching file src/collectors/tc.plugin/tc-qos-helper.sh.in patching file src/daemon/anonymous-statistics.sh.in patching file src/daemon/get-kubernetes-labels.sh.in patching file src/daemon/system-info.sh patching file src/exporting/nc-exporting.sh patching file src/go/plugin/go.d/hack/go-build.sh patching file src/health/notifications/alarm-email.sh patching file src/health/notifications/alarm-notify.sh.in patching file src/health/notifications/alarm-test.sh patching file src/libnetdata/gorilla/benchmark.sh patching file src/libnetdata/gorilla/fuzzer.sh patching file src/ml/dlib/dlib/travis/build-and-test.sh patching file src/ml/dlib/tools/convert_dlib_nets_to_caffe/running_a_dlib_model_with_caffe_example.py patching file src/web/server/h2o/libh2o/deps/brotli/python/bro.py patching file src/web/server/h2o/libh2o/deps/brotli/python/tests/compatibility_test.py patching file src/web/server/h2o/libh2o/deps/brotli/python/tests/custom_dictionary_test.py patching file src/web/server/h2o/libh2o/deps/brotli/python/tests/roundtrip_test.py patching file src/web/server/h2o/libh2o/deps/picotls/deps/micro-ecc/scripts/mult_arm.py patching file src/web/server/h2o/libh2o/deps/picotls/deps/micro-ecc/scripts/mult_avr_extra.py patching file src/web/server/h2o/libh2o/deps/picotls/deps/micro-ecc/scripts/mult_avr.py patching file src/web/server/h2o/libh2o/deps/picotls/deps/micro-ecc/scripts/square_arm.py patching file src/web/server/h2o/libh2o/deps/picotls/deps/micro-ecc/scripts/square_avr.py patching file src/web/server/h2o/libh2o/misc/mkhufftbl.py patching file system/edit-config patching file system/install-service.sh.in patching file system/lsb/init.d/netdata.in patching file tests/health_mgmtapi/health-cmdapi-test.sh.in patching file tests/run-unit-tests.sh Patch #1 (netdata-remove-web-v2.patch): + echo 'Patch #1 (netdata-remove-web-v2.patch):' + /usr/bin/cat /builddir/build/SOURCES/netdata-remove-web-v2.patch + /usr/bin/patch -p1 --fuzz=0 patching file CMakeLists.txt Hunk #1 succeeded at 3368 (offset 157 lines). + '[' -d src/web/gui/v2 ']' Patch #1000 (netdata-v2.1.0-fix-gcc4-static-struct-init.XCP-ng.patch): + echo 'Patch #1000 (netdata-v2.1.0-fix-gcc4-static-struct-init.XCP-ng.patch):' + /usr/bin/cat /builddir/build/SOURCES/netdata-v2.1.0-fix-gcc4-static-struct-init.XCP-ng.patch + /usr/bin/patch -p1 --fuzz=0 patching file src/database/contexts/query_target.c patching file src/libnetdata/config/appconfig.h patching file src/libnetdata/local-sockets/local-sockets.h patching file src/libnetdata/log/nd_log-config.c patching file src/libnetdata/log/nd_log.h patching file src/libnetdata/log/nd_log_limit.h patching file src/libnetdata/log/systemd-cat-native.c patching file src/libnetdata/storage-point.h patching file src/libnetdata/uuid/uuid.h patching file src/web/api/queries/query.c Patch #1001 (netdata-v2.1.0-firewall-management-in-systemd-unit.XCP-ng.patch): + echo 'Patch #1001 (netdata-v2.1.0-firewall-management-in-systemd-unit.XCP-ng.patch):' + /usr/bin/cat /builddir/build/SOURCES/netdata-v2.1.0-firewall-management-in-systemd-unit.XCP-ng.patch + /usr/bin/patch -p1 --fuzz=0 patching file system/systemd/netdata.service.v235.in Hunk #1 succeeded at 12 (offset 1 line). Patch #1002 (netdata-v2.1.0-handle-systemd-unit-stop.XCP-ng.patch): + echo 'Patch #1002 (netdata-v2.1.0-handle-systemd-unit-stop.XCP-ng.patch):' + /usr/bin/cat /builddir/build/SOURCES/netdata-v2.1.0-handle-systemd-unit-stop.XCP-ng.patch + /usr/bin/patch -p1 --fuzz=0 patching file system/systemd/netdata.service.v235.in Hunk #1 succeeded at 14 (offset 1 line). + cp /builddir/build/SOURCES/README-packager.md . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.uxJw3Y + umask 022 + cd /builddir/build/BUILD + cd netdata-v2.1.0 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -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 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + /usr/bin/cmake -S . -B x86_64-redhat-linux-gnu -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_DO_STRIP:BOOL=OFF -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 -G Ninja -DCMAKE_INSTALL_PREFIX=/ -DENABLE_CLOUD=On -DENABLE_PLUGIN_CUPS=Off -DENABLE_PLUGIN_NFACCT=Off -DENABLE_PLUGIN_FREEIPMI=On -DENABLE_BUNDLED_PROTOBUF=Off -DENABLE_PLUGIN_XENSTAT=On -DENABLE_PLUGIN_EBPF=Off -DENABLE_ML=On -DENABLE_EXPORTER_MONGODB=Off -DENABLE_ACLK=On -DENABLE_DBENGINE=On -DENABLE_H2O=On -DENABLE_PLUGIN_APPS=On -DENABLE_PLUGIN_CGROUP_NETWORK=On -DENABLE_PLUGIN_DEBUGFS=On -DENABLE_PLUGIN_GO=Off -DENABLE_PLUGIN_CHARTS=On -DENABLE_PLUGIN_PYTHON=On -DENABLE_PLUGIN_LOCAL_LISTENERS=On -DENABLE_PLUGIN_PERF=On -DENABLE_PLUGIN_SLABINFO=On -DENABLE_PLUGIN_SYSTEMD_JOURNAL=On -DENABLE_PLUGIN_LOGS_MANAGEMENT=On -DENABLE_EXPORTER_PROMETHEUS_REMOTE_WRITE=On -DENABLE_BUNDLED_JSONC=Off -DENABLE_BUNDLED_YAML=Off -- Found Git: /usr/bin/git (found version "1.8.3.1") fatal: Not a git repository (or any of the parent directories): .git CMake Warning at packaging/cmake/Modules/NetdataVersion.cmake:19 (message): using version from packaging/version: 'v2.1.0' Call Stack (most recent call first): CMakeLists.txt:8 (netdata_version) -- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is GNU 4.8.5 -- 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 "0.27.1") -- Performing Test HAVE_C__fstack_clash_protection -- Performing Test HAVE_C__fstack_clash_protection - Success -- Performing Test HAVE_CXX__fstack_clash_protection -- Performing Test HAVE_CXX__fstack_clash_protection - Success -- Performing Test HAVE_C__fcf_protection_full -- Performing Test HAVE_C__fcf_protection_full - Failed -- Performing Test HAVE_CXX__fcf_protection_full -- Performing Test HAVE_CXX__fcf_protection_full - Failed -- Performing Test HAVE_C__mbranch_protection_standard -- Performing Test HAVE_C__mbranch_protection_standard - Failed -- Performing Test HAVE_CXX__mbranch_protection_standard -- Performing Test HAVE_CXX__mbranch_protection_standard - Failed -- Performing Test HAVE_C__ffunction_sections -- Performing Test HAVE_C__ffunction_sections - Success -- Performing Test HAVE_CXX__ffunction_sections -- Performing Test HAVE_CXX__ffunction_sections - Success -- Performing Test HAVE_C__fdata_sections -- Performing Test HAVE_C__fdata_sections - Success -- Performing Test HAVE_CXX__fdata_sections -- Performing Test HAVE_CXX__fdata_sections - Success -- Performing Test HAVE_C__Wno_builtin_macro_redefined -- Performing Test HAVE_C__Wno_builtin_macro_redefined - Success -- Performing Test HAVE_CXX__Wno_builtin_macro_redefined -- Performing Test HAVE_CXX__Wno_builtin_macro_redefined - Success -- Performing Test HAVE_C__fexceptions -- Performing Test HAVE_C__fexceptions - Success -- Performing Test HAVE_CXX__fexceptions -- Performing Test HAVE_CXX__fexceptions - Success -- Searching for MOLD linker -- Searching for MOLD linker - failed -- Compiling for Linux... -- Mimalloc is disabled. -- Checking for module 'libcurl>=7.21' -- Found libcurl, version 8.6.0 -- Looking for log10 -- Looking for log10 - not found -- Looking for log10 -- Looking for log10 - found -- Checking for module 'json-c>=0.14' -- Requested 'json-c >= 0.14' but version of json-c is 0.11 -- Preparing vendored copy of JSON-C [1/9] Creating directories for 'json-c-populate' [1/9] Performing download step (git clone) for 'json-c-populate' Cloning into 'json-c-src'... fatal: unable to access 'https://github.com/json-c/json-c/': Could not resolve host: github.com Cloning into 'json-c-src'... fatal: unable to access 'https://github.com/json-c/json-c/': Could not resolve host: github.com Cloning into 'json-c-src'... fatal: unable to access 'https://github.com/json-c/json-c/': Could not resolve host: github.com -- Had to git clone more than once: 3 times. CMake Error at json-c-subbuild/json-c-populate-prefix/tmp/json-c-populate-gitclone.cmake:39 (message): Failed to clone repository: 'https://github.com/json-c/json-c' FAILED: json-c-populate-prefix/src/json-c-populate-stamp/json-c-populate-download /builddir/build/BUILD/netdata-v2.1.0/x86_64-redhat-linux-gnu/_deps/json-c-subbuild/json-c-populate-prefix/src/json-c-populate-stamp/json-c-populate-download cd /builddir/build/BUILD/netdata-v2.1.0/x86_64-redhat-linux-gnu/_deps && /usr/bin/cmake -P /builddir/build/BUILD/netdata-v2.1.0/x86_64-redhat-linux-gnu/_deps/json-c-subbuild/json-c-populate-prefix/tmp/json-c-populate-gitclone.cmake && /usr/bin/cmake -E touch /builddir/build/BUILD/netdata-v2.1.0/x86_64-redhat-linux-gnu/_deps/json-c-subbuild/json-c-populate-prefix/src/json-c-populate-stamp/json-c-populate-download ninja: build stopped: subcommand failed. CMake Error at /usr/share/cmake3/Modules/FetchContent.cmake:1622 (message): Build step for json-c failed: 1 Call Stack (most recent call first): /usr/share/cmake3/Modules/FetchContent.cmake:1762:EVAL:2 (__FetchContent_directPopulate) /usr/share/cmake3/Modules/FetchContent.cmake:1762 (cmake_language) packaging/cmake/Modules/NetdataFetchContentExtra.cmake:27 (FetchContent_Populate) packaging/cmake/Modules/NetdataJSONC.cmake:58 (FetchContent_MakeAvailable_NoInstall) packaging/cmake/Modules/NetdataJSONC.cmake:79 (netdata_bundle_jsonc) CMakeLists.txt:360 (netdata_detect_jsonc) -- Configuring incomplete, errors occurred! error: Bad exit status from /var/tmp/rpm-tmp.uxJw3Y (%build) Bad exit status from /var/tmp/rpm-tmp.uxJw3Y (%build) RPM build errors: 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/netdata.spec