Mock Version: 5.0 Mock Version: 5.0 Mock Version: 5.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/nlohmann-json.spec'], chrootPath='/mnt/mock/kojid//dist-an23.3-riscv64-gcc14-build-488649-74423/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=172800uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/nlohmann-json.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: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1724371200 Wrote: /builddir/build/SRPMS/nlohmann-json-3.11.2-1.an23_rva23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/nlohmann-json.spec'], chrootPath='/mnt/mock/kojid//dist-an23.3-riscv64-gcc14-build-488649-74423/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=172800uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/nlohmann-json.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: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1724371200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.H2D33V + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf json-3.11.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/v3.11.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd json-3.11.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.2PKi0n + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -march=rv64imafdcbv_zicsr_zicntr_zihpm_ziccif_ziccrse_ziccamoa_zicclsm_zic64b_za64rs_zihintpause_zba_zbb_zbs_zicbom_zicbop_zicboz_zfhmin_zkt_zvfhmin_zvbb_zvkt_zihintntl_zicond_zimop_zcmop_zcb_zfa_zawrs -mabi=lp64d -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -Wno-error=return-mismatch -Wno-error=declaration-missing-parameter-type -Wno-error=implicit-int' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -march=rv64imafdcbv_zicsr_zicntr_zihpm_ziccif_ziccrse_ziccamoa_zicclsm_zic64b_za64rs_zihintpause_zba_zbb_zbs_zicbom_zicbop_zicboz_zfhmin_zkt_zvfhmin_zvbb_zvkt_zihintntl_zicond_zimop_zcmop_zcb_zfa_zawrs -mabi=lp64d' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -march=rv64imafdcbv_zicsr_zicntr_zihpm_ziccif_ziccrse_ziccamoa_zicclsm_zic64b_za64rs_zihintpause_zba_zbb_zbs_zicbom_zicbop_zicboz_zfhmin_zkt_zvfhmin_zvbb_zvkt_zihintntl_zicond_zimop_zcmop_zcb_zfa_zawrs -mabi=lp64d -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -march=rv64imafdcbv_zicsr_zicntr_zihpm_ziccif_ziccrse_ziccamoa_zicclsm_zic64b_za64rs_zihintpause_zba_zbb_zbs_zicbom_zicbop_zicboz_zfhmin_zkt_zvfhmin_zvbb_zvkt_zihintntl_zicond_zimop_zcmop_zcb_zfa_zawrs -mabi=lp64d -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd json-3.11.2 + mkdir build + cd build + cmake -DJSON_Install=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_DATADIR=/usr/lib64 .. CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- The CXX compiler identification is GNU 14.3.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Using the multi-header code from /builddir/build/BUILD/json-3.11.2/include/ -- Found Git: /usr/bin/git (found version "2.47.3") -- Operating system: Linux-6.6.102-5.an23.riscv64; Linux fedora-riscv 6.6.102-5.an23.riscv64 #1 SMP PREEMPT_DYNAMIC Mon Oct 13 10:19:53 EDT 2025 riscv64 riscv64 riscv64 GNU/Linux -- Compiler: g++ (GCC) 14.3.0 20250523 (Anolis OS 14.3.0-3); Copyright (C) 2024 Free Software Foundation, Inc.; This is free software; see the source for copying conditions. There is NO; warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- Testing standards: 11 14 17 20 23 -- Looking for C++ include sys/types.h -- Looking for C++ include sys/types.h - found -- Looking for C++ include stdint.h -- Looking for C++ include stdint.h - found -- Looking for C++ include stddef.h -- Looking for C++ include stddef.h - found -- Check size of size_t -- Check size of size_t - done -- Configuring done (64.5s) -- Generating done (2.4s) -- Build files have been written to: /builddir/build/BUILD/json-3.11.2/build + make [ 1%] Building CXX object tests/CMakeFiles/test_main.dir/src/unit.cpp.o [ 1%] Built target test_main [ 2%] Building CXX object tests/CMakeFiles/test-algorithms_cpp11.dir/src/unit-algorithms.cpp.o [ 3%] Linking CXX executable test-algorithms_cpp11 [ 3%] Built target test-algorithms_cpp11 [ 3%] Building CXX object tests/CMakeFiles/test-allocator_cpp11.dir/src/unit-allocator.cpp.o In file included from /usr/include/c++/14/ext/alloc_traits.h:34, from /usr/include/c++/14/bits/basic_string.h:39, from /usr/include/c++/14/string:54, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/streambuf:43, from /usr/include/c++/14/bits/streambuf_iterator.h:35, from /usr/include/c++/14/iterator:66, from /builddir/build/BUILD/json-3.11.2/include/nlohmann/json.hpp:28, from /builddir/build/BUILD/json-3.11.2/tests/src/unit-allocator.cpp:12: /usr/include/c++/14/bits/alloc_traits.h: In instantiation of 'struct std::__allocator_traits_base::__rebind<{anonymous}::bad_allocator, nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> > >, std::pair, nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> >, void>': /usr/include/c++/14/bits/alloc_traits.h:133:11: required by substitution of 'template using std::__alloc_rebind = typename std::__allocator_traits_base::__rebind<_Alloc, _Up>::type [with _Alloc = {anonymous}::bad_allocator, nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> > >; _Up = std::pair, nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> >]' 133 | using __alloc_rebind | ^~~~~~~~~~~~~~ /usr/include/c++/14/bits/alloc_traits.h:267:8: required by substitution of 'template template using std::allocator_traits< >::rebind_alloc = std::__alloc_rebind<_Alloc, _Tp> [with _Tp = std::pair, nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> >; _Alloc = {anonymous}::bad_allocator, nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> > >]' 267 | using rebind_alloc = __alloc_rebind<_Alloc, _Tp>; | ^~~~~~~~~~~~ /usr/include/c++/14/ext/alloc_traits.h:126:65: required from 'struct __gnu_cxx::__alloc_traits<{anonymous}::bad_allocator, nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> > >, std::pair, nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> > >::rebind, nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> > >' 126 | { typedef typename _Base_type::template rebind_alloc<_Tp> other; }; | ^~~~~ /usr/include/c++/14/bits/stl_map.h:152:28: required from 'class std::map, nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator>, std::less >, {anonymous}::bad_allocator, nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> > > >' 152 | rebind::other _Pair_alloc_type; | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/json-3.11.2/include/nlohmann/detail/meta/type_traits.hpp:169:8: recursively required by substitution of 'template class Op, class ... Args> struct nlohmann::json_abi_v3_11_2::detail::detector >::type, Op, Args ...> [with Default = nlohmann::json_abi_v3_11_2::detail::nonesuch; Op = nlohmann::json_abi_v3_11_2::detail::detect_key_compare; Args = {std::map, std::allocator >, nlohmann::json_abi_v3_11_2::basic_json, std::allocator >, bool, long int, long unsigned int, double, {anonymous}::bad_allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector > >, std::less, std::allocator > >, {anonymous}::bad_allocator, std::allocator >, nlohmann::json_abi_v3_11_2::basic_json, std::allocator >, bool, long int, long unsigned int, double, {anonymous}::bad_allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector > > > > >}]' 169 | struct has_key_compare : std::integral_constant::value> {}; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/json-3.11.2/include/nlohmann/detail/meta/type_traits.hpp:169:8: required from 'struct nlohmann::json_abi_v3_11_2::detail::has_key_compare, nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator>, std::less >, {anonymous}::bad_allocator, nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> > > > >' /builddir/build/BUILD/json-3.11.2/include/nlohmann/detail/meta/type_traits.hpp:177:11: required from 'struct nlohmann::json_abi_v3_11_2::detail::actual_object_comparator, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> >' 177 | using type = typename std::conditional < has_key_compare::value, | ^~~~ /builddir/build/BUILD/json-3.11.2/include/nlohmann/detail/meta/type_traits.hpp:182:7: required by substitution of 'template using nlohmann::json_abi_v3_11_2::detail::actual_object_comparator_t = typename nlohmann::json_abi_v3_11_2::detail::actual_object_comparator::type [with BasicJsonType = nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator>]' 182 | using actual_object_comparator_t = typename actual_object_comparator::type; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/json-3.11.2/include/nlohmann/json.hpp:369:11: required from 'class nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator>' 369 | using object_comparator_t = detail::actual_object_comparator_t; | ^~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/json-3.11.2/tests/src/unit-allocator.cpp:46:9: required from here 46 | CHECK_THROWS_AS(bad_json(bad_json::value_t::object), std::bad_alloc&); | ^~ /usr/include/c++/14/bits/alloc_traits.h:76:31: error: static assertion failed: allocator_traits::rebind_alloc must be A 76 | _Tp>::value, | ^~~~~ /usr/include/c++/14/bits/alloc_traits.h:76:31: note: 'std::integral_constant::value' evaluates to false /usr/include/c++/14/bits/alloc_traits.h: In instantiation of 'struct std::__allocator_traits_base::__rebind<{anonymous}::bad_allocator, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> >, nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator>, void>': /usr/include/c++/14/bits/alloc_traits.h:133:11: required by substitution of 'template using std::__alloc_rebind = typename std::__allocator_traits_base::__rebind<_Alloc, _Up>::type [with _Alloc = {anonymous}::bad_allocator, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> >; _Up = nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator>]' 133 | using __alloc_rebind | ^~~~~~~~~~~~~~ /usr/include/c++/14/bits/alloc_traits.h:267:8: required by substitution of 'template template using std::allocator_traits< >::rebind_alloc = std::__alloc_rebind<_Alloc, _Tp> [with _Tp = nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator>; _Alloc = {anonymous}::bad_allocator, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> >]' 267 | using rebind_alloc = __alloc_rebind<_Alloc, _Tp>; | ^~~~~~~~~~~~ /usr/include/c++/14/ext/alloc_traits.h:126:65: required from 'struct __gnu_cxx::__alloc_traits<{anonymous}::bad_allocator, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> >, nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> >::rebind, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> >' 126 | { typedef typename _Base_type::template rebind_alloc<_Tp> other; }; | ^~~~~ /usr/include/c++/14/bits/stl_vector.h:90:21: required from 'struct std::_Vector_base, bool, long int, long unsigned int, double, {anonymous}::bad_allocator>, {anonymous}::bad_allocator, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> > >' 90 | rebind<_Tp>::other _Tp_alloc_type; | ^~~~~~~~~~~~~~ /usr/include/c++/14/bits/stl_vector.h:431:11: required from 'class std::vector, bool, long int, long unsigned int, double, {anonymous}::bad_allocator>, {anonymous}::bad_allocator, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> > >' 431 | class vector : protected _Vector_base<_Tp, _Alloc> | ^~~~~~ /builddir/build/BUILD/json-3.11.2/include/nlohmann/detail/iterators/iter_impl.hpp:64:151: required from 'class nlohmann::json_abi_v3_11_2::detail::iter_impl, bool, long int, long unsigned int, double, {anonymous}::bad_allocator> >' 64 | && std::is_base_of::iterator_category>::value, | ^~~~~ /builddir/build/BUILD/json-3.11.2/include/nlohmann/json.hpp:730:14: required from 'class nlohmann::json_abi_v3_11_2::basic_json, bool, long int, long unsigned int, double, {anonymous}::bad_allocator>' 730 | iterator set_parents(iterator it, typename iterator::difference_type count_set_parents) | ^~~~~~~~~~~ /builddir/build/BUILD/json-3.11.2/tests/src/unit-allocator.cpp:46:9: required from here 46 | CHECK_THROWS_AS(bad_json(bad_json::value_t::object), std::bad_alloc&); | ^~ /usr/include/c++/14/bits/alloc_traits.h:76:31: error: static assertion failed: allocator_traits::rebind_alloc must be A 76 | _Tp>::value, | ^~~~~ /usr/include/c++/14/bits/alloc_traits.h:76:31: note: 'std::integral_constant::value' evaluates to false make[2]: *** [tests/CMakeFiles/test-allocator_cpp11.dir/build.make:76: tests/CMakeFiles/test-allocator_cpp11.dir/src/unit-allocator.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:1265: tests/CMakeFiles/test-allocator_cpp11.dir/all] Error 2 make: *** [Makefile:146: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.2PKi0n (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.2PKi0n (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/nlohmann-json.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/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 riscv64 --nodeps /builddir/build/SPECS/nlohmann-json.spec