Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.9.1: test suite is failing #2845

Closed
1 of 3 tasks
kloczek opened this issue Jun 29, 2021 · 8 comments
Closed
1 of 3 tasks

3.9.1: test suite is failing #2845

kloczek opened this issue Jun 29, 2021 · 8 comments
Assignees
Labels
documentation kind: bug solution: proposed fix a fix for the issue has been proposed and waits for confirmation

Comments

@kloczek
Copy link

kloczek commented Jun 29, 2021

+ cd json-3.9.1
+ /usr/bin/make -O -j48 V=1 VERBOSE=1 -C x86_64-redhat-linux-gnu test ARGS=--output-on-failure
make: Entering directory '/home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu'
Running tests...
/usr/bin/ctest --force-new-ctest-process --output-on-failure
Test project /home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu
        Start   1: download_test_data
  1/109 Test   #1: download_test_data ...........................   Passed    0.20 sec
        Start   2: test-algorithms
  2/109 Test   #2: test-algorithms ..............................   Passed    0.01 sec
        Start   3: test-algorithms_valgrind
  3/109 Test   #3: test-algorithms_valgrind .....................   Passed    0.89 sec
        Start   4: test-allocator
  4/109 Test   #4: test-allocator ...............................   Passed    0.01 sec
        Start   5: test-allocator_valgrind
  5/109 Test   #5: test-allocator_valgrind ......................   Passed    0.66 sec
        Start   6: test-alt-string
  6/109 Test   #6: test-alt-string ..............................   Passed    0.01 sec
        Start   7: test-alt-string_valgrind
  7/109 Test   #7: test-alt-string_valgrind .....................   Passed    0.67 sec
        Start   8: test-assert_macro
  8/109 Test   #8: test-assert_macro ............................   Passed    0.00 sec
        Start   9: test-assert_macro_valgrind
  9/109 Test   #9: test-assert_macro_valgrind ...................   Passed    0.59 sec
        Start  10: test-bson
 10/109 Test  #10: test-bson ....................................   Passed    0.02 sec
        Start  11: test-bson_valgrind
 11/109 Test  #11: test-bson_valgrind ...........................   Passed    1.09 sec
        Start  12: test-capacity
 12/109 Test  #12: test-capacity ................................   Passed    0.01 sec
        Start  13: test-capacity_valgrind
 13/109 Test  #13: test-capacity_valgrind .......................   Passed    0.78 sec
        Start  14: test-cbor
 14/109 Test  #14: test-cbor ....................................   Passed    9.45 sec
        Start  15: test-cbor_valgrind
 15/109 Test  #15: test-cbor_valgrind ...........................   Passed   20.95 sec
        Start  16: test-class_const_iterator
 16/109 Test  #16: test-class_const_iterator ....................   Passed    0.01 sec
        Start  17: test-class_const_iterator_valgrind
 17/109 Test  #17: test-class_const_iterator_valgrind ...........   Passed    0.76 sec
        Start  18: test-class_iterator
 18/109 Test  #18: test-class_iterator ..........................   Passed    0.01 sec
        Start  19: test-class_iterator_valgrind
 19/109 Test  #19: test-class_iterator_valgrind .................   Passed    0.77 sec
        Start  20: test-class_lexer
 20/109 Test  #20: test-class_lexer .............................   Passed    0.01 sec
        Start  21: test-class_lexer_valgrind
 21/109 Test  #21: test-class_lexer_valgrind ....................   Passed    0.70 sec
        Start  22: test-class_parser
 22/109 Test  #22: test-class_parser ............................   Passed    0.11 sec
        Start  23: test-class_parser_valgrind
 23/109 Test  #23: test-class_parser_valgrind ...................   Passed    4.64 sec
        Start  24: test-comparison
 24/109 Test  #24: test-comparison ..............................   Passed    0.01 sec
        Start  25: test-comparison_valgrind
 25/109 Test  #25: test-comparison_valgrind .....................   Passed    0.68 sec
        Start  26: test-concepts
 26/109 Test  #26: test-concepts ................................   Passed    0.00 sec
        Start  27: test-concepts_valgrind
 27/109 Test  #27: test-concepts_valgrind .......................   Passed    0.59 sec
        Start  28: test-constructor1
 28/109 Test  #28: test-constructor1 ............................   Passed    0.01 sec
        Start  29: test-constructor1_valgrind
 29/109 Test  #29: test-constructor1_valgrind ...................   Passed    1.57 sec
        Start  30: test-constructor2
 30/109 Test  #30: test-constructor2 ............................   Passed    0.00 sec
        Start  31: test-constructor2_valgrind
 31/109 Test  #31: test-constructor2_valgrind ...................   Passed    0.64 sec
        Start  32: test-convenience
 32/109 Test  #32: test-convenience .............................   Passed    0.00 sec
        Start  33: test-convenience_valgrind
 33/109 Test  #33: test-convenience_valgrind ....................   Passed    0.66 sec
        Start  34: test-conversions
 34/109 Test  #34: test-conversions .............................   Passed    0.01 sec
        Start  35: test-conversions_valgrind
 35/109 Test  #35: test-conversions_valgrind ....................   Passed    1.73 sec
        Start  36: test-deserialization
 36/109 Test  #36: test-deserialization .........................   Passed    0.01 sec
        Start  37: test-deserialization_valgrind
 37/109 Test  #37: test-deserialization_valgrind ................   Passed    1.62 sec
        Start  38: test-element_access1
 38/109 Test  #38: test-element_access1 .........................   Passed    0.01 sec
        Start  39: test-element_access1_valgrind
 39/109 Test  #39: test-element_access1_valgrind ................   Passed    1.34 sec
        Start  40: test-element_access2
 40/109 Test  #40: test-element_access2 .........................   Passed    0.02 sec
        Start  41: test-element_access2_valgrind
 41/109 Test  #41: test-element_access2_valgrind ................   Passed    1.64 sec
        Start  42: test-hash
 42/109 Test  #42: test-hash ....................................   Passed    0.01 sec
        Start  43: test-hash_valgrind
 43/109 Test  #43: test-hash_valgrind ...........................   Passed    0.59 sec
        Start  44: test-inspection
 44/109 Test  #44: test-inspection ..............................   Passed    1.18 sec
        Start  45: test-inspection_valgrind
 45/109 Test  #45: test-inspection_valgrind .....................   Passed   43.73 sec
        Start  46: test-items
 46/109 Test  #46: test-items ...................................   Passed    0.01 sec
        Start  47: test-items_valgrind
 47/109 Test  #47: test-items_valgrind ..........................   Passed    0.93 sec
        Start  48: test-iterators1
 48/109 Test  #48: test-iterators1 ..............................   Passed    0.01 sec
        Start  49: test-iterators1_valgrind
 49/109 Test  #49: test-iterators1_valgrind .....................   Passed    1.37 sec
        Start  50: test-iterators2
 50/109 Test  #50: test-iterators2 ..............................   Passed    0.03 sec
        Start  51: test-iterators2_valgrind
 51/109 Test  #51: test-iterators2_valgrind .....................   Passed    1.81 sec
        Start  52: test-json_patch
 52/109 Test  #52: test-json_patch ..............................   Passed    0.01 sec
        Start  53: test-json_patch_valgrind
 53/109 Test  #53: test-json_patch_valgrind .....................   Passed    1.47 sec
        Start  54: test-json_pointer
 54/109 Test  #54: test-json_pointer ............................   Passed    0.00 sec
        Start  55: test-json_pointer_valgrind
 55/109 Test  #55: test-json_pointer_valgrind ...................   Passed    1.22 sec
        Start  56: test-large_json
 56/109 Test  #56: test-large_json ..............................   Passed    1.02 sec
        Start  57: test-large_json_valgrind
 57/109 Test  #57: test-large_json_valgrind .....................   Passed   35.55 sec
        Start  58: test-merge_patch
 58/109 Test  #58: test-merge_patch .............................   Passed    0.01 sec
        Start  59: test-merge_patch_valgrind
 59/109 Test  #59: test-merge_patch_valgrind ....................   Passed    0.66 sec
        Start  60: test-meta
 60/109 Test  #60: test-meta ....................................   Passed    0.01 sec
        Start  61: test-meta_valgrind
 61/109 Test  #61: test-meta_valgrind ...........................   Passed    0.62 sec
        Start  62: test-modifiers
 62/109 Test  #62: test-modifiers ...............................   Passed    0.02 sec
        Start  63: test-modifiers_valgrind
 63/109 Test  #63: test-modifiers_valgrind ......................   Passed    1.28 sec
        Start  64: test-msgpack
 64/109 Test  #64: test-msgpack .................................   Passed    9.82 sec
        Start  65: test-msgpack_valgrind
 65/109 Test  #65: test-msgpack_valgrind ........................   Passed   19.10 sec
        Start  66: test-noexcept
 66/109 Test  #66: test-noexcept ................................   Passed    0.01 sec
        Start  67: test-noexcept_valgrind
 67/109 Test  #67: test-noexcept_valgrind .......................   Passed    0.57 sec
        Start  68: test-ordered_json
 68/109 Test  #68: test-ordered_json ............................   Passed    0.01 sec
        Start  69: test-ordered_json_valgrind
 69/109 Test  #69: test-ordered_json_valgrind ...................   Passed    0.64 sec
        Start  70: test-ordered_map
 70/109 Test  #70: test-ordered_map .............................   Passed    0.01 sec
        Start  71: test-ordered_map_valgrind
 71/109 Test  #71: test-ordered_map_valgrind ....................   Passed    0.74 sec
        Start  72: test-pointer_access
 72/109 Test  #72: test-pointer_access ..........................   Passed    0.01 sec
        Start  73: test-pointer_access_valgrind
 73/109 Test  #73: test-pointer_access_valgrind .................   Passed    0.78 sec
        Start  74: test-readme
 74/109 Test  #74: test-readme ..................................   Passed    0.01 sec
        Start  75: test-readme_valgrind
 75/109 Test  #75: test-readme_valgrind .........................   Passed    0.56 sec
        Start  76: test-reference_access
 76/109 Test  #76: test-reference_access ........................   Passed    0.01 sec
        Start  77: test-reference_access_valgrind
 77/109 Test  #77: test-reference_access_valgrind ...............   Passed    0.84 sec
        Start  78: test-regression1
 78/109 Test  #78: test-regression1 .............................   Passed    1.73 sec
        Start  79: test-regression1_valgrind
 79/109 Test  #79: test-regression1_valgrind ....................   Passed   58.76 sec
        Start  80: test-regression2
 80/109 Test  #80: test-regression2 .............................   Passed    0.01 sec
        Start  81: test-regression2_valgrind
 81/109 Test  #81: test-regression2_valgrind ....................   Passed    0.96 sec
        Start  82: test-serialization
 82/109 Test  #82: test-serialization ...........................   Passed    0.00 sec
        Start  83: test-serialization_valgrind
 83/109 Test  #83: test-serialization_valgrind ..................   Passed    0.81 sec
        Start  84: test-testsuites
 84/109 Test  #84: test-testsuites ..............................   Passed    0.03 sec
        Start  85: test-testsuites_valgrind
 85/109 Test  #85: test-testsuites_valgrind .....................   Passed    1.97 sec
        Start  86: test-to_chars
 86/109 Test  #86: test-to_chars ................................   Passed    0.00 sec
        Start  87: test-to_chars_valgrind
 87/109 Test  #87: test-to_chars_valgrind .......................   Passed    0.75 sec
        Start  88: test-ubjson
 88/109 Test  #88: test-ubjson ..................................   Passed    2.74 sec
        Start  89: test-ubjson_valgrind
 89/109 Test  #89: test-ubjson_valgrind .........................   Passed   18.89 sec
        Start  90: test-udt
 90/109 Test  #90: test-udt .....................................   Passed    0.00 sec
        Start  91: test-udt_valgrind
 91/109 Test  #91: test-udt_valgrind ............................   Passed    0.87 sec
        Start  92: test-udt_macro
 92/109 Test  #92: test-udt_macro ...............................   Passed    0.01 sec
        Start  93: test-udt_macro_valgrind
 93/109 Test  #93: test-udt_macro_valgrind ......................   Passed    0.89 sec
        Start  94: test-unicode
 94/109 Test  #94: test-unicode .................................   Passed  176.77 sec
        Start  95: test-unicode_valgrind
 95/109 Test  #95: test-unicode_valgrind ........................   Passed    0.85 sec
        Start  96: test-user_defined_input
 96/109 Test  #96: test-user_defined_input ......................   Passed    0.01 sec
        Start  97: test-user_defined_input_valgrind
 97/109 Test  #97: test-user_defined_input_valgrind .............   Passed    0.61 sec
        Start  98: test-wstring
 98/109 Test  #98: test-wstring .................................   Passed    0.01 sec
        Start  99: test-wstring_valgrind
 99/109 Test  #99: test-wstring_valgrind ........................   Passed    0.74 sec
        Start 100: cmake_import_configure
100/109 Test #100: cmake_import_configure .......................   Passed    0.44 sec
        Start 101: cmake_import_build
101/109 Test #101: cmake_import_build ...........................   Passed    3.23 sec
        Start 102: cmake_import_minver_configure
102/109 Test #102: cmake_import_minver_configure ................   Passed    0.43 sec
        Start 103: cmake_import_minver_build
103/109 Test #103: cmake_import_minver_build ....................   Passed    1.62 sec
        Start 104: cmake_add_subdirectory_configure
104/109 Test #104: cmake_add_subdirectory_configure .............   Passed    0.51 sec
        Start 105: cmake_add_subdirectory_build
105/109 Test #105: cmake_add_subdirectory_build .................   Passed    3.35 sec
        Start 106: cmake_fetch_content_configure
106/109 Test #106: cmake_fetch_content_configure ................***Failed    0.84 sec
Re-run cmake no build system arguments
-- The CXX compiler identification is GNU 11.1.1
-- 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
gmake[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
/usr/bin/cmake -S/home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild -B/home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/CMakeFiles /home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild//CMakeFiles/progress.marks
/usr/bin/gmake  -f CMakeFiles/Makefile2 all
gmake[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
/usr/bin/gmake  -f CMakeFiles/json-populate.dir/build.make CMakeFiles/json-populate.dir/depend
gmake[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
cd /home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild /home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild /home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild /home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild /home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/CMakeFiles/json-populate.dir/DependInfo.cmake --color=
gmake[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
/usr/bin/gmake  -f CMakeFiles/json-populate.dir/build.make CMakeFiles/json-populate.dir/build
gmake[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
[ 11%] Creating directories for 'json-populate'
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-src
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-build
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/tmp
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/src/json-populate-stamp
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/src
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/src/json-populate-stamp
/usr/bin/cmake -E touch /home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/src/json-populate-stamp/json-populate-mkdir
[ 22%] Performing download step (git clone) for 'json-populate'
cd /home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps && /usr/bin/cmake -P /home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/tmp/json-populate-gitclone.cmake
fatal: repository '/home/tkloczko/rpmbuild/BUILD/json-3.9.1' does not exist
fatal: repository '/home/tkloczko/rpmbuild/BUILD/json-3.9.1' does not exist
fatal: repository '/home/tkloczko/rpmbuild/BUILD/json-3.9.1' does not exist
-- Had to git clone more than once:
          3 times.
CMake Error at json-subbuild/json-populate-prefix/tmp/json-populate-gitclone.cmake:31 (message):
  Failed to clone repository: '/home/tkloczko/rpmbuild/BUILD/json-3.9.1'


gmake[3]: *** [CMakeFiles/json-populate.dir/build.make:102: json-populate-prefix/src/json-populate-stamp/json-populate-download] Error 1
gmake[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
gmake[2]: *** [CMakeFiles/Makefile2:83: CMakeFiles/json-populate.dir/all] Error 2
gmake[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
gmake[1]: *** [Makefile:91: all] Error 2
gmake[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'

CMake Error at /usr/share/cmake/Modules/FetchContent.cmake:1012 (message):
  Build step for json failed: 2
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FetchContent.cmake:1141:EVAL:2 (__FetchContent_directPopulate)
  /usr/share/cmake/Modules/FetchContent.cmake:1141 (cmake_language)
  CMakeLists.txt:12 (FetchContent_Populate)


-- Configuring incomplete, errors occurred!
See also "/home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/CMakeFiles/CMakeOutput.log".

        Start 107: cmake_fetch_content_build
Failed test dependencies: cmake_fetch_content_configure
107/109 Test #107: cmake_fetch_content_build ....................***Not Run   0.00 sec
        Start 108: cmake_target_include_directories_configure
108/109 Test #108: cmake_target_include_directories_configure ...   Passed    0.46 sec
        Start 109: cmake_target_include_directories_build
109/109 Test #109: cmake_target_include_directories_build .......   Passed    6.36 sec

98% tests passed, 2 tests failed out of 109

Label Time Summary:
all             = 203.17 sec*proc (49 tests)
git_required    =   0.84 sec*proc (2 tests)
valgrind        = 241.55 sec*proc (49 tests)

Total Test time (real) = 462.29 sec

The following tests FAILED:
        106 - cmake_fetch_content_configure (Failed)
        107 - cmake_fetch_content_build (Not Run)
Errors while running CTest
make: *** [Makefile:117: test] Error 8
make: Leaving directory '/home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu'

cnake setup:

[tkloczko@barrel x86_64-redhat-linux-gnu]$ cmake -L
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.


CMake Error: The source directory "/home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
-- Cache values
BUILD_TESTING:BOOL=ON
CMAKE_BUILD_TYPE:STRING=RelWithDebInfo
CMAKE_INSTALL_PREFIX:PATH=/usr
CMAKE_MEMORYCHECK_COMMAND:FILEPATH=/usr/bin/valgrind
JSON_BuildTests:BOOL=ON
JSON_Coverage:BOOL=OFF
JSON_ImplicitConversions:BOOL=ON
JSON_Install:BOOL=ON
JSON_MultipleHeaders:BOOL=OFF
JSON_NoExceptions:BOOL=OFF
JSON_Sanitizer:BOOL=OFF
JSON_Valgrind:BOOL=ON
LSB_RELEASE_COMMAND:FILEPATH=LSB_RELEASE_COMMAND-NOTFOUND
SW_VERS_COMMAND:FILEPATH=SW_VERS_COMMAND-NOTFOUND
UNAME_COMMAND:FILEPATH=/usr/bin/uname
VER_COMMAND:FILEPATH=VER_COMMAND-NOTFOUND
  • Compiler: gcc 11.1.1
  • Operating system: Linux/x86_64

Which version of the library did you use?

3.9.1

  • latest release version 3.9.1
  • other release - please state the version: ___
  • the develop branch
@nlohmann
Copy link
Owner

Can you please try with a separate build directory?

@demirole
Copy link

demirole commented Jun 29, 2021

The build above is using a separate build directory:

+ /usr/bin/make -O -j48 V=1 VERBOSE=1 -C x86_64-redhat-linux-gnu test ARGS=--output-on-failure
make: Entering directory '/home/tkloczko/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu'

I have the same issue, but instead of Fedora, I am building on RHEL 8. CMake output:

-- The CXX compiler identification is GNU 10.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/rh/gcc-toolset-10/root/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using the single-header code from /home/dele/rpmbuild/BUILD/json-3.9.1/single_include/
-- Found Git: /usr/bin/git (found version "2.27.0")
-- Operating system: Linux-4.18.0-305.3.1.el8_4.x86_64; Linux rhel-8.local 4.18.0-305.3.1.el8_4.x86_64 #1 SMP Mon May 17 10:08:25 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux
-- Compiler: c++ (GCC) 10.2.1 20201112 (Red Hat 10.2.1-8); Copyright (C) 2020 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.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dele/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu

So the source code has been unpacked into /home/dele/rpmbuild/BUILD/json-3.9.1, the build directory is /home/dele/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu. The source is not a Git clone, but just the 3.9.1 release downloaded as a tar archive. The compilation succeeds, but when running the tests, test 57 fails:

      Start 57: cmake_fetch_content_configure
57/60 Test #57: cmake_fetch_content_configure ................***Failed    0.26 sec
-- The CXX compiler identification is GNU 10.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/rh/gcc-toolset-10/root/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
[1/9] Creating directories for 'json-populate'
[1/9] Performing download step (git clone) for 'json-populate'
fatal: repository '/home/dele/rpmbuild/BUILD/json-3.9.1' does not exist
fatal: repository '/home/dele/rpmbuild/BUILD/json-3.9.1' does not exist
fatal: repository '/home/dele/rpmbuild/BUILD/json-3.9.1' does not exist
-- Had to git clone more than once:
          3 times.
CMake Error at json-subbuild/json-populate-prefix/tmp/json-populate-gitclone.cmake:31 (message):
  Failed to clone repository: '/home/dele/rpmbuild/BUILD/json-3.9.1'


FAILED: json-populate-prefix/src/json-populate-stamp/json-populate-download
cd /home/dele/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps && /usr/bin/cmake -P /home/dele/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/tmp/json-populate-gitclone.cmake && /usr/bin/cmake -E touch /home/dele/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/src/json-populate-stamp/json-populate-download
ninja: build stopped: subcommand failed.

CMake Error at /usr/share/cmake/Modules/FetchContent.cmake:987 (message):
  Build step for json failed: 1
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FetchContent.cmake:1082:EVAL:2 (__FetchContent_directPopulate)
  /usr/share/cmake/Modules/FetchContent.cmake:1082 (cmake_language)
  CMakeLists.txt:12 (FetchContent_Populate)


-- Configuring incomplete, errors occurred!
See also "/home/dele/rpmbuild/BUILD/json-3.9.1/x86_64-redhat-linux-gnu/test/cmake_fetch_content/CMakeFiles/CMakeOutput.log".

@nlohmann
Copy link
Owner

These tests are expected to fail unless executed on a Git checkout, see https://github.com/nlohmann/json#execute-unit-tests

In case you have downloaded the library rather than checked out the code via Git, test cmake_fetch_content_configure. Please execute ctest -LE git_required to skip these tests. See issue #2189 for more information.

(It should read: "test cmake_fetch_content_configure will fail.")

@kloczek
Copy link
Author

kloczek commented Jun 29, 2021

So it should marked as expected to fail (xfail)

@nlohmann
Copy link
Owner

I guess, but I have no idea how CTest can detect whether it is executed on a Git checkout.

@demirole
Copy link

Thanks you for your answer! I read the #2189 and checked how Fedora builds 3.9.1. I am satisfied with the answers, so I consider this issue closed.

@nlohmann nlohmann added the solution: proposed fix a fix for the issue has been proposed and waits for confirmation label Jul 6, 2021
@nlohmann nlohmann self-assigned this Jul 6, 2021
@nlohmann nlohmann added this to the Release 3.9.2 milestone Jul 6, 2021
nlohmann added a commit that referenced this issue Jul 6, 2021
@nlohmann nlohmann closed this as completed Jul 6, 2021
harry75369 pushed a commit to harry75369/json that referenced this issue Aug 8, 2021
@kloczek
Copy link
Author

kloczek commented Oct 8, 2021

Just tested 3.10.3

+ cd json-3.10.3
+ /usr/bin/make -O -j48 V=1 VERBOSE=1 -C x86_64-redhat-linux-gnu test ARGS=--output-on-failure
make: Entering directory '/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu'
Running tests...
/usr/bin/ctest --force-new-ctest-process --output-on-failure
Test project /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu
        Start   1: download_test_data
  1/123 Test   #1: download_test_data ...........................   Passed    0.24 sec
        Start   2: test-algorithms
  2/123 Test   #2: test-algorithms ..............................   Passed    0.01 sec
        Start   3: test-algorithms_valgrind
  3/123 Test   #3: test-algorithms_valgrind .....................   Passed    1.29 sec
        Start   4: test-allocator
  4/123 Test   #4: test-allocator ...............................   Passed    0.00 sec
        Start   5: test-allocator_valgrind
  5/123 Test   #5: test-allocator_valgrind ......................   Passed    0.98 sec
        Start   6: test-alt-string
  6/123 Test   #6: test-alt-string ..............................   Passed    0.01 sec
        Start   7: test-alt-string_valgrind
  7/123 Test   #7: test-alt-string_valgrind .....................   Passed    0.81 sec
        Start   8: test-assert_macro
  8/123 Test   #8: test-assert_macro ............................   Passed    0.01 sec
        Start   9: test-assert_macro_valgrind
  9/123 Test   #9: test-assert_macro_valgrind ...................   Passed    0.90 sec
        Start  10: test-bson
 10/123 Test  #10: test-bson ....................................   Passed    0.01 sec
        Start  11: test-bson_valgrind
 11/123 Test  #11: test-bson_valgrind ...........................   Passed    1.24 sec
        Start  12: test-byte_container_with_subtype
 12/123 Test  #12: test-byte_container_with_subtype .............   Passed    0.00 sec
        Start  13: test-byte_container_with_subtype_valgrind
 13/123 Test  #13: test-byte_container_with_subtype_valgrind ....   Passed    0.58 sec
        Start  14: test-capacity
 14/123 Test  #14: test-capacity ................................   Passed    0.00 sec
        Start  15: test-capacity_valgrind
 15/123 Test  #15: test-capacity_valgrind .......................   Passed    0.78 sec
        Start  16: test-cbor
 16/123 Test  #16: test-cbor ....................................   Passed    8.37 sec
        Start  17: test-cbor_valgrind
 17/123 Test  #17: test-cbor_valgrind ...........................   Passed   21.44 sec
        Start  18: test-class_const_iterator
 18/123 Test  #18: test-class_const_iterator ....................   Passed    0.01 sec
        Start  19: test-class_const_iterator_valgrind
 19/123 Test  #19: test-class_const_iterator_valgrind ...........   Passed    1.11 sec
        Start  20: test-class_iterator
 20/123 Test  #20: test-class_iterator ..........................   Passed    0.00 sec
        Start  21: test-class_iterator_valgrind
 21/123 Test  #21: test-class_iterator_valgrind .................   Passed    1.10 sec
        Start  22: test-class_lexer
 22/123 Test  #22: test-class_lexer .............................   Passed    0.01 sec
        Start  23: test-class_lexer_valgrind
 23/123 Test  #23: test-class_lexer_valgrind ....................   Passed    0.86 sec
        Start  24: test-class_parser
 24/123 Test  #24: test-class_parser ............................   Passed    0.18 sec
        Start  25: test-class_parser_valgrind
 25/123 Test  #25: test-class_parser_valgrind ...................   Passed    4.80 sec
        Start  26: test-comparison
 26/123 Test  #26: test-comparison ..............................   Passed    0.00 sec
        Start  27: test-comparison_valgrind
 27/123 Test  #27: test-comparison_valgrind .....................   Passed    0.67 sec
        Start  28: test-concepts
 28/123 Test  #28: test-concepts ................................   Passed    0.00 sec
        Start  29: test-concepts_valgrind
 29/123 Test  #29: test-concepts_valgrind .......................   Passed    0.60 sec
        Start  30: test-constructor1
 30/123 Test  #30: test-constructor1 ............................   Passed    0.01 sec
        Start  31: test-constructor1_valgrind
 31/123 Test  #31: test-constructor1_valgrind ...................   Passed    1.54 sec
        Start  32: test-constructor2
 32/123 Test  #32: test-constructor2 ............................   Passed    0.00 sec
        Start  33: test-constructor2_valgrind
 33/123 Test  #33: test-constructor2_valgrind ...................   Passed    0.64 sec
        Start  34: test-convenience
 34/123 Test  #34: test-convenience .............................   Passed    0.00 sec
        Start  35: test-convenience_valgrind
 35/123 Test  #35: test-convenience_valgrind ....................   Passed    0.67 sec
        Start  36: test-conversions
 36/123 Test  #36: test-conversions .............................   Passed    0.01 sec
        Start  37: test-conversions_valgrind
 37/123 Test  #37: test-conversions_valgrind ....................   Passed    1.69 sec
        Start  38: test-deserialization
 38/123 Test  #38: test-deserialization .........................   Passed    0.01 sec
        Start  39: test-deserialization_valgrind
 39/123 Test  #39: test-deserialization_valgrind ................   Passed    1.60 sec
        Start  40: test-diagnostics
 40/123 Test  #40: test-diagnostics .............................   Passed    0.00 sec
        Start  41: test-diagnostics_valgrind
 41/123 Test  #41: test-diagnostics_valgrind ....................   Passed    0.89 sec
        Start  42: test-disabled_exceptions
 42/123 Test  #42: test-disabled_exceptions .....................   Passed    0.01 sec
        Start  43: test-disabled_exceptions_valgrind
 43/123 Test  #43: test-disabled_exceptions_valgrind ............   Passed    0.86 sec
        Start  44: test-element_access1
 44/123 Test  #44: test-element_access1 .........................   Passed    0.02 sec
        Start  45: test-element_access1_valgrind
 45/123 Test  #45: test-element_access1_valgrind ................   Passed    1.60 sec
        Start  46: test-element_access2
 46/123 Test  #46: test-element_access2 .........................   Passed    0.03 sec
        Start  47: test-element_access2_valgrind
 47/123 Test  #47: test-element_access2_valgrind ................   Passed    1.95 sec
        Start  48: test-hash
 48/123 Test  #48: test-hash ....................................   Passed    0.00 sec
        Start  49: test-hash_valgrind
 49/123 Test  #49: test-hash_valgrind ...........................   Passed    0.58 sec
        Start  50: test-inspection
 50/123 Test  #50: test-inspection ..............................   Passed    1.13 sec
        Start  51: test-inspection_valgrind
 51/123 Test  #51: test-inspection_valgrind .....................   Passed   40.61 sec
        Start  52: test-items
 52/123 Test  #52: test-items ...................................   Passed    0.01 sec
        Start  53: test-items_valgrind
 53/123 Test  #53: test-items_valgrind ..........................   Passed    1.33 sec
        Start  54: test-iterators1
 54/123 Test  #54: test-iterators1 ..............................   Passed    0.01 sec
        Start  55: test-iterators1_valgrind
 55/123 Test  #55: test-iterators1_valgrind .....................   Passed    1.33 sec
        Start  56: test-iterators2
 56/123 Test  #56: test-iterators2 ..............................   Passed    0.02 sec
        Start  57: test-iterators2_valgrind
 57/123 Test  #57: test-iterators2_valgrind .....................   Passed    1.65 sec
        Start  58: test-json_patch
 58/123 Test  #58: test-json_patch ..............................   Passed    0.02 sec
        Start  59: test-json_patch_valgrind
 59/123 Test  #59: test-json_patch_valgrind .....................   Passed    1.87 sec
        Start  60: test-json_pointer
 60/123 Test  #60: test-json_pointer ............................   Passed    0.01 sec
        Start  61: test-json_pointer_valgrind
 61/123 Test  #61: test-json_pointer_valgrind ...................   Passed    1.59 sec
        Start  62: test-large_json
 62/123 Test  #62: test-large_json ..............................   Passed    0.94 sec
        Start  63: test-large_json_valgrind
 63/123 Test  #63: test-large_json_valgrind .....................   Passed   32.19 sec
        Start  64: test-merge_patch
 64/123 Test  #64: test-merge_patch .............................   Passed    0.01 sec
        Start  65: test-merge_patch_valgrind
 65/123 Test  #65: test-merge_patch_valgrind ....................   Passed    1.00 sec
        Start  66: test-meta
 66/123 Test  #66: test-meta ....................................   Passed    0.00 sec
        Start  67: test-meta_valgrind
 67/123 Test  #67: test-meta_valgrind ...........................   Passed    0.90 sec
        Start  68: test-modifiers
 68/123 Test  #68: test-modifiers ...............................   Passed    0.02 sec
        Start  69: test-modifiers_valgrind
 69/123 Test  #69: test-modifiers_valgrind ......................   Passed    1.66 sec
        Start  70: test-msgpack
 70/123 Test  #70: test-msgpack .................................   Passed    8.70 sec
        Start  71: test-msgpack_valgrind
 71/123 Test  #71: test-msgpack_valgrind ........................   Passed   19.37 sec
        Start  72: test-noexcept
 72/123 Test  #72: test-noexcept ................................   Passed    0.01 sec
        Start  73: test-noexcept_valgrind
 73/123 Test  #73: test-noexcept_valgrind .......................   Passed    0.86 sec
        Start  74: test-ordered_json
 74/123 Test  #74: test-ordered_json ............................   Passed    0.01 sec
        Start  75: test-ordered_json_valgrind
 75/123 Test  #75: test-ordered_json_valgrind ...................   Passed    0.98 sec
        Start  76: test-ordered_map
 76/123 Test  #76: test-ordered_map .............................   Passed    0.01 sec
        Start  77: test-ordered_map_valgrind
 77/123 Test  #77: test-ordered_map_valgrind ....................   Passed    1.07 sec
        Start  78: test-pointer_access
 78/123 Test  #78: test-pointer_access ..........................   Passed    0.00 sec
        Start  79: test-pointer_access_valgrind
 79/123 Test  #79: test-pointer_access_valgrind .................   Passed    1.11 sec
        Start  80: test-readme
 80/123 Test  #80: test-readme ..................................   Passed    0.01 sec
        Start  81: test-readme_valgrind
 81/123 Test  #81: test-readme_valgrind .........................   Passed    0.81 sec
        Start  82: test-reference_access
 82/123 Test  #82: test-reference_access ........................   Passed    0.00 sec
        Start  83: test-reference_access_valgrind
 83/123 Test  #83: test-reference_access_valgrind ...............   Passed    0.99 sec
        Start  84: test-regression1
 84/123 Test  #84: test-regression1 .............................   Passed    1.52 sec
        Start  85: test-regression1_valgrind
 85/123 Test  #85: test-regression1_valgrind ....................   Passed   53.77 sec
        Start  86: test-regression2
 86/123 Test  #86: test-regression2 .............................   Passed    0.01 sec
        Start  87: test-regression2_valgrind
 87/123 Test  #87: test-regression2_valgrind ....................   Passed    1.52 sec
        Start  88: test-serialization
 88/123 Test  #88: test-serialization ...........................   Passed    0.01 sec
        Start  89: test-serialization_valgrind
 89/123 Test  #89: test-serialization_valgrind ..................   Passed    0.83 sec
        Start  90: test-testsuites
 90/123 Test  #90: test-testsuites ..............................   Passed    0.07 sec
        Start  91: test-testsuites_valgrind
 91/123 Test  #91: test-testsuites_valgrind .....................   Passed    2.28 sec
        Start  92: test-to_chars
 92/123 Test  #92: test-to_chars ................................   Passed    0.00 sec
        Start  93: test-to_chars_valgrind
 93/123 Test  #93: test-to_chars_valgrind .......................   Passed    0.72 sec
        Start  94: test-ubjson
 94/123 Test  #94: test-ubjson ..................................   Passed    2.42 sec
        Start  95: test-ubjson_valgrind
 95/123 Test  #95: test-ubjson_valgrind .........................   Passed   16.43 sec
        Start  96: test-udt
 96/123 Test  #96: test-udt .....................................   Passed    0.01 sec
        Start  97: test-udt_valgrind
 97/123 Test  #97: test-udt_valgrind ............................   Passed    1.25 sec
        Start  98: test-udt_macro
 98/123 Test  #98: test-udt_macro ...............................   Passed    0.01 sec
        Start  99: test-udt_macro_valgrind
 99/123 Test  #99: test-udt_macro_valgrind ......................   Passed    0.88 sec
        Start 100: test-unicode1
100/123 Test #100: test-unicode1 ................................   Passed    2.45 sec
        Start 101: test-unicode1_valgrind
101/123 Test #101: test-unicode1_valgrind .......................   Passed    1.20 sec
        Start 102: test-unicode2
102/123 Test #102: test-unicode2 ................................   Passed    8.81 sec
        Start 103: test-unicode2_valgrind
103/123 Test #103: test-unicode2_valgrind .......................   Passed    0.80 sec
        Start 104: test-unicode3
104/123 Test #104: test-unicode3 ................................   Passed   33.80 sec
        Start 105: test-unicode3_valgrind
105/123 Test #105: test-unicode3_valgrind .......................   Passed    0.80 sec
        Start 106: test-unicode4
106/123 Test #106: test-unicode4 ................................   Passed  106.65 sec
        Start 107: test-unicode4_valgrind
107/123 Test #107: test-unicode4_valgrind .......................   Passed    0.81 sec
        Start 108: test-unicode5
108/123 Test #108: test-unicode5 ................................   Passed   26.32 sec
        Start 109: test-unicode5_valgrind
109/123 Test #109: test-unicode5_valgrind .......................   Passed    0.80 sec
        Start 110: test-user_defined_input
110/123 Test #110: test-user_defined_input ......................   Passed    0.00 sec
        Start 111: test-user_defined_input_valgrind
111/123 Test #111: test-user_defined_input_valgrind .............   Passed    0.79 sec
        Start 112: test-wstring
112/123 Test #112: test-wstring .................................   Passed    0.00 sec
        Start 113: test-wstring_valgrind
113/123 Test #113: test-wstring_valgrind ........................   Passed    0.73 sec
        Start 114: cmake_import_configure
114/123 Test #114: cmake_import_configure .......................   Passed    0.58 sec
        Start 115: cmake_import_build
115/123 Test #115: cmake_import_build ...........................   Passed    4.22 sec
        Start 116: cmake_import_minver_configure
116/123 Test #116: cmake_import_minver_configure ................   Passed    0.60 sec
        Start 117: cmake_import_minver_build
117/123 Test #117: cmake_import_minver_build ....................   Passed    2.15 sec
        Start 118: cmake_add_subdirectory_configure
118/123 Test #118: cmake_add_subdirectory_configure .............   Passed    0.62 sec
        Start 119: cmake_add_subdirectory_build
119/123 Test #119: cmake_add_subdirectory_build .................   Passed    6.32 sec
        Start 120: cmake_fetch_content_configure
120/123 Test #120: cmake_fetch_content_configure ................***Failed    1.15 sec
Re-run cmake no build system arguments
-- The CXX compiler identification is GNU 11.2.1
-- 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
gmake[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
/usr/bin/cmake -S/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild -B/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/CMakeFiles /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild//CMakeFiles/progress.marks
/usr/bin/gmake  -f CMakeFiles/Makefile2 all
gmake[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
/usr/bin/gmake  -f CMakeFiles/json-populate.dir/build.make CMakeFiles/json-populate.dir/depend
gmake[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
cd /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/CMakeFiles/json-populate.dir/DependInfo.cmake --color=
gmake[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
/usr/bin/gmake  -f CMakeFiles/json-populate.dir/build.make CMakeFiles/json-populate.dir/build
gmake[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
[ 11%] Creating directories for 'json-populate'
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-src
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-build
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/tmp
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/src/json-populate-stamp
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/src
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/src/json-populate-stamp
/usr/bin/cmake -E touch /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/src/json-populate-stamp/json-populate-mkdir
[ 22%] Performing download step (git clone) for 'json-populate'
cd /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps && /usr/bin/cmake -P /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/tmp/json-populate-gitclone.cmake
fatal: repository '/home/tkloczko/rpmbuild/BUILD/json-3.10.3' does not exist
fatal: repository '/home/tkloczko/rpmbuild/BUILD/json-3.10.3' does not exist
fatal: repository '/home/tkloczko/rpmbuild/BUILD/json-3.10.3' does not exist
-- Had to git clone more than once:
          3 times.
CMake Error at json-subbuild/json-populate-prefix/tmp/json-populate-gitclone.cmake:31 (message):
  Failed to clone repository: '/home/tkloczko/rpmbuild/BUILD/json-3.10.3'


gmake[3]: *** [CMakeFiles/json-populate.dir/build.make:102: json-populate-prefix/src/json-populate-stamp/json-populate-download] Error 1
gmake[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
gmake[2]: *** [CMakeFiles/Makefile2:83: CMakeFiles/json-populate.dir/all] Error 2
gmake[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
gmake[1]: *** [Makefile:91: all] Error 2
gmake[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'

CMake Error at /usr/share/cmake/Modules/FetchContent.cmake:1017 (message):
  Build step for json failed: 2
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FetchContent.cmake:1146:EVAL:2 (__FetchContent_directPopulate)
  /usr/share/cmake/Modules/FetchContent.cmake:1146 (cmake_language)
  CMakeLists.txt:12 (FetchContent_Populate)


-- Configuring incomplete, errors occurred!
See also "/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/CMakeFiles/CMakeOutput.log".

        Start 121: cmake_fetch_content_build
Failed test dependencies: cmake_fetch_content_configure
121/123 Test #121: cmake_fetch_content_build ....................***Not Run   0.00 sec
        Start 122: cmake_target_include_directories_configure
122/123 Test #122: cmake_target_include_directories_configure ...   Passed    0.61 sec
        Start 123: cmake_target_include_directories_build
123/123 Test #123: cmake_target_include_directories_build .......   Passed    8.41 sec

98% tests passed, 2 tests failed out of 123

Label Time Summary:
all                 = 201.67 sec*proc (56 tests)
git_required        =   1.15 sec*proc (2 tests)
not_reproducible    =  24.66 sec*proc (10 tests)
valgrind            = 242.16 sec*proc (56 tests)

Total Test time (real) = 468.86 sec

The following tests FAILED:
        120 - cmake_fetch_content_configure (Failed)
        121 - cmake_fetch_content_build (Not Run)
Errors while running CTest

@nlohmann
Copy link
Owner

nlohmann commented Oct 8, 2021

This is still the original issue. See the README:

In case you have downloaded the library rather than checked out the code via Git, test cmake_fetch_content_configure will fail. Please execute ctest -LE git_required to skip these tests. See issue #2189 for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation kind: bug solution: proposed fix a fix for the issue has been proposed and waits for confirmation
Projects
None yet
Development

No branches or pull requests

3 participants